body {
    font-family: 'Lato', sans-serif; /* Change the font family for the main content */
    text-align: center;
    background-color: #f0f0f0;
    margin: 0;
    padding: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    line-height: 1.6;
}

header {
    background-color: #3a506b;
    padding: 10px 0;
    color: #fff;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-family: 'EB Garamond', serif;
    font-size: 2.5rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
    user-select: none;
}

.logo-accent {
    color: #e07a5f;
}

#timer {
    font-size: 1.2rem;
    font-weight: bold;
}



main {
    margin-top: 80px;
    margin-bottom: 40px; /* Add margin-bottom */
}

footer {
    background-color: #3a506b;
    color: #fff;
    padding: 15px 0;
    width: 100%;
    text-align: center;
    position: fixed;
    bottom: 0;
    left: 0;
}

.intro-screen, .results-screen, .question-container {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0; /* Add a border */
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-width: 300px;
    min-height: 100px;
    margin-bottom: 20px;
}
.progress-container {
    width: 100%;
    height: 20px;
    background-color: #e5e5e5; /* Update the background color */
    position: relative;
    margin-top: 20px;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background-color: #6abf69; /* Update the background color */
    position: absolute;
    transition: width 0.5s ease; /* Add a transition effect */
}
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

h1 {
    font-size: 2rem;
    margin: 0;
}

h2 {
    font-size: 1.5rem; /* Increase font size */
    margin-bottom: 20px; /* Add margin-bottom */
}

p {
    line-height: 1.5; /* Improve readability */
}

.grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.result {
    min-width: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

input {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
}
input:focus {
    outline: none;
    border-color: #e07a5f; /* Update the border color to match the theme */
    box-shadow: 0 0 5px rgba(224, 122, 95, 0.5), 0 1px 1px rgba(0, 0, 0, 0.1); /* Add a subtle box-shadow */
}
button {
    padding: 10px 15px;
    font-size: 16px;
    cursor: pointer;
    background-color: #e07a5f; /* Update the background color */
    color: #ffffff;
    border: none;
    border-radius: 4px;
    transition: background-color 0.2s;
    margin-top: 20px;
    width: 100%;
}

button:hover {
    background-color: #c0574a; /* Update the background color */
}

button:active {
    background-color: #a94d3f; /* Update the background color */
}

button:focus {
    outline: none;
}

button:disabled {
    background-color: #8c8c8c;
    cursor: not-allowed;
}

@media screen and (max-width: 600px) {
    header {
        padding: 5px 0;
    }

    h1 {
        font-size: 1.5rem;
    }

    main {
        margin-top: 60px;
        margin-bottom: 20px;
    }

    .container {
        padding: 15px;
        margin-left: 10px;
        margin-right: 10px;
    }

    h2 {
        font-size: 1.25rem;
    }

    input[type = "number"] {
        font-size: 14px;
        padding: 8px;
    }

    button {
        font-size: 14px;
        padding: 8px 12px;
    }
    .logo {
        font-family: 'EB Garamond', serif;
        font-size: 1.5rem;
        font-weight: bold;
        text-transform: uppercase;
        letter-spacing: 2px;
        margin: 0;
        user-select: none;
    }
}



@media screen and (min-width: 601px) and (max-width: 900px) {
    .container {
        padding: 20px;

    }

    h2 {
        font-size: 1.4rem;
    }
}