body{
    background: linear-gradient(135deg, #1f324a, #4a6e92);
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100vh;
    overflow: hidden;
}

h1{
    color: #4b7fa8;
    text-align: center;
}
button, input{
    background-color: #f7f9fc;
    border: none;
    border-radius: 12px;
    color: #1f2c3d;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 30px;
    margin: 4px 2px;
}
button:hover, input:hover{
    cursor: pointer;
    background-color: #e6ecf3;
}
select:hover{
    cursor: pointer;
    background-color: #e6ecf3;
}

#gamee, .gamee{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}


#inputscreen, #endScreen{
    justify-self: center;
    width: 75vw;
    min-height: 70vh;
    background-color: #f4f7fb;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    font-size: 24px;
    overflow-y: scroll;
    overflow-x: hidden;
}

#tournamentscreen{
    justify-self: center;
    width: 75vw;
    min-height: 70vh;
    background-color: #f4f7fb;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    font-size: 24px;
    overflow-y: scroll;
    overflow-x: hidden;
    padding: 20px;
}

#gameScreen{
    justify-self: center;
    width: 75vw;
    min-height: 70vh;
    background-color: #f4f7fb;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    overflow-y: scroll;
    overflow-x: hidden;

}

.options{
    background-color: #3c5a7a;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    width: 75%;
    padding: 5px 10px;
    margin: 25px 2px;
}


.scoreInput{
    background-color: #d9e4ef;
    border: none;
    border-radius: 12px;
    color: #1f2c3d;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
}

#playersList{
    background-color: #d9e4ef;
    border: none;
    width: 65%;
    border-radius: 12px;
    color: #1f2c3d;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    margin: 4px 2px;
}
select{
    background-color: #f7f9fc;
    border: none;
    border-radius: 12px;
    color: #1f2c3d;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 30px;
    margin: 4px 2px;
}
#playerstuf{    
    margin: 4px 2px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.remove-btn{
    background-color: #c75f5f;
    color: white;
}
.playerdiv{
    padding: 15px 32px;
    justify-content: space-between;
    display: flex;
    flex-direction: row;
    font-size: 30px;
    align-items: center;
    margin: 4px;
    background-color: #ffffff;
}


span{
    font-size: 30px;
}
#currentTurn{
    background-color: #e9f1fb;
    color: #1f2c3d;
    font-size: 30px;
    padding: 15px 32px;
    width: 90%;
    display: flex;
    align-self: center;
}

#calculatePoints{
    background-color: #4b7fa8;
    color: white;
    font-size: 30px;
    padding: 15px 32px;
    width: 50%;
}
#scoreboard{
    background-color: #d9e4ef;
    color: #1f2c3d;
    font-size: 30px;
    padding: 15px 32px;
    width: 60%;
    max-height: 400px;
    margin: 4px 0;
    overflow-y: scroll;
    margin-bottom: 40px;
}

.scoreboard-player{
    background-color: #ffffff;
    color: #1f2c3d;
    font-size: 30px;
    padding: 15px 32px;
    margin: 4px 0;
}

#points{
    background-color: #ffffff;
    color: #1f2c3d;
    font-size: 30px;
    width: 50%;
}

.tournament-match {
    margin: 15px;
    width: 300px;
}

#tournamentBracket {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

/* mobile / small screen adjustments */
@media only screen and (max-width: 720px) {
    body {
        padding: 12px 0;
        height: auto;
        overflow: auto;
    }

    #inputscreen,
    #gamescreen,
    #endscreen,
    #tournamentscreen {
        width: 100%;
        min-height: auto;
        padding: 16px 12px;
    }

    .options {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        margin: 16px 0;
        gap: 12px;
    }

    button,
    input,
    select {
        width: 100%;
        max-width: 100%;
        font-size: 22px;
        padding: 14px 18px;
        margin: 6px 0;
    }

    #playersList,
    #scoreboard,
    .scoreInput {
        width: 100%;
    }

    .playerdiv {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    #currentTurn,
    #points {
        width: 100%;
        padding: 14px 16px;
    }

    #calculatePoints {
        width: 100%;
    }

    #gamee,
    .gamee {
        gap: 16px;
    }

    .tournament-match {
        width: 100%;
        margin: 10px 0;
    }

    #tournamentBracket {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }
}