@font-face {
    font-family: 'BloggerSans-Bold';
    src: url('fonts/BloggerSans-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

#snow {
    z-index: 10000;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    height: 100vh;
    display: flex;
    background-color: #0099b1;

    overflow-x: hidden;
    overflow-y: hidden;
    min-height: 100vh;
}

.container {
    text-align: center;
    border: 4px rgba(29,29,27,.15) solid;
    box-shadow: inset 0px 2px 0px 0px rgba(255,255,255,.15), 0px 3px 0px 0px rgba(255,255,255,0.15);
    border-radius: 12px;

    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80vw;
    height: 90vh;
    max-width: 1250px;
    max-height: 1000px;

    display: flex;
    flex-direction: column;
    justify-content: center;
}


.header {
    flex: 0 0 25%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.header img {
    max-width: 100%;
    max-height: 80%;
    height: auto;
    width: auto;
}

.header-text {
    font-family: "BloggerSans-Bold";
    text-transform: uppercase;
    font-size: 25px;
    letter-spacing: 1.78px;
    color: #FFFFFF;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    margin: 0px;

    text-shadow:
        -2px -2px 0 #014D56,
        2px -2px 0 #014D56,
        -2px 2px 0 #014D56,
        2px 2px 0 #014D56;

}


.content-container {
    display: flex;
    flex: 0 0 65%;

    overflow: hidden;
}

.content-left {
    flex: 3;
    background-color: rgba(0, 99, 108, 0.4);
    margin-top: 20px;
    margin-right: 40px;
    margin-left: 40px;
    border-radius: 10px;

    display: flex;
    flex-direction: column;
}

.add-player-label {
    display: flex;
    flex: 0 0 12%;
    flex-direction: column;
    justify-content: center;
}

.add-player-label > p {
    font-family: "BloggerSans-Bold";
    text-transform: uppercase;
    font-size: 25px;
    letter-spacing: 1.78px;
    color: #fff;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    margin: 0px;

    text-shadow: rgb(0, 99, 108) 3px 0px 0px, rgb(0, 99, 108) 2.83487px 0.981584px 0px, rgb(0, 99, 108) 2.35766px 1.85511px 0px, rgb(0, 99, 108) 1.62091px 2.52441px 0px, rgb(0, 99, 108) 0.705713px 2.91581px 0px, rgb(0, 99, 108) -0.287171px 2.98622px 0px, rgb(0, 99, 108) -1.24844px 2.72789px 0px, rgb(0, 99, 108) -2.07227px 2.16926px 0px, rgb(0, 99, 108) -2.66798px 1.37182px 0px, rgb(0, 99, 108) -2.96998px 0.42336px 0px, rgb(0, 99, 108) -2.94502px -0.571704px 0px, rgb(0, 99, 108) -2.59586px -1.50383px 0px, rgb(0, 99, 108) -1.96093px -2.27041px 0px, rgb(0, 99, 108) -1.11013px -2.78704px 0px, rgb(0, 99, 108) -0.137119px -2.99686px 0px, rgb(0, 99, 108) 0.850987px -2.87677px 0px, rgb(0, 99, 108) 1.74541px -2.43999px 0px, rgb(0, 99, 108) 2.44769px -1.73459px 0px, rgb(0, 99, 108) 2.88051px -0.838247px 0px;
}

.add-player-form {
    display: flex;
    flex: 0 0 50%;


    flex-direction: column;
    align-items: center;
    justify-content: center;
    
    padding: 20px;
}

.add-player-field > input {
    width: 100%;
}

.add-player-form-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 20px; /* Adjust spacing between fields */
    width: 80%; /* Ensure it spans the container width */
    text-align: start !important;
}

.add-player-field {
    flex: 1; /* Allow fields to grow evenly */
    display: flex;
    flex-direction: column; /* Align label and input vertically */
}


.add-player-form-label {
    color: #FFF;
    text-shadow: #000 3px 0px 0px, #000 2.83487px 0.981584px 0px, #000 2.35766px 1.85511px 0px, #000 1.62091px 2.52441px 0px, #000 0.705713px 2.91581px 0px, #000 -0.287171px 2.98622px 0px, #000 -1.24844px 2.72789px 0px, #000 -2.07227px 2.16926px 0px, #000 -2.66798px 1.37182px 0px, #000 -2.96998px 0.42336px 0px, #000 -2.94502px -0.571704px 0px, #000 -2.59586px -1.50383px 0px, #000 -1.96093px -2.27041px 0px, #000 -1.11013px -2.78704px 0px, #000 -0.137119px -2.99686px 0px, #000 0.850987px -2.87677px 0px, #000 1.74541px -2.43999px 0px, #000 2.44769px -1.73459px 0px, #000 2.88051px -0.838247px 0px;

    font-family: "BloggerSans-Bold";
    font-size: 20px;
    margin-bottom: 10px;
}

.player-field {
    display: block;
    background-color: rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 7px;
    font-family: "BloggerSans-Bold";
    font-size: 28px;
    color: rgba(255, 255, 255, 0.8);
    padding: 10px 20px;
    width: 80%;
    height: 48px;
    padding: 0px 10px;

    box-sizing: border-box;
    line-height: normal;
    transition: border-color 0.3s;

}

.player-field:focus {
    background-color: transparent;
    outline: none;
}

.add-player-confirm {
    display: flex;

    flex-direction: column;
    align-items: center;
    justify-content: center;

}

.add-player-button {
    background-color: rgb(255, 255, 255);
    margin: 0px 0px 6px;
    box-shadow: rgb(0, 99, 108) 0px 6px 0px 0px;
    border-radius: 7px;

    font-size: 19px;
    width: 195px;
    height: 46px;

    font-family: "BloggerSans-Bold";
    text-transform: uppercase;
    font-size: 20px;
    color: rgb(0, 99, 108);
}

.content-right {
    flex: 2;
    border: 3px solid rgba(0,0,0,.1);
    border-radius: 12px;
    margin-top: 20px;
    margin-right: 40px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    overflow-y: auto;
    overflow-x: hidden;
    width: calc(100% - 80px);
    box-sizing: border-box;
}

.content-scroll-wrapper {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    overflow-y: auto;
}

.content-scroll-box {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: flex-start;

    width: 100%;
    height: 100%;
    overflow-y: auto;
}

.user-banner {
    height: 62px;
    min-height: 62px;
    margin: 5px 10px;
    display: flex;
    flex-direction: row;

    border-radius: 7px;

    align-items: center;
    background-color: rgba(255, 255, 255, 0.7);
    box-shadow: rgba(0, 0, 0, 0.16) 0px 3px 7px 0px;

    width: calc(100% - 20px);
    box-sizing: border-box;
}

.user-banner > p {
    flex: 1 1 0%;
    margin: 0px 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    font-family: "BloggerSans-Bold";
    font-size: 20px;
    color: #000;
}


.footer {
    display: flex;
    flex: 0 0 10%;

    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.start-lottery-button {
    background-color: rgb(255, 255, 255);
    margin: 0px 0px 6px;
    box-shadow: rgb(0, 99, 108) 0px 6px 0px 0px;
    border-radius: 7px;

    font-size: 19px;
    width: 400px;
    height: 35px;

    font-family: "BloggerSans-Bold";
    text-transform: uppercase;
    font-size: 20px;
    color: rgb(0, 99, 108);
}


h1 {
    font-family: "BloggerSans-Bold";
    text-transform: uppercase;
    font-size: 46px;
    letter-spacing: 1.78px;
    color: #FFFFFF;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
}

#lottery-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    background: #74ebd5;
    background: linear-gradient(to right, #ACB6E5, #74ebd5);
    
    padding: 5%;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    text-align: center;
    z-index: 1000;
    border-radius: 10px;
    width: 80vw;
    height: 80vh;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#countdown {
    font-size: 5vw;
    margin-bottom: 2vh;
    color: white;
}

#paired-player-name {
    font-size: 3vw;
    color: white;
    opacity: 0;
}

.snowflake {
  position: absolute;
  width: 10px;
  height: 10px;
  background: linear-gradient(white, white);
  /* Workaround for Chromium's selective color inversion */
  border-radius: 50%;
  filter: drop-shadow(0 0 10px white);
}

.present {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.present > img {
    max-width: 20vw;
}


@media (max-width: 430px) {
    body {
        overflow: hidden;
    }

    .container {
        width: 100vw;
        height: 100vh;
        max-width: none;
        max-height: none;
        padding: 0;

        border: none;
        box-shadow: none;
        border-radius: unset;

        position: inherit;
        transform: none;
    }

    .add-player-label > p {
        margin-top: 5px;
    }

    .content-container {
        flex: 0 0 50%;
    }

    .content-left {
        margin-left: 10px;
        margin-right: 10px;
    }

    .content-right {
        margin-right: 10px;
    }

    .add-player-form {
        padding-right: 0px;
        padding-left: 0px;
    }

    .start-lottery-button, .player-field {
        width: 85%;
    }

    .add-player-button {
        width: 90%;
    }

    #paired-player-name, #countdown {
        font-size: 15vw;
    }

    .present > img {
        max-width: 45vw;
    }
}

@media (max-height:750px) {

    .add-player-form {
        padding: 0px;
    }
}
