 /* MAIN STYLES */

 :root {
    --primary-color: #535473;
    --secondary-color: #797991;
    --accent-color: rgb(255, 182, 0);
    --text-color: #4e4e66;
    --font-family: 'Inter-Medium';
}

@font-face {
    font-family: 'Inter-Medium';
    src: url('fonts/Inter-Medium.ttf');
  }

  @font-face {
    font-family: 'Inter-Bold';
    src: url('fonts/Inter-Bold.ttf');
  }
 
  @keyframes fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(0.95);
    }
}

@keyframes bounce-input {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-0.5em);
    }

    60% {
        transform: translateY(-0.25em);
    }
}

@keyframes float-clouds {
    0% {
        transform: translateX(0) scale(1);
    }
    50% {
        transform: translateX(1.5em) scale(1.05); 
    }
    100% {
        transform: translateX(0) scale(1); 
    }
}

body {
    width: 100vw;
    height: 100vh;
    margin: 0;
    background-color: white;
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    overflow: hidden;
}


 /* SPLASH PAGE */
  .splashBackground {
    background-color: white;
    height: 100%;
    width: 100%;
    z-index: 99999999;
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
  }

  .splashContent {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 90vh;
    width: 100vw;
    max-width: 1200px;
    padding: 5vh;
    box-sizing: border-box;
  }

  .splashLoadingImgDiv {
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .splashLoadingImg {
    width: clamp(50px, 50vh, 450px);
  }

  .splashFunFact {
    width: 100%;
    text-align: center;
    font-weight: normal;
    font-family: var(--font-family);
    color: var(--primary-color);
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2vh 0;
  }

  .splashFunFact p {
    font-size: clamp(0.5rem, 3.0vh, 2.0rem);
    transition: font-size 0.3s ease;
    max-width: 80%;
    margin: 0;
  }

  .progressOuter {
    width: 100%;
    margin-top: auto; 
    position: relative;
  }

  .progress {
    width: 80%;
    max-width: 600px;
    height: 2vh;
    border-radius: 22px;
    color: var(--primary-color);
    border: 0.22vh solid;
    position: relative;
    margin: auto;
  }

  .progress::before {
    content: "";
    position: absolute;
    margin: 0.22vh;
    inset: 0 100% 0 0;
    border-radius: inherit;
    background: currentColor;
    width: var(--width, 0%);
  }

  .loadProgressText {
    font-family: var(--font-family);
    font-size: 2.5vh;
    margin-top: 3vh;
  }

  .splashFunFactContainer {
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    row-gap: 1vh;
    column-gap: 1vh;
    justify-content: center;
  }

  @media (max-height: 600px){
    .progressOuter {
      bottom: 0vh;
    }
  }

  @media (max-width: 400px) {
    .splashFunFact {
      visibility: hidden;
      display: none;
    }

    .splashLoadingImg {
      width: clamp(50px, 100vw, 300px);
    }
  }

  @media (max-height: 300px) {
    .splashLoadingImg {
      width: clamp(25px, 50vh, 150px);
    }
  }


 /* ONBOARDING PAGES */
  .wrapper {
    width: 100vw;
    height: 100vh;
    justify-content: center;
    align-items: center;
    font-size: min(0.85vw, 1vh);
    position: absolute;
    background:
    url('imgs/city.png') repeat-x center bottom/auto,
    linear-gradient(to bottom, #1D7CFF, #BFDAFF);

    /* display: flex; */
    display: none;
}

.containers {
    width: 100vw;
    height: 100vh;
    max-height: 100%;
    text-align: center;
    position: fixed;
    top: 0;
    padding: 0em;
}

.wrappers {
    display: flex;
    margin: 0;
    justify-content: center;
    align-items: center;
}

.buttons {
    background: linear-gradient(180.00deg, #FFB600, #FFC130 48%, #FFB600 48%, #FFB600 98%), #FFB600;
    border: 0.1em solid #E97D18;
    border-radius: 0.5em;
    box-shadow: inset 0.05em 0.05em 0 0.05em #FFCD5A, 0 0.09em 0 #C34606;
    cursor: pointer;
    font-weight: 700;
    padding: 0.65em 1.5em;
}

.background-clouds {
    position: absolute;
    background-size: cover;
    z-index: -1;
    width: 20em;
    animation: float-clouds 7s linear infinite;
}

.text {
    color: white;
    text-shadow:
    -0.03em -0.03em 0 #2E86FF,
    0.03em -0.03em 0 #2E86FF,
    -0.03em 0.03em 0 #2E86FF,
    0.03em 0.03em 0 #2E86FF;
}


/* ONBOARDING FIRST PAGE */
.welcome-container {
    transition: transform 0.3s ease-in-out;
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
}
.welcome-container.slide-out {
    transform: translateX(-100%);
    opacity: 0;
    visibility: hidden;
}
.welcome-container.slide-in {transform: translateX(0);}

.welcome-container.show {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
}


/* TITLE */
.welcome-container-title-wrapper {
    height: 33%;
    flex-direction: column;
}

.logo-container {
    margin-top: 15em;
    width: 80em;
}

.welcome-container-title {
    margin-top: 1.0em;
    margin-bottom: 0em;
    font-size: 4.5em;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
    text-align: center;
    width: 100%;
}


/* INPUT */
.input-wrapper {
    height: 33%;
    flex-direction: column;
}

.input-label {
    margin-top: 2.5em;
    font-size: 3.4em;
    font-weight: 600;
}

.input-field {
    width: 15em;
    padding: 0.4em 0.01em;
    margin-top: 0.55em;
    border-radius: 0.5em;
    border: 1px solid #ccc;
    font-weight: 500;
    background-color: white;
    color: var(--secondary-color);
    font-size: 4em;
    line-height: 1.5;
    text-align: center;
    box-shadow: inset 0.05em 0.05em 0.2em 0em rgba(0, 0, 0, 0.25);
}
.input-field::placeholder {color: var(--secondary-color);}
.input-field:focus::placeholder {color: transparent;}
.input-field:focus {outline: none; animation: none;}
.no-bounce {animation: none !important;}
.bounce {animation: bounce 1s linear infinite;}
.bounce-input {animation: bounce-input 1s;}


/* BUTTON */
.continue-button-wrapper {
    height: 34%;
}

.continue-button {
    margin-top: 1em;
    font-size: 4.5em;
}
.continue-button[disabled] {filter: grayscale(1)}
.continue-button:active {animation: bounce 0.2s ease-in-out;}


/* ONBOARDING SECOND PAGE */
 .region-selection-container {
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
    transform: translateX(100%); 
    opacity: 0;
    visibility: hidden;
}

.region-selection-container.show {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
}


/* TITLE */
.header-wrapper {
    height: 12%;
}

.region-selection-container-button-back {
    color: white;
    position: fixed;
    left: 1.1em;
    top: 0.6em;
    font-size: 6.2em;
    border: none;
    background: none;
    cursor: pointer;
}

.region-selection-container-button-back img {
    width: 0.8em;
    height: 0.8em;
}

.region-selection-container-title {
    font-size: 6em;
    font-weight: 900;
    letter-spacing: 0.15em;
    /* text-shadow:
    -0.01em -0.01em 0 white,
    0.01em -0.01em 0 white,
    -0.01em 0.01em 0 white,
    0.01em 0.01em 0 white,
    -0.02em -0.02em 0 white,
    0.02em -0.02em 0 white,
    -0.02em 0.02em 0 white,
    0.02em 0.02em 0 white;
    color: #FF5310; */
    text-align: center; 
    margin-top: 1.25em;
    color: #ffffff;
}


/* INPUT */
.switch-button-wrapper {
    height: 6%;
}

.region-selection-container-text {
    font-size: 3.8em;
    font-weight: 700;
    letter-spacing: 0%;
    margin-top: 1.3em;
}


/* SWITCHER */
.switch-container {
    margin-left: 36em;
    display: flex;
    align-items: center;
    margin-top: 2.5em;
}

.switch-label {
    font-size: 2.7em;
    font-weight: 600;
}

.switch {
    margin-top: 0.6em;
    margin-left: 2em;
    position: relative;
    display: inline-block;
    width: 10em;
    height: 4.8em;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: red;
    transition: .4s;
    border-radius: 3em;
    box-shadow: inset 0px -0.1em 0px 0.25em rgba(0, 0, 0, 0.25), inset 0.35em 0.35em 0px 0px rgba(255, 255, 255, 0.25);
}

.slider:before {
    position: absolute;
    content: "";
    height: 3.8em;
    width: 3.8em;
    border-radius: 50%;
    box-shadow: inset -0.1em -0.2em 0em 0.1em rgba(75, 131, 50, 0.29);
    left: 0.55em;
    bottom: 0.55em;
    background-color: white;
    transition: .4s;
}
input:checked+.slider {background-color: #4CAF50;}
input:checked+.slider:before {transform: translateX(5em);}


/* REGION CARDS */
.region-box-wrapper {
    height: 62%;
    gap: 7em;
}

.region-box {
    margin: 0;
    width: 30em; 
    margin-top: 2em; 
    height: 54em;
    box-shadow: inset 0px -0.3em 0px 3px rgba(0, 0, 0, 0.13);
    background-color: #295DA2;
    border-radius: 2.8em; 
    padding: 0.5em; 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    transition: background-color 0.4s ease, color 0.4s ease;
    position: relative;
}
.region-box:active {animation: bounce 0.4s ease-in-out;}

.region-box-image {
    margin-top: 0.5em; 
    width: 28em; 
    height: 28em; 
    background-color: white;
    border-radius: 1.9em; 
    outline: 0.25em solid #1e4579;
    object-fit: cover;
}

.region-box.active .region-box-image {
    outline: 0.25em solid #E19212;
}

.region-box-title {
    font-size: 2.5em; 
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 0.8em; 
    color: white;
    /* text-shadow: 0.09em 0.09em 0px black; */
}

.region-box-text {
    width: 11em; 
    font-size: 2em; 
    font-weight: 600;
    line-height: 1.35em;
    margin-top: -0.2em; 
    color: white;
}

.region-box.active .region-box-checkmark {
    opacity: 1;
}

.region-box.active {
    background: #FFBF25;
    box-shadow: inset 0px -0.3em 0px 3px rgba(233, 125, 24, 0.41);
}

.region-box.active .region-box-title, .region-box.active .region-box-text {
    color: black;
}



/* BUTTON */
.create-city-button-wrapper {
    height: 20%;
}

.create-city-button {
    font-size: 3.5em;
    margin-top: -1.2em;
}
.create-city-button[disabled] {filter: grayscale(1);}
.create-city-button:active {animation: bounce 0.2s ease-in-out;}


/* CHECKBOXES */
.region-box-checkmark {
    position: absolute;
    top: -1.3em;
    right: -2.1em;
    width: 4.7em;
    height: 4.7em;
    border: 0.3em solid #F6A420;
    border-radius: 5em;
    box-shadow: inset 0.2em 0.2em 0em 0.1em #FFCD5A;
    background: #FFBF25;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.region-box-checkmark::before {
    content: '\2714';
    font-size: 2.5em;
    font-weight: 700;
    color: black;
}


 /* FINGER CHOICE */
 .region-box-choice {
    position: absolute;
    bottom: -1.3em;
    right: -2.1em;
    width: 4.7em;
    height: 4.7em;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.1s ease;
    z-index: 10;
}

.region-box-choice.active {
    opacity: 1;
    transform: scale(1);
}

.region-box-choice.inactive {
    transform: scale(0.8);
}

.region-box-choice img {
    transform: rotate(160deg);
    width: 10em;
    height: 10em;
}
