:root {
    --accent-color: rgb(33,33,33);
    --bg-color: #FFFFFF;
    --text-color: #111111;
    --yellow-color: #fffd74;
}

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

button {
    width: 100%;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

a {
    color:rgb(255,69,0);
}

a:hover{
    font-style: italic;
}

header.title {
    background: white;
    padding: 2em 0;
    font-weight: bold;
    font-size: 1.25rem;
    border-bottom: 1px solid #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1em;
}

main {
    max-width: 1200px;
    margin: auto;
    background: white;
    padding: 2em;
    border-radius: 0.5em;
    width: 60%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    max-height: 90vh;
}

section {
    display: none;
    flex-direction: column;
    gap: 0.8em;
    margin-bottom: 0.5em;
    padding: 0.8rem 1rem;
    width: 70%;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.02em;
    font-size: 1.2em;
    line-height: 1.3;
}

section label {
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.02em;
    font-size: 1.1em;
    margin-bottom: 0.3em;
    display: block;
}

section p {
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.02em;
    font-size: 1.2em;
    line-height: 1.4;
}

section button {
    background-color: var(--accent-color);
    color: var(--yellow-color);
    border: none;
    border-radius: 0.5em;
    padding: 0.3em 0;
    cursor: pointer;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.02em;
    font-size: 1.2em;
    transition: background 0.3s ease, color 0.3s ease;
}

section button:hover {
    background-color: var(--yellow-color);
    color: var(--accent-color);
    transition: background 0.3s ease, color 0.3s ease;
}

section input[type=range],
section input[type=text],
section input[type=number],
section select,
section textarea {
    width: 100%;
    padding-left: 0.5em;
    padding-right: 0.5em;
    padding-top: 0.2em;
    padding-bottom: 0.2em;
    border: 1px solid var(--accent-color);
    border-radius: 4px;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.02em;
    font-size: 1em;
    background-color: var(--bg-color);
    color: var(--accent-color);
}

section textarea {
    min-height: 100px;
    resize: vertical;
}

section input[type=range] {
    height: 4px;
    background: var(--yellow-color);
    border-radius: 2px;
    padding: 0;
}

section input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--yellow-color);
    border-radius: 50%;
    cursor: pointer;
}

section input[type=range]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--yellow-color);
    border-radius: 50%;
    cursor: pointer;
}

section input[type=range]::-ms-thumb {
    width: 20px;
    height: 20px;
    background: var(--yellow-color);
    border-radius: 50%;
    cursor: pointer;
}

section input[type=range]::-ms-fill-lower {
    background: var(--yellow-color);
}

section input[type=range]::-ms-fill-upper {
    background: var(--yellow-color);
}

section input[type=range]:focus {
    outline: none;
}

.title {
    font-family: 'Space Grotesk', sans-serif;
    text-transform: uppercase;
    letter-spacing: -0.05em;
    padding-left: 2%;
    padding-right: 2%;
    font-size: 2em;
    color: var(--accent-color);
    font-weight: 400;
    display: flex;
    align-items: center;
    background-color: rgb(33,33,33);
    color: var(--yellow-color);
}

.title img{
    height: 1em;
    margin-right: 0.5%;
    justify-content: center;
}

.title img:hover{
    animation: spin 0.5s ease-in-out;
    animation-fill-mode: forwards;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.header {
    padding: 0.3rem;
    color: rgb(33,33,33);
    height: auto;
    display: flex;
    flex-direction: row;
}

.course-description {
    width: 40vw;
    margin-right: 2em;
    padding: 1.1rem;
    min-height: 20vh;
    background: var(--bg-color);
    font-size: 1em;
}

.title-container {
    padding: 0 2%;
}

button {
    background-color: var(--accent-color);
    color: var(--yellow-color);
    border: none;
    border-radius: 0.5em;
    padding: 0.3em 0;
    cursor: pointer;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.02em;
    font-size: 1.2em;
    transition: background 0.3s ease, color 0.3s ease;
}

button:hover {
    background-color: var(--yellow-color);
    color: var(--accent-color);
    transition: background 0.3s ease, color 0.3s ease;
}

h1 {
    font-size: 6.5rem;
    line-height: 0.8em;
    letter-spacing: -0.05em;
    font-family: "Urbanist", sans-serif;
    font-weight: 400;
    padding-top: 1rem;
    text-align: left;
}

h2 {
    font-family: "Urbanist", sans-serif;
    letter-spacing: -0.02em;
    font-weight: 400;
    font-size: 1.5em;
    text-transform: uppercase;
    text-align: left;
    padding-top: 1rem;
    line-height: 1em;
}

.course-description h3 {
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.02em;
    font-size: 2em;
    font-weight: 400;
    text-align: left;
}

.course-description p {
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.02em;
    font-size: 1.2em;
    line-height: 1.2;
    margin-left: 1rem;
    color: #444;
}

#landing-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
}

