
/* Universal Styles */
body {
    font-family: Arial, sans-serif;
    text-align: center;
    margin: 0;
    padding: 0;
    background-color: #f0f0f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    font-size: 16px; 
}

html, body {
    overflow-x: hidden; /* Prevents horizontal scrolling */
    width: 100vw; /* Ensures content does not exceed viewport width */
}

@media screen and (max-width: 53.125rem) and (orientation: landscape) and (pointer: coarse) and (hover: none) {
    #main-menu,
    #landing-logo,
    footer {
        display: none !important;
    }
    #rotate-message {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100vh;
        width: 100vw;
        text-align: center;
        font-size: 1.5rem;
        background-color: #fff;
        color: #000;
    }
}

@media screen and (max-width: 53.125rem) and (orientation: portrait) {
    #rotate-message {
        display: none !important;
    }
}

/* Prevent the rotate message from appearing on desktops/laptops */
@media screen and (pointer: fine) and (hover: hover) {
    #rotate-message {
        display: none !important;
    }
}

#landing-logo {
    width: 15.625rem;
    max-width: 80%;
    margin-top: 0.25rem;
    margin-bottom: 0;
}

#main-title {
    font-size: 2.5rem;
    margin-bottom: 0;
    margin-top: -.5rem;
}

#main-menu {
    display: flex;
    flex-direction: column;
    /* justify-content: center; */
    align-items: center;
    width: 100%;
    max-width: 37.5rem;
    padding: 0.5rem;
    margin-top: -1rem;
}

button {
    font-size: 2.25rem;
    color: black !important;
    width: 90%;
    max-width: 21.875rem;
    padding: 1rem;
    margin: 0.625rem;
    border-radius: 0.5rem;
    border: 0.1875rem solid black;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

#letter-down-button { background-color: #6aaa64; }
#trivial-button { background-color: #ec6008; }
#guesser-button { background-color: #007bff; }

button:hover {
    transform: scale(1.1);
}

button:active {
    transform: scale(1.1); 
}

footer {
    position: fixed;
    padding: 0.125rem;
    bottom: 0;
    right: 0;
    left: 0;
    width: 100%;
    background-color: #f0f0f0;
    color: #090808;
    text-align: center;
    margin-top: 12.5rem;
    box-sizing: border-box;
}

@media (max-width: 32.8125rem) {

    #landing-logo {
        width: 15.625rem;
        max-width: 80%;
        margin-top: 1vh;
        margin-bottom: 0.25rem;
    }
    
    #main-title {
        font-size: 2.25rem;
        margin-bottom: .5rem;
        margin-top: 0rem; 
    }
    
    button {
        font-size: 2.5rem;
        padding: .9rem;
        color: black !important;
    }
    
    footer {
        font-size: 0.75rem;
    }
}

/* ipads/tablets */
@media (min-width: 768px) and (max-width: 1200px) and (orientation: landscape) and (pointer: coarse) {
    
    #main-menu,
    #landing-logo,
    footer {
        display: none !important;
    }

    #rotate-message {
        display: flex !important;
        align-items: center;
        justify-content: center;
        position: fixed;
        height: 100vh;
        width: 100vw;
        text-align: center;
        font-size: 5vw;
        background-color: #fff;
        color: #000;
        top: 0;
        left: 0;
    }
}
