@import url("/style.css");

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  /* ensure full‑bleed under any notch */
  padding-top:    env(safe-area-inset-top);
  padding-right:  env(safe-area-inset-right);
  padding-bottom: env(safe-area-inset-bottom);
  padding-left:   env(safe-area-inset-left);
  background: #191918;
}

html, body, canvas {
    touch-action: none; /* Disable native gesture handling */
    overscroll-behavior: contain; /* Stop iOS bounce */
}
html {
    -webkit-text-size-adjust: 100%; /* Stops Safari text zoom */
    text-size-adjust: 100%;         /* Stops other browsers */
    font-size: 16px;                /* Base size for consistency */
}

body {
    font-size: 1rem; /* Explicitly use rem instead of browser default */
}
input, textarea, select {
    font-size: 16px; /* Prevent iOS Safari zoom on input focus */
}

body,
html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: Helvetica, Arial, sans-serif;
    background-color: #191918;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}


@keyframes rgbScroll {
    from {
        background-position: 0 0;
    }

    to {
        background-position: -3840px 0;
    }
}
#login-container::before,
#login-container::after {
  pointer-events: none;
}
#login-container::before { 
    content: "";
    position: absolute;
    top: 76%;
    left: 0;
    width: 200%;
    height: 2%;
    background: url('https://rampnerd.s3.us-east-1.amazonaws.com/img/rgbline.png') repeat-x;
    background-size: 1920px 100%;
    animation: rgbScroll 12s linear infinite;
    mix-blend-mode: normal;
    opacity: 1;
    z-index: 1;
}
#login-container::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://rampnerd.s3.us-east-1.amazonaws.com/img/halftoneline.png') repeat;
    background-size: 1920px 5px;
    animation: halftoneScroll 2s linear infinite;
    opacity: 0.1;
    mix-blend-mode: multiply;
    pointer-events: none;
    z-index: 2;
}
#login-container {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch; /* smooth scroll on iOS */
}

@keyframes halftoneScroll {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 0 15px;
    }
}

#outer-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2000; 
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #191918;
    overflow: hidden;
}

#login-container {
    position: absolute;
    pointer-events: auto;
    z-index: 2001;
    padding: 2;
    inset: 0;
    width: 100%;
    height: 100dvh;
    background: url("/media/loginbg.webp") center/cover no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
}

#login-box {

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2.25rem 2rem;
    border-radius: var(--radius);
    text-align: center;
    width: 90%;
    max-width: 320px;
    height: auto;
    background: rgba(0, 0, 0, 0.624);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(13px);
    -webkit-backdrop-filter: blur(13px);
    border: 1px solid rgba(38, 38, 38, 0.06);
    transition: transform .12s ease, box-shadow .12s ease;
    z-index: 2002;
}

#logo {
    content: url("/media/rampnerdlogoLW.svg");
    width: 180px !important;
    display: block;
    margin: 0 auto;
    color: var(--clr-secondary-light);
}

.login-button {
    width: 100%;
    max-width: 230px;
    aspect-ratio: 233 / 45.2;
    margin: 10px auto;
    padding: 10px 0;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    background-color: var(--clr-primary-dark);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .45);
    transition: transform .15s ease, box-shadow .15s ease;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, .55);
    filter: none;
}

.google-btn {
    background-image: url('/media/cogoogle.svg');
}

.apple-btn {
    background-image: url('/media/coapple.svg');
}

.email-btn {
    background-image: url('/media/coemail.svg');
}

.create-btn {
    background-image: url('/media/coecreate.svg');
}

.back-btn {
    background-image: url('/media/coeback.svg');
}

.signin-btn {
    background-image: url('/media/coesignin.svg');
}

.input-field {
    width: 100%;
    max-width: 260px;
    height: 45px;
    background-color: rgba(15, 15, 15, 0.541);
    border: none;
    box-shadow: none !important;
    outline: none;
    color: var(--clr-secondary-light);
    text-align: left;
    font-size: 16px;
    font-family: Helvetica, Arial, sans-serif;
    margin: 10px 0;
    padding-left: 10px;
    border-radius: var(--radius);
    z-index: 2003;
  pointer-events: auto;
}

.input-field::placeholder {
    color: #5e5e5e;
    font-style: italic;
}

.spacer {
    height: calc(60px);
}

.error-message {
    color: #b7b7b7a9;
    margin-bottom: 5px;
    font-size: 15px;
}

#unity-root {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
}
#unity-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  background: #191918;
  touch-action: none;       /* block native two‑finger zoom */
}

#preloader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: url('assets/Jloader.jpg') no-repeat center center;
    background-size: cover;
    z-index: 110;
}

#progress-container {
    width: 60%;
    max-width: 400px;
    height: 20px;
    border: 2px solid #fff;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

#progress-bar {
    width: 0%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    transition: width 0.1s ease-out;
}

#progress-text {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    text-align: center;
    line-height: 0px;
    font-family: sans-serif;
    color: #000;
    font-size: 0.8em;
}



#fullscreen-btn {
  display: none;
  position: fixed;
  top: 50px;
  right: 50px;
  width: 30px;
  height: 30px;
  background: url('assets/fullscreen.png') no-repeat center center;
  background-size: contain;
  cursor: pointer;
  pointer-events: auto;
  z-index: 100;
}

/* Shared overlay style */
.overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    color: white;
    font-size: 1.2rem;
    text-align: center;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    flex-direction: column;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Inner box for message */
#mobile-box, #rotate-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.624);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    max-width: 320px;
    text-align: center;
}

/* Buttons styled like login */
.overlay-button {
    width: 100%;
    max-width: 230px;
    aspect-ratio: 233 / 45.2;
    margin-top: 1rem;
    padding: 10px 0;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    background-color: var(--clr-primary-dark);
    color: white;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .45);
    transition: transform .15s ease, box-shadow .15s ease;
}

.overlay-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, .55);
}




@media (max-width: 768px) {
    #fullscreen-btn {
        display: none;
    }
}