/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: Cantarell, sans-serif;
    display: flex;
    flex-direction: column;
}

/* Container for flexbox layout */
.container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header Styles */
header {
    background-color: #0064a6;
    padding: 20px;
    text-align: center;
    color: white;
}

/* Navbar Styles */
nav ul {
    list-style-type: none;
    padding: 0;
    margin: 15px 0 0;
    display: flex;
    justify-content: center;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
}

nav ul li a:hover {
    color: #ffcc00; /* Adds a highlight effect on hover */
}

/* Main Content Section */
.main-content {
    padding: 20px;
    flex-grow: 1; /* Pushes footer to the bottom when content is less */
    text-align: center;
}

table {
    border-collapse: collapse;
    width: 50%;
    margin: 0 auto;
}

table thead {
    background: #010101;
    color: #fff;
}

th, td {
    padding: 10px;
    text-align: center;
}

tbody tr:nth-child(even) {
    background: lightgrey;
}

.h1 {
    margin-bottom: 40px;
}

.h2 {
    margin-bottom: 20px;
}

.p {
    margin-bottom: 20px;
}

/* Input Section */
.input-section {
    margin-top: 20px;
}

input[type="text"] {
    padding: 10px;
    width: 200px;
    margin-right: 10px;
}

input[type="slider"] {
    width: 100%;
}

input[type="submit"] {
    padding: 10px 20px;
    background-color: #0064a6;
    color: white;
    border: none;
    font-size: larger;
    cursor: pointer;
}

select {
    padding: 10px;
    width: 200px;
    margin-right: 10px;
}

button {
    padding: 10px 20px;
    background-color: #0064a6;
    color: white;
    border: none;
    font-size: larger;
    cursor: pointer;
}

button:hover {
    background-color: #333;
}

.slider {
    width: 300%;
    margin-top: 20px;
}

/* Footer Styles */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px;
    width: 100%;
    margin-top: auto;
}

a {
    color: inherit;
    text-decoration: underline;
}


a.disabled {
    pointer-events: none;
}

/* Modal background overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.modal {
    background: white;
    padding: 20px;
    border-radius: 5px;
    width: 300px;
    text-align: center;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
}

.modal-overlay.active {
    display: flex;
}
