@charset "UTF-8";

@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;1,400&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,200;1,200&display=swap");

:root {
  --font-base: "Cormorant Garamond", serif;
  --font-alt: "Raleway", sans-serif;

  --color-golden: #c9b8a5;
  --color-black: #0c0c0c;
  --color-gray: #545454;
  --color-crimson: #f5efdb;
  --color-grey: #aaaaaa;
  --color-white: #ffffff;
  --color-base: #e5e5e5;
}

body {
  overflow-x: hidden;
}

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  scroll-behavior: smooth;
}

a {
  color: unset;
  text-decoration: none;
}

form {
  width: 100%;
  padding: 0 10vw;
}

label {
  display: block;
  margin-bottom: 8px;
}

input,
select {
  width: 100%;
  padding: 8px;
  margin-bottom: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.form-container {
  position: relative;
  width: 100%;
  height: 100vh;
  background-image: url("../assets/img/projects/onsen-ecopark01.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
}
.form-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(20, 20, 20, 1) 30%,
    rgba(20, 20, 20, 0) 100%
  );
  z-index: 1;
}

.form-content {
  position: relative;
  z-index: 2;
}

.form-content {
  background-color: transparent;
  width: 50vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.form-content h2 {
  font-size: 80px;
  font-family: var(--font-base);
  font-weight: 400;
  color: var(--color-base);
  padding-top: 2rem;
}

#fancy-inputs {
  float: left;

  label.input {
    float: left;
    width: 100%;
    height: 42px;
    font-weight: 200;
    margin-top: 75px;
    position: relative;
    clear: both;

    span {
      width: 100%;
      height: 60px;
      line-height: 40px;
      font-weight: 200;
      position: absolute;
      left: 0;
      cursor: text;
      transition: 0.3s;

      span {
        position: absolute;
        top: 0;
        z-index: 1;
        font-family: var(--font-alt), cursive;
        font-size: 40px;
        font-weight: 200;
        color: var(--color-base);
        text-indent: 10px;
        transition: 0.3s;
      }

      &:before {
        content: "";
        width: 0;
        height: 3px;
        background-color: var(--color-base);
        position: absolute;
        bottom: 0;
        left: 0;
        z-index: 99;
        transition: 0.3s;
      }

      &:after {
        content: "";
        width: 0;
        height: 3px;
        background-color: var(--color-base);
        position: absolute;
        bottom: 0;
        right: 0;
        z-index: 99;
        transition: 0.3s;
      }
    }
  }

  input {
    float: left;
    width: 100%;
    height: 60px;
    font-weight: 200;
    padding: 0 10px;
    padding-bottom: 15px;
    border: none;
    border-bottom: 3px solid black;
    background-color: transparent;
    color: var(--color-base);
    font-family: var(--font-alt), cursive;
    font-size: 40px;
    position: relative;
    z-index: 99;

    &:focus {
      outline: none;
    }
  }

  input:focus + span {
    span {
      cursor: initial;
      position: absolute;
      top: -50px;
      color: var(--color-base);
    }

    &:before {
      width: 50%;
    }

    &:after {
      width: 50%;
    }
  }

  span.fixed {
    span {
      top: -50px;
    }
  }
}

.hidden {
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}

.custom__button {
  position: relative;
  background-color: var(--color-gray);
  color: var(--color-black);
  font-family: var(--font-base);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 40px;
  font-size: 30px;
  padding: 0.5rem 1.5rem;
  border-radius: 1px;
  border: none;
  outline: none;
  cursor: pointer;
  margin-top: 4rem;
  width: 100%;
  overflow: hidden;
  margin-bottom: 2rem;
}

.custom__button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  width: 100%;
  background-color: var(--color-base);
  transition: 0.3s ease-out;
  z-index: 1;
  transform: translateY(-100%);
}

.custom__button span {
  position: relative;
  color: var(--color-base);
  transition: 0.2s 0.1s;
  z-index: 2;
}

