body{
    background-color: rgb(17, 24, 39);
    width: 100%;
    overflow: hidden;
    font-family: Inter;
}

* {
    box-sizing: border-box;
}

input {
    font-size: 16px;
}

button{
    font-family: Inter;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

button:hover{
    opacity: 0.7;
}

button:active{
    opacity: 0.4;
}

#HomeScreenPopUp{
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    max-width: 70vw;
    max-height: 80vh;
    padding: 25px;
    border: rgb(90, 96, 127) solid 1px;
    border-radius: 25px;
    background-color: rgba(84, 109, 163, 0.2);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

#HomePageTitle{
    font-size: 5rem;
    margin-bottom: 0px;
}

#HomePageAuthor{
    font-size: 1.2rem;
    color: #46586f;
    margin-top: 0px;
}

.HomePageNavButtons{
    width: 90%;
    aspect-ratio: 5/1;
    margin: 10px;
    border-radius: 20px;
    background-color: rgba(84, 109, 163, 0.2);
    border: solid 1px rgb(90, 96, 127);
    color: white;
    font-size: large;
}

#openUnlimitedButton{
    background-color: #4BC074;
}

@media (max-width: 500px){
    .HomePageNavButtons{
        margin: 4px;
        width: 100%;
    }
    #HomePageTitle{
        font-size: 4rem;
        margin-bottom: 0px;
    }
    #HomeScreenPopUp{
        max-width: 95vw;
    }
}

#UnlimitedScreenPopUp{
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    max-width: 70vw;
    max-height: 80vh;
    padding: 25px;
    border: rgb(90, 96, 127) solid 1px;
    border-radius: 25px;
    background-color: rgba(84, 109, 163, 0.2);
    color: white;
    display: None;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

#UnlimitedPageTitle{
    position: relative;
    top: 0;
    font-size: 5rem;
    margin-top: 0px;
    margin-bottom: 0px;
}

#GameGrid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(6, 1fr);
    gap: 8px;
    width: 300px;
    aspect-ratio: 5 / 6;
}

.GridBox {
    border: 2px solid #46586f;
    text-align: center;
    align-content: center;
    font-size: xx-large;
}

#InputGuessBox{
    width: 300px;
}

#guessButton{
    width: 25%;
    aspect-ratio: 2.857/1;
    border: solid 1px rgb(90, 96, 127);
    border-radius: 7.5px;
    background-color: #4BC074;
    color: white;
}

#GuessInput{
    width: 70%;
    aspect-ratio: 8/1;
    margin: 5px;
    border-radius: 7.5px;
}

@media (max-width: 500px){
    #GameGrid {
        width: 250px;
    }
    #InputGuessBox{
        width: 300px;
    }
    #UnlimitedScreenPopUp{
        max-width: 95vw;
    }
    #UnlimitedPageTitle{
        font-size: 4rem;
        margin-bottom: 0px;
    }
}

#UnlimitedEndPopUp{
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 350px;
    max-width: 65vw;
    max-height: 40vh;
    padding: 25px;
    border: rgb(90, 96, 127) solid 1px;
    border-radius: 25px;
    background-color: rgb(53, 68, 100);
    color: white;
    display: None;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

#playAgainButton{
    width: 80%;
    aspect-ratio: 8/1;
    border-radius: 7.5px;
    background-color: #4BC074;
    color: white;
}

#SendFriendScreen, #EnterCodeScreen {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    max-width: 90vw;
    padding: 30px;
    border: 1px solid rgb(90, 96, 127);
    border-radius: 25px;
    background-color: rgba(84, 109, 163, 0.2);
    color: white;
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
}

#SendFriendScreen h1, #EnterCodeScreen h1 {
    margin: 0;
    font-size: 2rem;
}

#SendFriendScreen p, #EnterCodeScreen p {
    color: #aab5c9;
    line-height: 1.5;
}

#ChallengeCodeBox {
    width: 100%;
    padding: 18px 5px;
    background-color: rgba(17, 24, 39, 0.7);
    border: 1px solid #46586f;
    border-radius: 12px;
    margin: 10px 0;
}

#ChallengeCode {
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: 3px;
    overflow-wrap: anywhere;
}

#CopyCodeButton, #JoinChallengeButton {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 10px;
    background-color: #4BC074;
    color: white;
    font-size: 1rem;
    font-weight: 700;
}

.SecondaryButton {
    width: 100%;
    padding: 12px;
    border: 1px solid rgb(90, 96, 127);
    border-radius: 10px;
    background-color: rgba(84, 109, 163, 0.2);
    color: white;
    font-size: 1rem;
}

#ChallengeInput {
    width: 100%;
    padding: 14px;
    border: 1px solid #46586f;
    border-radius: 10px;
    background-color: rgb(17, 24, 39);
    color: white;
    font-family: Inter;
    font-size: 1.2rem;
    text-align: center;
    letter-spacing: 3px;
}

#ChallengeInput:focus {
    outline: 2px solid #4BC074;
}

#CodeError {
    color: #ff7777;
    min-height: 20px;
    margin: 0;
}

#ChallengeWordInput {
    width: 100%;
    padding: 14px;
    border: 1px solid #46586f;
    border-radius: 10px;
    background-color: rgb(17, 24, 39);
    color: white;
    font-family: Inter;
    font-size: 1.2rem;
    text-align: center;
    text-transform: uppercase;
}

#GenerateCodeButton {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 10px;
    background-color: #4BC074;
    color: white;
    font-size: 1rem;
    font-weight: 700;
}

#GeneratedCodeSection {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 10px;
}

#ChallengeWordError {
    color: #ff7777;
    min-height: 15px;
}

#ChallengeCodeBox {
    width: 100%;
    padding: 18px 5px;
    background-color: rgba(17, 24, 39, 0.7);
    border: 1px solid #46586f;
    border-radius: 12px;
    overflow-wrap: anywhere;
}

#ChallengeCode {
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: 3px;
}
