@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
}

html {
    width: 100%;
    height: 100%;
}

body {
    width: 100%;
    height: 100%;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    background: black;
}

#main {
    width: 90vw;
    height: 90%;

    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

#players-p {
    width: 60%;
    height: 85%;
    border: 0.3vw solid #00FF00;
    border-radius: 3vw;

    display: flex;
    justify-content: center;
    align-items: center;
}

#players {
    max-height: 80%;
    width: 95%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 1vw;
    padding: 3vw 0.3vw;
    overflow-x: auto;
    overflow-y: hidden;
}

#players::-webkit-scrollbar {
    height: 1vw;
    background: #1e1e1e;
    border-radius: 1vw;
}

#players::-webkit-scrollbar-thumb {
    background: #00FF00;
    border-radius: 1vw;
    cursor: pointer;
}

#players::-moz-scrollbar {
    height: 1vw;
    background: #1e1e1e;
    border-radius: 1vw;
}

#players::-moz-scrollbar-thumb {
    background: #00FF00;
    border-radius: 1vw;
    cursor: pointer;
}

#gamesettings {
    width: 30%;
    height: 85%;
    border: 0.3vw solid #00FF00;
    border-radius: 3vw;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.5vw;
}

p {
    font-size: 1.5vw;
    color: #00FF00;
    font-weight: bold;
}

.small {
    font-size: 1vw;
    font-style: italic;
    font-weight: normal;
    color: #04be04;
}

.err {
    color: red;
    font-size: 1vw;
    font-style: italic;
    font-weight: normal;
    display: none;
}

h1 {
    font-size: 2vw;
    color: #00FF00;
}

#title-bar {
    font-size: 2vw;
    font-weight: bold;
    color: #00FF00;
}

#title-div{
    display: flex;
}

.errH1 {
    color: red !important;
    font-weight: bold;
}

.slider_css {
    width: 40%;
    -webkit-appearance: none;
    appearance: none;
    border-radius: 1vw;
    border: 0.2vw dotted #00FF00;
    background: black;
    outline: none;
}

.slider_css::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 1vw;
    height: 1vw;
    border-radius: 1vw;
    background: #00FF00;
    cursor: pointer;
}

.slider_css::-moz-range-thumb,
.slider_css::-ms-thumb {
    width: 1vw;
    height: 1vw;
    border-radius: 1vw;
    background: #00FF00;
    cursor: pointer;
}

.spacer {
    height: 3%;
}

button {
    width: 9vw;
    color: #00FF00;
    background: black;
    padding: 2% 10%;
    border: 0.2vw solid #00FF00;
    border-radius: 3vw;
    font-size: 1vw;
    font-weight: bold;
}

button:hover {
    opacity: 0.7;
    cursor: pointer;
    transition: 0.3s;
}

button:disabled {
    color: red;
    border: 0.2vw solid red;
    cursor: not-allowed;
    opacity: 0.7;
}

.addP {
    min-width: 40%;
    max-width: 40%;
    padding: 1% 2%;
    border: 0.3vw dotted #00FF00;
    border-radius: 3vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1vw;
}

.addP>button {
    margin: 0;
}

.addP>input[type=text] {
    width: 70%;
    height: 1.5vw;
    background: black;
    padding: 0.2vw 0.5vw;
    border: 0.2vw dotted #00FF00;
    border-radius: 3vw;
    color: #00FF00;
    font-weight: bold;
    outline: none;
    text-align: center;
    font-size: 1vw;

}

.addP>input[type=color] {
    height: 2vw;
    width: 50%;
    background-color: black;
    border: 0.2vw dotted #00FF00;
    padding: 0.1vw 0.3vw;
    border-radius: 3vw;
    cursor: pointer;
    appearance: none;
}


.addP>input[type=color]::-webkit-color-swatch {
    border-radius: 3vw;
    border: none;
}

.addP>input[type=color]::-webkit-color-swatch,
.addP>input[type=color]::-moz-color-swatch {
    height: 1.5vw;
    border-radius: 3vw;
    border: none;
}

.pErr {
    border: 0.3vw dotted red !important;
    border-radius: 3vw;
}

#btn-holder{
    width: 100%;
    display: flex;
    height: fit-content;
    justify-content: center;
    align-items: center;
    gap: 0.5vw;
}

#reset{
    border-color: red;
    color: red;
}

#info {
    position: fixed;
    right: 1vw;
    top: 92.5%;
    width: 2.5vw;
    height: 2.5vw;
    border: 0.3vw solid #00FF00;
    border-radius: 50vw; 
    font-size: 1.5vw;
    font-weight: bold;
    color: #00FF00;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-align: center;
    user-select: none;
    z-index: 10;
}

