@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-Italic.ttf') format('truetype');
    font-weight: normal;
    font-style: italic;
}

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

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

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

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

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

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

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

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



html {
    margin: 0;
    height: 100vh;
    overflow: hidden;
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8vh;
    background-color: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100vw;
    height: 100%;
    margin: 0;
    color: #333;
    background-color: #70293b;
    overflow: hidden; /* Prevent scrollbars if content overflows */
    user-select: none;

}

h1{
    color: #ffffff;
    font-size: min(6.0vw, 3.0vh);
    line-height: min(7.0vw, 3.5vh);
    margin: 0;
    text-transform: uppercase;
    width: 100%;
}

h2 { 
    color: #ffffff;
    font-size: min(5.5vw, 2.5vh);
    line-height:min(5.5vw, 2.5vh);
    font-weight: 200;
    margin: 0;
    width: 100%;
}

i {
    font-weight: 200;
    text-emphasis: none;
    font-style: normal;
}

h3 { 
    color: #ffffff;
    font-size: 1.8vh;
    line-height: 2.2vh;
    font-weight: bold;
    margin: 0;
    width: 100%;
}

p {
    margin: 0;
    color: white;
    width: 100%;
}

.prize {
    float: right;
    width: min(28vw, 17vh);
    margin-left: 1vh;
}

#game-board {
    top: 0;
    left: 50%;
    height: 100vh;
    aspect-ratio: 9/16;
    position: absolute;
    /* Centering the board if it's smaller than full width */
    margin-left: auto;
    margin-right: auto;
    left: 50%;
    transform: translateX(-50%);

}

#scene-canvas {
    position: absolute;
    top: 0;
    left: 50%;
    height: 100vh;
    aspect-ratio: 9/16;
    overflow: hidden;
    display: block; 
    opacity: 0.0;
    
/* WebKit prefixes */
    -webkit-mask-image: linear-gradient(to bottom, transparent 22%, black 35%, black 100%);
    -webkit-mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;

    /* Standard syntax */
    mask-image: linear-gradient(to bottom, transparent 22%, black 35%, black 100%);
    mask-size: 100% 100%;
    mask-repeat: no-repeat;

    transform: translateX(-50%);
}

#overlay {
    width: 100vw;
    position: fixed;
    left: 0;
    top: 0;
    opacity: 0.1;
}

#ui-container {
    position: absolute;
    width: min(83vw, 53vh);
    justify-content: center;
    pointer-events: none; /* Allow clicks to pass through to the canvas */
    z-index: 100;
    top: 4%;
    bottom: 2%;
    max-height: 100vh;
}

.wave-container {
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
}

.screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: left;
    position: absolute;
    overflow: hidden;
    height: 100%;
    width: 100%;
    pointer-events: none; /* Ignore input events when not visible */
    opacity: 0; /* Start invisible */
    transition: opacity 0.5s ease-in-out;
}



.visible {
    opacity: 1 !important;
    pointer-events: all; /* Capture clicks on the screen when visible */
}


form {
    transform: translateY(100vh);
}

.visible form {
    transform: translateY(0);
}

form h1 {
    font-size: 2vh;
    text-transform: none;
}

#choose-screen{
    pointer-events: none;
}

#blocked-screen 
{
    color: #6e293b;
}

#blocked-screen .bottomtext {
    bottom: 5vh;
    position: absolute;
}

#blocked-screen h1, #blocked-screen  h2 {
    font-size: 4vh;
    line-height: 4vh;
    text-transform: uppercase;
}

#blocked-screen h1, #blocked-screen  h2, #blocked-screen  p {
    color: #6e293b !important;
}

#blocked-screen p {
    margin-top: 2%;
    font-size: 2.5vh;
}

.logo {
    width: 35vh;
    margin-top: 0vh;
}

.screen h1, .screen h2 {
    margin-top: 0;
}

.flex-hor {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1vh;
    width: 100%;
}



