@import url("https://fonts.googleapis.com/css2?family=Poppins&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+JP&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab&display=swap');


.main-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.background img {
  top: 0;
  right: 0;
  position: fixed;
  height: 100%;
  width: 100%;
  object-fit: cover;
  z-index: 1;
}

.nav{
    position: fixed;
    z-index: 9;
    top:15vh;
}

.nav ul{
    margin-top: 5vh;
    display:flex;
    flex-direction:row;
    transform: translateY(-16vh) translateX(-25vw);
}

.nav li{
    list-style: none;
    margin-right: 3vw;
    transition: 0.4s ease-in-out;
}

.nav a{
    text-decoration:none;
    font-family: 'Roboto Slab', serif;
    color: black;
    font-weight:bolder;
    font-size: 1.3rem;
    transition:0.4s ease-in-out;
}

.nav a:hover{
    color: white;
    transition:0.4s ease-in-out;
}

.card {
  top: 10vh;
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  height: 400px;
  width: 450px;
  background-color: #ffffff;
  z-index: 4;
  transform: translateY(10vh);
  border-radius: 15px;
  box-shadow: 1px 1px 20px 5px rgba(0, 0, 0, 0.6);
  font-family: "Poppins", sans-serif;
  flex-direction: column;
  overflow: hidden;
}

.header {
  top: 5px;
  margin: 20px 20px;
  transform: translateY(-4vh);
}

.form-control {
  display: flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  transform: translateY(-10vh) translateX(-10vw);
}

#name {
  display: flex;
  flex-direction: row-reverse;
  margin:15px 10px;
  cursor: text;
  transform: translateX(6vw);
}

#email {
  display: flex;
  flex-direction: row-reverse;
  margin: 10px 10px;
  transform: translateX(4vw);
}

#name label {
  transform: translateX(4vw);
  font-size: 1rem;
  cursor: text;
  transition: 0.2s ease-in-out;
}

#email label {
  transform: translateX(8vw);
  cursor: text;
  font-size: 1rem;
  transition: 0.2s ease-in-out;
}

#name input {
  width: 16vw;
  font-family: inherit;
  border: none;
  border-bottom: 1px solid black;
  transition: 0.2s ease-in-out;
}

#email input {
  width: 16vw;
  font-family: inherit;
  border: none;
  border-bottom: 1px solid black;
  transition: 0.2s ease-in-out;
}

#name input:focus {
  outline: none;
  border-bottom: 1px solid lightsalmon;
  transition: 0.2s ease-in-out;
}

#email input:focus {
  outline: none;
  border-bottom: 1px solid lightsalmon;
  transition: 0.2s ease-in-out;
}

#name input:focus + label {
  transform: translateY(-4vh) translateX(2vw);
  transition: 0.2s ease-in-out;
  font-weight: bold;
  color: lightsalmon;
}

#email input:focus + label {
  transform: translateY(-4vh) translateX(6vw);
  transition: 0.2s ease-in-out;
  font-weight: bold;
  color: lightsalmon;
}

#name input:valid {
  outline: none;
  border-bottom: 1px solid lightsalmon;
  transition: 0.2s ease-in-out;
}

#name input:valid + label {
  transform: translateY(-4vh) translateX(2vw);
  transition: 0.2s ease-in-out;
  font-weight: bold;
  color: lightsalmon;
}

#email input:valid {
  outline: none;
  border-bottom: 1px solid lightsalmon;
  transition: 0.2s ease-in-out;
}

#email input:valid + label {
  transform: translateY(-4vh) translateX(6vw);
  transition: 0.2s ease-in-out;
  font-weight: bold;
  color: lightsalmon;
}

#password {
  display: flex;
  flex-direction: row-reverse;
  margin: 15px 20px;
  cursor: text;
  transform: translateX(4vw);
}

#password label {
  transform: translateX(6vw);
  font-size: 1rem;
  cursor: text;
  transition: 0.2s ease-in-out;
}

#password input {
  width: 15vw;
  font-family: inherit;
  border: none;
  border-bottom: 1px solid black;
  transition: 0.2s ease-in-out;
}

#password input:focus {
  outline: none;
  border-bottom: 1px solid lightsalmon;
  transition: 0.2s ease-in-out;
}

#password input:focus + label {
  transform: translateY(-4vh) translateX(2.5vw);
  transition: 0.2s ease-in-out;
  font-weight: bold;
  color: lightsalmon;
}

#password input:valid {
  outline: none;
  border-bottom: 1px solid lightsalmon;
  transition: 0.2s ease-in-out;
}

#password input:valid + label {
  transform: translateY(-4vh) translateX(2.5vw);
  transition: 0.2s ease-in-out;
  font-weight: bold;
  color: lightsalmon;
}

#checkbox1 {
  display: flex;
  flex-direction: row;
  transform: translateX(12vw) translateY(2vh);
}

#checkbox1 input{
  height: 30px;
  width: 30px;
  cursor: pointer;
}

#checkbox1 input:checked + label{
  color: lightgreen;
}

#submit {
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: "Noto Sans JP", sans-serif;
  margin: 5px 5px;
  background-color: lightgreen;
  height: 80px;
  width: 100%;
  cursor: pointer;
  transition: 0.4s ease-in-out;
}

#submit:hover {
  background-color: green;
  transition: 0.4s ease-in-out;
}

#submit a {
  text-decoration: none;
  color: black;
}

#submit h1 {
  font-size: 2rem;
  font-weight: bolder;
  letter-spacing: 2px;
  transition: 0.3s linear;
}

#submit h1:hover {
  letter-spacing: 5px;
  transition: 0.3s linear;
}


