/* General styles */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-image: url('bg.jpg');
    background-size: cover;
    background-repeat: repeat;

    padding-top: 50px;
}

/* Main content styles */
main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 50px;
}

.hidden {
    display: none;
}

.results-container {
    background: rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    padding: 20px;
    width: 30%;
    max-width: 90%;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    text-align: center;
    color: #fff;
}

.form-container {
    background: rgba(247, 244, 244, 0.8);
    border-radius: 10px;
    padding: 20px;
    width: 30%;
    max-width: 90%;
    margin-bottom: 20px;
}

.form-container h2 {
    text-align: center;
}

form {
    display: flex;
    flex-direction: column;
}

label {
    margin: 10px 0 5px;
}

input[type="number"],
input[type="range"],
select {
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

/* styling for submit button only */
button[type="submit"] {
    background-color: #121111;
    color: white;
    border: none;
    padding: 15px 30px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 20px;
    transition: background-color 0.3s ease;
    
    align-self: center;
}

button[type="submit"]:hover {
    background-color: #128a3c;
}

.results-container h2 {
    text-align: center;
}

.results-container div {
    margin-top: 10px;
}

button {
    font-size: 1.2rem;
    padding: 10px 20px;
    background-color: #121111;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-left: 10px;
    margin-right: 10px;
}

button:hover {
    background-color: #373737;
}

/* NAVIGATION BAR */
nav {
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: large;

    /* Position the navigation bar at the top of the page */
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.brand {
    font-size: 1.5em;
    font-weight: bold;
    margin-left: 10px;
}

.nav-links {
    display: flex;
    align-items: center;
    margin-right: 10px;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    margin: 0 10px;
    transition: background-color 0.3s ease;
    padding: 10px 15px;
    border-radius: 5px;
}

.nav-links a:hover {
    background-color: #333;
}

/* Hide the menu toggle button initially */
.menu-toggle {
    display: none;
    font-size: 1.2em;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    margin-right: 10px;
    border-radius: 5px;
    
    transition: background-color 0.3s ease;
}

.menu-toggle:hover {
    background-color: #333;
}

/* Responsive styles */
@media screen and (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        top: 75px;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.92);

        position: absolute;
    }

    .nav-links a {
        margin: 10px 0;
        text-align: left;
    }

    .menu-toggle {
        display: block;
        margin-right: 20px;
    }

    .form-container, .results-container {
        width: 100%;
        max-width: 100%;
    }
}
