@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300&display=swap');

.box {
    flex-grow: 1;
    background-color: white;
    border: black solid 1.75px;
    border-radius: 6px;
}

.win {
    display: flex;
    justify-content: center;
    align-content: center;
    flex-grow: 1;
    border: black solid 1.75px;
    border-radius: 6px;
    height: calc(100vh - 65px);
    font-size: 1.6rem;
}

img {
    position: absolute;
    top: calc(50% - 50px);
    left: calc(45% - ((100vw - 24.6vw) / 5));
}

.innerinnerwinner {
    z-index: 2;
}

.innerwinner {
    margin-top: 12%;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto';
}

#select {
    padding: 6.5px 8px;
    border-radius: 8px;
}

.flex {
    display: flex;
    color: white;
    width: 100%;
}

.navbar {
    background-color: black;
    width: 100%;
    height: 65px;
    display: flex;
    color: white;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
}

.player {
    border: white solid 1px;
    width: 50%;
    height: 100%;
}

.player-1 {
    background-color: orange;
    border-top-left-radius: 20px;

}

.player-2 {
    background-color: yellowgreen;
    border-left: 0;
}

.p-b-10 {
    padding-bottom: 8px;
    font-size: 1.5rem;
}

.container {
    display: flex;
    height: calc(100vh - 65px);
    flex-wrap: wrap;
    background-color: black;
    width: 50%;
}

.text-align-center {
    text-align: center;
}