#cover {
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7) !important;
    z-index: 9;
    top: 0;
    left: 0;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0s 0.3s !important;
}

.fade-in {
    visibility: visible !important;
    opacity: 1 !important;
    transition: opacity 0.3s ease, visibility 0s !important;
}

.fade-out {
    visibility: hidden !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease, visibility 0s 0.3s !important;
}

#info-detailed {
    position: fixed;
    left: 50%;
    padding: 3vw;
    transform: translateX(-50%) scale(0);
    z-index: 1000;
    border: 0.3vw dashed #00FF00;
    border-radius: 3vw;
    background-color: black;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s 0.3s !important;
}

.show {
    visibility: visible !important;
    opacity: 1 !important;
    transform: translateX(-50%) scale(1) !important;
}

.hide {
    visibility: hidden !important;
    opacity: 0 !important;
    transform: translateX(-50%) scale(0) !important;
}


#info-detailed div {
    width: 100%;
    max-height: fit-content;
    text-align: left;
}

#info-detailed div p {
    display: inline !important;
}

.low {
    font-weight: normal;
}

#exit {
    position: absolute;
    height: 1.5vw !important;
    width: 1.5vw !important;
    top: 0.7vw;
    right: 1.5vw;
    border: 0.3vw solid #00FF00;
    border-radius: 50vw;
    font-size: 1vw;
    color: #00FF00;
    font-weight: bold;
    text-align: center !important;
    cursor: pointer;
    user-select: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

@media screen and (max-aspect-ratio: 3/4) {
    *{
        border-radius: 3vh;
    }

    #title-gamble {
        font-size: 4vh;
    }

    p {
        font-size: 1.7vh;
    }

    .err {
        font-size: 1vh;
    }

    button {
        font-size: 1.5vh;
        height: 3vh;
        width: 15vh;
    }

    .small {
        font-size: 1vh;
    }

    h1 {
        font-size: 2vh;
    }
    #title-bar {
        font-size: 4vh;
    }

    .errH1 {
        font-size: 2.5vh;
    }

    .slider_css {
        width: 80%;
        border: 0.5vw dotted #00FF00;
    }

    .slider_css::-webkit-slider-thumb {
        width: 2vh;
        height: 2vh;
    }

    .slider_css::-moz-range-thumb,
    .slider_css::-ms-thumb {
        width: 2vh;
        height: 2vh;
    }

    #gamesettings {
        justify-content: start;
        width: 40%;
        height: 90%;
        gap: 1vh;
    }

    #players-p {
        width: 50%;
        height: 90%;
    }

    #players {
        height: 100%;
        max-height: 93%;
        width: 95%;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        justify-content: start;
        align-items: center;
        text-align: center;
        gap: 1vh;
        overflow: auto;
    }

    .addP {
        min-width: 80%;
        max-width: 80%;
        min-height: 30%;
        gap: 0.5vh;
        border: 0.5vw dotted #00FF00;
    }

    .addP>input[type=text] {
        width: 80%;
        height: 2vh;
        font-size: 1.5vh;
    }

    .addP>input[type=color] {
        height: 2vh;
    }

    .addP > button {
        width: 10vh;
    }

    .pErr{
        padding: 15% 5%;
        border: 0.5vw dotted red !important;
    }

    #btn-holder{
        height: fit-content;
        display: flex;
        margin-bottom: 0.5vh;
        width: 97%;
    }

    #info{
        top: 97%;
    }

    #info-detailed {
        width: 70vw;
    }

    #exit{
        top: 1vw;
        font-size: 1.5vh;
        width: 2.5vh !important;
        height: 2.5vh !important;
    }
}

@media screen and (max-width: 600px) {
    *{
        border-radius: 3vh;
    }

    #main {
        gap: 0.5vw;
    }

    .err {
        font-size: 1vh;
    }

    #players-p {
        width: 60%;
    }

    #players {
        scrollbar-width: thin;
        justify-content: start;
    }

    .addP {
        border: 1vw dotted #00FF00;
    }

    .pErr{
        padding: 15% 5%;
        border: 1vw dotted red !important; 
    }

    #info {
        width: 3vh;
        height: 3vh;
        top: 96%;
        font-size: 2vh;
        border-width: 0.3vh;
    }

    #info-detailed {
        border-width: 0.3vh;
        width: 70vw;
        max-height: fit-content;
        gap: 2vw;
    }

    #info-detailed div {
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    #exit {
        right: 1vh;
        top: 1vh;
        width: 3vh !important;
        height: 3vh !important;
        padding: 1vw;
        font-size: 2vh;
        border-width: 0.3vh;
    }
}