#begin-button {
    color: var(--accent-color);
    background-color: var(--yellow-color);
    border: none;
    border-bottom: 2px solid var(--yellow-color);
    border-top: 2px solid var(--yellow-color);
    padding: 0rem 2rem;
    cursor: pointer;
    transition: 0.3s;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.02em;
    font-size: 3em;
    font-weight: 400;
    text-align: left;
    width: 100%;
    position: fixed;
    bottom: 0;
    left: 0;
    border-radius: 0;
}

#begin-button:hover {
    background-color:rgb(33,33,33);
    color: var(--yellow-color);
    transition: 0.3s;
}

.hidden {
    display: none;
}

#experiment p{
    font-size: 1em;
}

.experiment-title {
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.02em;
    font-size: 2em;
    font-weight: 400;
    text-align: left;
    padding-right: 1rem;
    padding-left: 1rem;
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
    margin: 0;
    top: 0;
    background-color: var(--bg-color);
    color: var(--accent-color);
    width: 100%;
    display: none;
    background-color: #fffd74;
}

.experiment-title:first-child {
    display: block;
}

#experiment {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100vh;
    overflow-y: auto;
}

section.active, section:not(.hidden) {
    display: flex;
}

.slider-label {
    font-size: 0.8em;
    color: var(--accent-color);
    opacity: 0.8;
    margin-top: 0.3em;
    display: block;
}

.slider-container {
    display: flex;
    align-items: center;
    gap: 0.8em;
    width: 100%;
    margin: 0.8em 0;
}

.slider-number {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--accent-color);
    font-size: 0.9em;
    min-width: 1.5em;
    text-align: center;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.slider-value {
    position: absolute;
    top: 20px;
    font-family: 'Space Grotesk', sans-serif;
    color: var(--accent-color);
    font-size: 0.6em;
    text-align: center;
    min-width: 1.5em;
    background-color: var(--yellow-color);
    padding: 0.2em 0.5em;
    border-radius: 0.3em;
    transform: translateX(-50%);
    transition: left 0.1s ease;
}

.styled-slider {
    width: 100%;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
    outline: none;
    margin: 0;
    padding: 0;
}

.styled-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--yellow-color);
    border-radius: 50%;
    cursor: pointer;
    transition: 0.2s;
}

.styled-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--yellow-color);
    border-radius: 50%;
    cursor: pointer;
    transition: 0.2s;
}

.styled-slider:hover::-webkit-slider-thumb {
    transform: scale(1.1);
}

.styled-slider:hover::-moz-range-thumb {
    transform: scale(1.1);
}

.instructions {
    text-align: center;
    padding: 1em;
    line-height: 1.6;
}

.instructions p {
    margin-bottom: 1em;
}

.key {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--yellow-color);
    padding: 0.2em 0.6em;
    border-radius: 0.3em;
    margin: 0 0.3em;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1em;
}

.practice-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1em;
    width: 100%;
}

#imageContainer {
    width: 100%;
    max-width: 600px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-color);
    margin: 1em 0;
}

#imageContainer img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.response-keys {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 600px;
    margin: 1em 0;
}

.key-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5em;
    color: var(--accent-color);
    font-weight: bold;
}

#practice1-instructions button{
    text-align: center;
    width: 100%;
    padding-left: 0.5em;
    padding-right: 0.5em;
}

#practice1-complete {
    background: white;
    border-radius: 0.5em;
    padding: 2em 1.5em;
    margin: 2em auto;
    width: 70%;
    max-width: 600px;
    text-align: center;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2em;
    line-height: 1.5;
    color: var(--accent-color);
}

#practice1-complete h2 {
    font-family: 'Urbanist', sans-serif;
    font-size: 2em;
    margin-bottom: 1em;
    text-align: center;
    color: var(--accent-color);
}

#practice2-complete {
    background: white;
    border-radius: 0.5em;
    padding: 2em 1.5em;
    margin: 2em auto;
    width: 70%;
    max-width: 600px;
    text-align: center;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2em;
    line-height: 1.5;
    color: var(--accent-color);
}