.custom__button:hover span {
  color: var(--color-black);
}

.custom__button:hover::before {
  transform: translateY(0%);
}

@media screen and (max-width: 1050px) {
  .form-content h2 {
    font-size: 56px;
    margin-bottom: 2rem;
  }

  #fancy-inputs {
    label.input {
      height: 30px;
      margin-top: 50px;

      span {
        height: 50px;
        line-height: 40px;

        span {
          font-size: 30px;
        }
      }
    }

    input {
      height: 50px;
      padding-bottom: 0px;
      font-size: 30px;
    }

    input:focus + span {
      span {
        top: -40px;
      }
    }

    span.fixed {
      span {
        top: -40px;
      }
    }
  }
}

@media screen and (max-width: 850px) {
  .form-container {
    justify-content: center;
    align-items: center;
  }

  .form-content {
    width: 80vw;
    height: 80vh;
  }

  .form-content h2 {
    font-size: 70px;
    margin-bottom: 4rem;
  }

  #fancy-inputs {
    label.input {
      height: 30px;
      margin-top: 50px;

      span {
        height: 50px;
        line-height: 40px;

        span {
          font-size: 30px;
        }
      }
    }

    input {
      height: 50px;
      padding-bottom: 0px;
      font-size: 30px;
    }

    input:focus + span {
      span {
        top: -40px;
      }
    }

    span.fixed {
      span {
        top: -40px;
      }
    }
  }
}

@media screen and (max-width: 450px) {
  .form-content {
    width: 100vw;
    height: 100vh;
  }

  .form-content h2 {
    font-size: 45px;
    margin-bottom: 5rem;
  }

  .placeholder {
    position: relative;
    top: -75px;
  }

  [type="date"],
  [type="time"] {
    font-size: 16px;
  }
}

input,
select,
textarea,
button,
span {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  color: var(--color-base);
  background-color: transparent;
}

[type="date"],
[type="time"] {
  color: var(--color-base);
  background-color: transparent;
}

/* Nav Bar

.app__navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 150px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 5;
  overflow: hidden;
  background-color: transparent;
}

.app__navbar-logo {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.app__navbar-logo img {
  width: 100px;
  margin-left: 6rem;
  cursor: pointer;
}

@media screen and (max-width: 1150px) {
  .app__navbar-links {
    display: none;
  }
}

@media screen and (max-width: 650px) {
  .app__navbar-logo img {
    width: 80px;
    margin-left: 3rem;
  }
}

@media screen and (max-width: 350px) {
  .app__navbar-logo img {
    width: 50px;
    margin-left: 2rem;
  }
} */

/* Preloader */
.pre-loader {
  position: fixed;
  top: 0;
  width: 100%;
  height: 100vh;
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: z-index 10s;
}

.pre-loader.hidden {
  z-index: -1000;
}

.pre-loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-alt);
}

.pre-loader-content span {
  font-family: var(--font-alt);
}

.pre-loader-text {
  margin-bottom: 0.5em;
  font-size: 100px;
  font-weight: 400;
  color: var(--color-base);
}

.loader {
  width: 500px;
  height: 2px;
  background: var(--color-base);
}

@media screen and (max-width: 2000px) {
  .loader {
    width: 600px;
  }
}

@media screen and (max-width: 1500px) {
  .pre-loader-text {
    font-size: 80px;
  }

  .loader {
    width: 450px;
  }
}

@media screen and (max-width: 1050px) {
  .pre-loader-text {
    font-size: 60px;
  }

  .loader {
    width: 360px;
  }
}

@media screen and (max-width: 850px) {
  .pre-loader-text {
    font-size: 45px;
  }

  .loader {
    width: 280px;
  }
}

@media screen and (max-width: 650px) {
  .pre-loader-text {
    font-size: 30px;
  }

  .loader {
    width: 200px;
  }
}
