@import url('https://fonts.googleapis.com/css2?family=Chewy&family=Oi&display=swap');

body {
    padding: 0%;
    margin: 0%;
    font-family: "Chewy", system-ui;
    font-style: normal;
}

#Background  {
    background-image: url("assets/background.png");
    background-repeat: no-repeat;
    background-size: cover;
    margin: 0%;
    height: 100vh;
    width: 100%;
}

#Join {
    width: 100%;
    height: 100%;
    margin: 0%;
}

.Container {
    flex-wrap: wrap;
    display: flex;
    justify-content: center;
    align-content: center;
    height: 100%;
    width: 100%;
}

.ContentContainer {
    background-color: white;
    border-radius: 20px;
    border: solid black 5px;
    padding: 5vw 8vw;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: 25vw;
}

.JoinText {
    margin: 5%;
    font-size: 3vw;
    font-weight: 300;
    margin-bottom: 5%;
}

.NicknameContainer {
    height: 4vw;
    display: flex;
    justify-content: center;
}

#Nickname {
    padding: 0%;
    margin: 0%;
    width: 14vw;
    height: 100%;
    font-size: 2vw;
    font-family: "Chewy", system-ui;
    font-style: normal;
    text-align: center;
}

#NewGameButton {
    margin: 0%;
    margin-bottom: 20px;
    padding: 0%;
    width: 13vw;
    height: 4vw;
    font-size: 2.4vw;
    font-family: "Chewy", system-ui;
    font-style: normal;
    text-align: center;
}

.JoinCodeWrapper {
    position: relative;
    display: inline-block;
}

#GameCode {
    padding: 0%;
    margin: 0%;
    width: 13vw;
    height: 4vw;
    font-size: 2vw;
    font-family: "Chewy", system-ui;
    font-style: normal;
    text-align: center;
    padding-right: 30px;
}

#JoinButton {
    position: absolute;
    top: 60%;
    right: 0px;
    transform: translateY(-50%);
    border: none;
    background: none;
    cursor: pointer;
    font-size: 2.4vw;
    font-family: "Chewy", system-ui;
    font-style: normal;
    text-align: center;
}

.arrowRight {
    height: 3vw;
}

#Wait {
    width: 100%;
    height: 100%;
    margin: 0%;
}

#waitcontainer {
    width: 10%;
    padding: 0% 8vw;
}

#leaveButton {
    justify-self: flex-end;
    margin: 0%;
    margin-bottom: 20px;
    padding: 0%;
    width: 13vw;
    height: 4vw;
    font-size: 2.4vw;
    font-family: "Chewy", system-ui;
    font-style: normal;
    text-align: center;
}

#GameCodeDisplay {
    width: 20vw;
    text-align: center;
}

@media (max-width: 1400px) {
    .ContentContainer {
        width: 50vw;
        height: 40vw;
        min-height: 300px;
        padding: 2rem;
    }

    .JoinText {
        font-size: 3.5rem;
        padding: 0%;
    }

    #Nickname, .NicknameContainer, #GameCode, #NewGameButton {
        font-size: 1rem;
        height: 4.2rem;
        width:80%;
    }

    #NewGameButton {
        width:50%;
    }

    #JoinButton {
        font-size: 1.5rem;
    }

    .arrowRight {
        height: 1.5rem;
    }
}

@media (max-width: 1024px) {
    .ContentContainer {
        width: 60vw;
        height: 60vw;
        min-height: 300px;
        padding: 2rem;
    }

    .JoinText {
        font-size: 3.5rem;
        padding: 0%;
    }

    #Nickname, .NicknameContainer, #GameCode, #NewGameButton {
        font-size: 1rem;
        height: 4.2rem;
        width:80%;
    }

    #NewGameButton {
        width:50%;
    }

    #JoinButton {
        font-size: 1.5rem;
    }

    .arrowRight {
        height: 1.5rem;
    }
}

@media (max-width: 600px) {
    .ContentContainer {
        width: 80vw;
        height: 120vw;
        min-height: 300px;
        padding: 1.5rem;
    }

    .JoinText {
        font-size: 3rem;
        padding: 7% 0%;
    }

    #Nickname, .NicknameContainer, #GameCode, #NewGameButton {
        font-size: 1rem;
        height: 2.2rem;
        width:80%;
    }

    #JoinButton {
        font-size: 1.3rem;
    }

    .arrowRight {
        height: 1.2rem;
    }
}