/**
 * @author Brian Diep and ChatGPT
 */

/* Input row for number and button side by side */
.input-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    justify-content: center;
}

/* Button count label styling */
#button-count-label {
    margin-bottom: 12px;
    font-size: 1.3em;
    font-weight: bold;
    color: #222;
    text-align: center;
}



/* Parent*/
html,
body {
    margin: 0;
    height: 100vh;
    width: 100vw;
}

body {
    display: flex;
    flex-direction: column;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
}






/* Body --> Control Panel */
#control-panel {
    order: 1;
    height: 15vh;
    width: 100%;
    justify-content: center;
    flex-shrink: 0;
}

/*  Body --> Control Panel --> User Input Area */
#user-input-area {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    flex-direction: column;
}

#input-controls {
    display: flex;
    flex-direction: row;
}




/* Body --> Game Area */
#game-area {
    display: flex;
    order: 2;
    flex-direction: column;
    height: 85vh;
    width: 100%;
    justify-content: center;
    align-items: center;
}

/* Body --> Game Area --> Message Area */
#message-area {
    display: flex;
    order: 1;
    justify-content: center;
    align-items: center;
    height: 5vh;
    width: 100%;
    flex-shrink: 0;
}

/* Body --> Game Area --> Button Container */
#button-container {
    display: flex;
    order: 2;
    justify-content: center;
    align-items: center;
    height: 85vh;
    width: 100%;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

/* Body --> Game Area --> Button Container --> Game Button Styling */
.game-button {
    height: 5em;
    width: 10em;
    font-size: 2em;
    border: 2px solid black;
    cursor: pointer;
    color: black;
    position: absolute;
}

/* Small screens (mobile) */
@media (max-width: 480px) {
    .game-button {
        height: 2.5em;
        width: 5em;
    }

    #button-container {
        flex-wrap: wrap;
    }
}

/* Small-Medium screens */
@media (min-width: 481px) and (max-width: 600px) {
    .game-button {
        height: 2.75em;
        width: 5.5em;
    }

    #button-container {
        flex-wrap: wrap;
    }
}

/* Medium screens */
@media (min-width: 601px) and (max-width: 768px) {
    .game-button {
        height: 3.25em;
        width: 6.5em;
    }

    #button-container {
        flex-wrap: wrap;
    }
}

/* Medium-Large screens */
@media (min-width: 769px) and (max-width: 1024px) {
    .game-button {
        height: 4em;
        width: 8em;
    }

    #button-container {
        flex-wrap: wrap;
    }
}

/* Large screens */
@media (min-width: 1025px) {
    .game-button {
        height: 5em;
        width: 10em;
    }

    #button-container {
        /* flex-wrap: nowrap; */
        align-items: center;
        justify-content: center;
        width: 100vw;
    }
}