#practice2-complete h2 {
    font-family: 'Urbanist', sans-serif;
    font-size: 2em;
    margin-bottom: 1em;
    text-align: center;
    color: var(--accent-color);
}

#practice2-complete button {
    width: 100%;
    margin-top: 1.5em;
    font-size: 1.2em;
    padding: 0.5em 0;
}

.practice-word {
    font-family: 'Urbanist', sans-serif;
    font-size: 2.5em;
    color: var(--accent-color);
    display: block;
    text-align: center;
    margin: 1.5em 0 1em 0;
    letter-spacing: 0.02em;
}

#trial1-complete {
    background: white;
    border-radius: 0.5em;
    padding: 2em 1.5em;
    margin: 2em auto;
    width: 70%;
    max-width: 600px;
    text-align: center;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2em;
    line-height: 1.5;
    color: var(--accent-color);
}

#trial1-complete h2 {
    font-family: 'Urbanist', sans-serif;
    font-size: 2em;
    margin-bottom: 1em;
    text-align: center;
    color: var(--accent-color);
}

#trial1-complete button {
    width: 100%;
    margin-top: 1.5em;
    font-size: 1.2em;
    padding: 0.5em 0;
}

#trial2-complete {
    background: white;
    border-radius: 0.5em;
    padding: 2em 1.5em;
    margin: 2em auto;
    width: 70%;
    max-width: 600px;
    text-align: center;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2em;
    line-height: 1.5;
    color: var(--accent-color);
}

#trial2-complete h2 {
    font-family: 'Urbanist', sans-serif;
    font-size: 2em;
    margin-bottom: 1em;
    text-align: center;
    color: var(--accent-color);
}

#trial2-complete button {
    width: 100%;
    margin-top: 1.5em;
    font-size: 1.2em;
    padding: 0.5em 0;
}

section.post-task {
    max-height: 80vh;
    overflow-y: auto;
    padding-bottom: 2em;
}

.debrief-content {
    max-height: 80vh;
    overflow-y: auto;
    scroll-behavior: smooth;
    padding: 1em;
    box-sizing: border-box;
}

.debrief-content p{
    font-size: 1.1rem;
}

/* Hide mobile warning by default */
#mobile-warning {
    margin-top: 1em;
    margin-left: 0;
    margin-right: 0;
    display: none;
    width: 100vw;
    justify-content: center;
    align-items: center;
    background-color: var(--yellow-color);
    padding-left: 1em;
    padding-right: 1em;
    padding-bottom: 1em;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    box-sizing: border-box;
}

/* Mobile warning and responsive styles */
@media screen and (max-width: 768px) {
    body {
        overflow-y: scroll;
        padding: 0em;
        width: 100vw;
        overflow-x: hidden;
    }
    #mobile-warning {
        display: flex;
    }

    #mobile-warning h2{
        margin-bottom: 0.25em;
    }

    .course-description{
        margin-top: 0em;
        padding-top: 0em;
    }

    .course-description p{
        font-size: 0.8em;
    }

    .course-description h3{
        font-size: 1.2em;
    }

    #mobile-warning p{
        font-family: 'Space Grotesk', sans-serif;
        letter-spacing: -0.02em;
        font-size: 1em;
        line-height: 1em;
    }

    .title-container h2{
        font-size: 1rem;
    }

.title img {
    margin-right: 0.5em;
}

    .title {
        font-size: 1em;
        padding-top: 0.5em;
        padding-bottom: 0.5em;
        padding-left: 1em;
        padding-right: 4em;
        line-height: 1em;
        width: 100vw;
    }

    h1 {
        font-size: 3rem;
    }

    .header {
        flex-direction: column;
        width: 100vw;
    }

    .course-description {
        width: 90vw;
        margin: 1em 0;
    }

    .title-container {
        padding: 0 1em;
    }

    button {
        font-size: 1em;
        padding: 0.5em;
        width: 90%;
        margin: 0.5em auto;
    }

    .response-keys {
        flex-direction: column;
        gap: 0.5em;
    }

    .key-label {
        font-size: 1em;
    }
    
    #begin-button{
        display: none;
    }
}

/* Additional tablet breakpoint */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    h1 {
        font-size: 4.5rem;
    }

    .course-description {
        width: 50vw;
    }

    .title {
        font-size: 1.2em;
    }
}

@media screen and (min-width: 1025px) {
    #mobile-warning {
        display: none !important;
    }
}