.center {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

button {
    font-family: 'Poppins';
    font-weight: bold;
    background-color: #fad36c;
    border-radius: 20vh;
    border: none;
    padding: 1vh 5vh;
    color: #6e293b;
    text-transform: uppercase;
    font-size: 2vh;
    position: absolute;
    -webkit-tap-highlight-color: transparent;
    bottom: 5%;
    transition: opacity 0.5s;

   
}

button:focus {
  outline: none;
}

.screen button {
    font-family: 'Poppins';
    font-weight: bold;
    padding: 2vh 10vh;
    font-size: 3vh;
    cursor: pointer;
    border: none;
    background-color: #fad36c;
    color: #6e293b;
    transition: background-color 0.3s, opacity 0.5s;
    margin-top: 20vh;
    border-radius: 20vh;
    text-transform: uppercase;
    position: absolute;
    bottom: 6vh;
}

form button[type="submit"] {
    position:relative;
    margin-top: 5vh;
    margin-bottom: 5vh;
}

.screen button.inactive {
    pointer-events: none;
    opacity: 0.0;
}

.screen .terms {
    bottom: 0.5vh;
    position: absolute;
    font-size: min(2vw, 1.2vh);
    color: #6e293b;
}


button:hover {
    background-color: #ffffff;
}


#signup-screen form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5vh;
    width: 95%;
    margin-top: 4vh;
    padding-left: 2vh;
    padding-right: 2vh;
    margin-left: 2vh;
    margin-right: 2vh;
    transition: all 1s;
    overflow-y: scroll;
    overflow-x: hidden;
}

#signup-screen input[type="text"],
#signup-screen input[type="email"],
#signup-screen input[type="tel"] {
    padding: 1.3vh;
    padding-left: 2vh;
    border-radius: 10vh;
    border: none;
    width: 95%;
    font-size: 2vh;
    color: #6e293b;
}

#signup-screen select {
    padding: 1vh;
    border-radius: 5vh;
    border: none;
    width: 100%;
    font-size: 2vh;
    color: #6e293b;
    background-color: white;
}

label {
    color: #6e293b;
}

#signup-screen .terms-container {
    display: flex;
    align-items: center;
    gap: 1vh;
    margin: 3vh;
    margin-bottom: 4vh;
}

#signup-screen #terms-link {
    color: #ffffff;
    text-decoration: underline;
    cursor: pointer;
}

#terms-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 200;
    transition: all 0.2s;
    opacity: 0;
    pointer-events: none;
}

#terms-popup.visible {
    display: flex;
    pointer-events: all !important;
}


#terms-popup .popup-content {
    color: white;
    padding: 2vh;
    border-radius: 5vh;
    max-width: 55vh;
    height: 50vh;
    top: 15%;
    overflow-y: scroll;
    width: 90%;
    padding: 5vh;
    display: flex;
    align-items: center;
    position: fixed;
    flex-direction: column;
    mask-image: linear-gradient(black 80%, transparent);
  -webkit-mask-image: linear-gradient(black 80%, transparent);
}

#terms-popup::after{
    position: fixed;
    background-color: #6e293b;
    content: ' ';
    z-index: -1;

    padding: 2vh;
    top: 10%;
    border-radius: 5vh;
    max-width: 55vh;
    height: 70vh;
    overflow-y: scroll;
    width: 90%;
    padding: 5vh;
    display: flex;
    align-items: center;
    position: fixed;
    flex-direction: column;

}

#terms-popup button {
    position: fixed;
    bottom: 15%;
}

.popup-content p {
    color: white;
}

.popup-content a {
    color: white;
}

.popup-content h1 {
    margin-bottom: 3vh;
}

.popup-content h2 {
    font-weight: bold;
}


#message-area.visible {
    opacity: 1;
}


.slope-container {
    position: absolute;
    bottom: 0;
    right: 0;
    overflow: hidden;
    width: max(180vh, 120vw);
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    translate: 10%;
}

.slope-container svg {
    width: 100%;
    height: 100%;
    transform: scaleX(-1) scaleY(1.4);

}

.morphing-path {
    fill: #be505b;
    /* This animates the internal coordinates of the vector */

}

.morphing-path-2nd {
    fill: #e9a2a8;
    /* This animates the internal coordinates of the vector */
    translate: 0vh 5%;
}


@keyframes morph-slope {
    0%, 100% {
        /* Steep drop from left, flattening out early */
        d: path("M0,20 25,75 C60,40 100,65 100,100 L0,100 Z");
    }

}

.rounded-checkbox {
  width: 3vh;
  height: 3vh;
  aspect-ratio: 1;
  border-radius: 2vh;
  vertical-align: middle;
  background-color: #ffffff;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  cursor: pointer;
}
.rounded-checkbox:checked {
background: radial-gradient(circle, #6e293b 0.6vh, transparent 0.7vh) no-repeat center #ffffff;
}