.center {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.player-h {
    height: 95%;

}

.blue {
    color: blue;
}

.input {
    width: 20%;
    margin-left: 1rem;
}

.player-section {
    height: calc(100% - 12px);
    display: flex;
    flex-wrap: wrap;
    border-top-left-radius: 25px;
    align-items: center;
    flex-direction: column;
    margin-top: 2px;
}

.amount-left {
    width: 100%;
    height: 7%;
    background-color: rgb(73, 73, 73);
    border: white solid 1px;
    border-bottom: none;
    flex-direction: row;
    font-size: 1rem;
}

.score {
    width: 26.4%;
    height: calc(100vh - 65px);
    background-color: black;
    padding-left: 5px;
    padding-right: 8px;
}

.bg-black {
    background-color: black;
}

.points-parent {
    width: 100%;
    display: flex;
    background-color: white;
    text-align: center;
    justify-content: center;
    align-items: center;
    height: 7%;
}

.points {
    width: 50%;
    height: 100%;
    background-color: rgb(111, 111, 111);
    border-bottom-left-radius: 6px;
    border-right: white solid 1px;
    font-size: 1rem;
}

.lb {
    border-left: white solid 1px;
    border-bottom-left-radius: 0px;
    border-bottom-right-radius: 6px;
}

.footer {
    height: 8%;
    width: 25.2%;
    background-color: dimgrey;
    border-bottom-left-radius: 25px;
    border-bottom-right-radius: 25px;
    border: grey solid 3px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    bottom: 10px;
}

.turns {
    padding-left: 5px;

}

.ipt {
    font-size: 0.8rem;
    height: 1.3rem;
    border: rgb(0, 0, 0) solid 2px;
    border-right: dimgray solid 1px;
}

.Submit {
    border-bottom-right-radius: 5px;
    border-top-right-radius: 5px;
    padding: 2px;
    padding-left: 1px;
    padding-top: 1px;
    background-color: white;
    border-left: 0;
    border-right: rgb(0, 0, 0) solid 2px;
    /* height: calc(); */
}

input:focus-visible {
    outline: 0px;

}

.color {
    margin-bottom: 5px;
}

.player-color {
    background-color: rgba(225, 225, 225, 0.9);
    width: 33.3333%;
    padding: 0;
    border-color: black;
    border-top: none;
}

.player-name {
    width: 33.3333%;
    height: 23px;
    font-size: 14px;
    border: black solid 1px;
    border-right: none;
    border-radius: 0px;
    border-right: none;
    background-color: rgba(225, 225, 225, 0.9);
    color: black;
    padding-left: 3px;
    border-left: none;
    border-right: none;
    border-top: rgb(122, 111, 111) solid 1px;
}

.player-form {
    display: flex;
    width: calc(26.4% / 2 - 9px);
    height: 25px;
    position: absolute;
    top: 67px;
}

.player-1-form {
    border-top-left-radius: 20px;
}

.player-submit {
    width: 36%;
    height: 23px;
    background-color: rgba(225, 225, 225, 0.9);
    border: black solid 1px;
    border-radius: 0px;
    border-left: none;
    border-right: none;
    border-top: rgb(163, 151, 151) solid 1px;
}

.player-1-name {
    border-top-left-radius: 20px;
    padding-left: 6px;
    font-size: 13px;
    border-top: white solid 1px;
}

.player-form {
    border-top: white solid 1px;
}

.rule {
    padding: 10px;
    background-color: white;
    width: 100%;
    height: 53.5%;
    color: black;
    font-size: 0.67rem;
    flex-grow: 1;
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
}

.player-parent {
    width: 100%;
    height: 26.4%;
    display: flex;
    flex-wrap: wrap;
}

/*player height is (100vh - 65px) / 5 - 8px*/
@media only screen and (max-width: 1060px) {
    .amount-left {
        font-size: 0.9rem;
    }

    .points {
        font-size: 0.8rem;
    }
}

@media only screen and (min-width: 1014px) {
    .rule {
        font-size: 0.75rem;
    }
}

@media only screen and (min-width: 1336px) {
    .rule {
        font-size: 1.048rem;
    }

    .footer {
        width: 25.5%;
    }
}

@media only screen and (max-width: 1014px) {
    .rule {
        font-size: 0.7rem;
        padding-top: 4px;
    }

    .player-submit {
        font-size: 0.7rem;
    }

    /* .footer {
        width:calc(24.6% + 10px);
    } */
}

@media only screen and (max-width: 844px) {
    .rule {
        font-size: 0.645rem;
        padding-top: 8px;
    }

    .footer {
        width: calc(24.6% + 2px);
    }

    .player-submit {
        font-size: 0.58rem;
    }

    .amount-left {
        font-size: 0.8rem;
    }

    .turns {
        padding-left: 2px;
        position: relative;
        top: 5px;
    }

    .input {
        width: 40%;
    }

    .points {
        font-size: 0.8rem;
    }
}

@media only screen and (max-width: 750px) {
    .name {
        font-size: 1.4rem;
    }

    .player-submit {
        font-size: 0.58rem;
    }

    .rule {
        font-size: 0.62rem;
    }
}

@media only screen and (max-width: 707px) {
    .flex {
        flex-direction: column-reverse;
        height: calc(100vh - 65px);
    }

    .score {
        height: 40%;
        width: 100%;
        flex-direction: row;
        padding-bottom: 2px;
        z-index: 300;
    }

    .container {
        width: 100%;
        height: 60%;
    }

    .player-form {
        position: absolute;
        width: calc(26.4% - 6px);
        top: calc(67px);
        z-index: -1;
    }

    .player-2-form {
        top: calc(67px + (100vh - 65px) / 5 - 8px);
    }

    .player-parent {
        width: 26.4%;
        height: 100%;
        flex-direction: column;
        flex-wrap: wrap;
    }

    .player {
        width: 100%;
        height: 50%;
        z-index: -2;
    }

    .footer {
        border-bottom-left-radius: 0px;
        height: 6%;
        bottom: calc(55% - 3px);
        right: 10px;
        z-index: 100;
        width: calc(73.6% - 8px);
        left: calc(26.4%);
    }

    .rule {
        width: 73.6%;
        padding-top: 8px;
        font-size: 0.65rem;
        line-height: 132%;
        height: 40%;
        margin-bottom: 4px;
        border-bottom-left-radius: 25px;
        border-bottom-right-radius: 25px;
    }

    .points-parent {
        width: 73.6%;
        height: 15%;
        border: white solid 1px;
    }

    .points {
        border-radius: 0;
        font-size: 13px;
        border: none;
    }

    .points-player-1 {
        border-right: white solid 1px;
    }

    .amount-left {
        width: 73.6%;
        height: 15%;
        border-left: none;
        border-top: none;
        font-size: 0.8rem;
        top: 3px;
        padding-left: 2px;
    }

    .turns {
        padding-left: 5px;
        top: 0;
    }

    .player-1-points-res,
    .player-2-points-res {
        font-size: 16px;
    }

    .player-submit {
        font-size: 0.76rem;
    }

    .name {
        font-size: 18px;
        padding-top: 20px;
    }

    .p-b-10 {
        padding-bottom: 2px;
    }

    .player-2 {
        border: white solid 1px;
        border-top: none;
    }
}

@media only screen and (max-width: 608px) {
    .rule {
        padding-top: 6px;
        font-size: 0.595rem;
        line-height: 105%;
    }
}

@media only screen and (max-width: 540px) {
    .footer {
        top: calc(42px + 02.8% + (100vh - 42px) / 5 * 2 - 8.5%);
    }
}

@media only screen and (max-width: 451px) {
    .rule {
        font-size: 0.6rem;
        line-height: 104%;
    }
}

@media only screen and (max-width: 411px) {
    .rule {
        line-height: 135%;
        font-size: 0.59rem;
    }

    .navbar {
        height: 40px;
        font-size: 0.96rem;
    }

    .player-form {
        position: absolute;
        width: calc(26.4% - 6px);
        top: calc(42px);
        z-index: -1;
    }

    .player-2-form {
        top: calc(47px + (100vh - 65px) / 5 - 8px);
    }

    #select {
        font-size: 0.75rem;
        padding: 2px;
        padding-left: 4px;
    }

    .Number {
        font-size: 0.8rem;
    }

    .footer {
        bottom: 0;
        top: calc(42px + 0.8% + (100vh - 42px) / 5 * 2 - 8.5%);
    }

    .player-submit {
        font-size: 0.56rem;
    }

    .flex {
        height: calc(100vh - 40px);
    }
}

@media only screen and (max-width: 375px) {
    .rule {
        font-size: 0.56rem;
    }
}

@media only screen and (max-width: 360px) {
    .rule {
        font-size: 0.54rem;
    }
}

@media only screen and (max-width: 320px) {
    .rule {
        font-size: 0.48rem;
    }
}

@media only screen and (max-width: 280px) {
    .rule {
        line-height: 130%;
        font-size: 0.58rem;
    }

    .turns {
        top: 0;
    }

    .name {
        font-size: 0.86rem;
    }

    .player-1-points-res,
    .player-2-points-res {
        font-size: 0.8rem;
    }
}