@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700&display=swap");

:root {
  --white: #fff;
  --black: #1c2b2d;
  --blue: #31326f;
  --light-blue: #005490;
  --color-primary: #9d0191;
  --color-sec: #db6400;
  --grey: #eee;
  --dark-grey: #222831;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 10px;
}

body {
  font-family: "Open Sans", sans-serif;
}

p {
  font-size: 1.6rem;
  line-height: 1.5;
}

img {
  width: 100%;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

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

}

/* Instruction section */

.instructions{
  font-size: 1.6rem;
  width: 30%;
  height: 100vh;
  background-color: var(--black);
  padding-top: 5rem;
  color: #eee;
}

.instructions h2{
  font-size: 3.5rem;
  color: var(--color-sec);
  margin-bottom: 1rem;
position: relative;
padding-bottom: 5px;
}

.instructions h2::after{
  content: " ";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 25%;
  height: 2px;
  background-color: #eee;
}
.instructions ol{
  padding: 1rem 0 0 1.5rem;
  
}

.instructions ol a {
  color: var(--color-sec);
  text-decoration: none;
}


/* End of the instruction section */

/* Download section */

.download-link{
  width: 70%;
  padding-top: 5rem;

}

.download-link section{
  border: 2px solid var(--color-primary);
  border-radius: 0 0 5px 5px;
}

main h1{
  display: block;
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 5rem;
  color: var(--color-primary);
  text-align: center;
  padding-bottom: 1rem;
}

main input[type=radio]{
  display: none;
}

main nav{
  display: flex;
  justify-content: space-around;
  align-items: center;
  border: 1px solid #eee;
  padding: 5px;
  position: relative;
  background-color: var(--grey);
  z-index: 1;
}

main nav label{
  font-size: 1.6rem;
  font-weight: 600;
  padding: 1rem;
  position: relative;
  color: var(--dark-grey);
  cursor: pointer;
}

main nav label i{
  padding-right: 5px;
  color: var(--color-sec);

}
nav .slide{
  position: absolute;
  top: 0;
  left: 3%;
  width: 26%;
  height: 100%;
  background-color: var(--color-primary);
  border-radius: 3px;
  z-index: -1;
  transition: all 0.3s;
}

#register:checked~ nav .slide{
  left: 31%;

}

#reset:checked~ nav .slide{
  left: 66%;

}

#login:checked ~ nav label.login,
#register:checked ~ nav label.register,
#reset:checked ~ nav label.reset{
  color: #fff;

}

.content{
  display: none;

}
#login:checked ~ section .content-link{
  display: block;
}
#register:checked ~ section .content-audio{
  display: block;
}
#reset:checked ~ section .content-video{
  display: block;
}

/* End of download */

/* Form styles */

section .content{
  margin: 3rem auto;
  text-align: center;

}

.content > i{
  font-size: 3rem;
  color: var(--color-sec);
  border: 2px solid ;
  padding: 8px;
  border-radius: 5rem;

}

.content h2{
  font-size: 2rem;
  line-height: 2;
  padding: 0 1rem;
  position: relative;
}

.content p{
  padding-bottom: 1rem;

}

.content form{
  width: 70%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;

}
.content form label{
  position: relative;
  margin: 0 auto;
  width: 100%;

}
.content form label input{
  display: block;
  width: 100%;
  padding: 1.3rem 3rem;
  border-radius: 10px 0 10px 0;
  border-bottom: 2px solid rgba(0, 0, 0, 0.4);
  margin-bottom: 2rem;
  background-color: rgba(0, 0, 0, 0.1);
  outline: none;
  color: var(--dark-grey);
  transition: all 0.3s;
}

.content form label input:focus:invalid{
  font-size: 1.6rem;
  border-bottom: 2px solid var(--color-sec);
}

.content form label input:valid{
  font-size: 1.6rem;
  border-bottom: 2px solid green;
  background-color: #E8F0FE;
}
.content form i{
  position: absolute;
  left: 1rem;
  top: 1.5rem;
  font-size: 1.3rem;
  color: var(--color-sec);
}

::placeholder{
  font-size: 1.6rem;
  color: var(--dark-grey);

}

.content .btn{
  padding: 1.2rem;
  font-size: 1.6rem;
  font-weight: 700;
  background-color: var(--color-sec);
  outline: none;
  border: none;
  border-radius: 4px;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s;

}

.content .btn:hover{
  background-color: var(--color-primary);
}

.embed-code{
  font-size: 1.6rem;
  position: relative;
}

.content form textarea{
  width: 100%;
  height: 10rem;
  font-size: 1.6rem;
  outline: none;
  font-family: inherit;
}
.embed-code span{
  position: absolute;
  right: 1px;
  bottom: 5px;
  font-size: 1.6rem;
  font-weight: 700;
  background-color: var(--color-primary);
  color: #eee;
  padding: 5px 8px;
  border: 1px solid #eee;
  cursor: pointer;
  transition: all 0.3s;
}
.embed-code span:hover{
  font-size: 1.8rem;
}
.content .btn {
  padding: 1.2rem;
  font-size: 1.6rem;
  font-weight: 700;
  background-color: var(--color-sec);
  outline: none;
  border: none;
  border-radius: 3px;
  color: white;
  cursor: pointer;
  transition: all .3s;
}

.content .btn:hover {
  transform: translateY(-3px);
  background-color: var(--color-primary);
}

button.clear {
  font-size: 1.6rem;
  color: #fff;
  background-color: red;
  padding: .8rem;
  margin-top: 1rem;
  font-weight: 700;
  outline: none;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  transition: all .3s;
}

button.clear:hover {
  background-color: orangered;
}

/* MEDIA QUERIES */
@media screen and (max-width: 775px) {
  .main-container {
      display: flex;
      flex-direction: column-reverse;
  }
  .instructions {
      width: 100%;
  }

  .download-link {
      width: 100%;
      padding-bottom: 20px;
  }
  .download-link h1 {
      font-size: 3rem;
      line-height: 1;
  }
}
/*  */
@media screen and (max-width: 560px){
  main nav label{
    font-size: 1rem;
    padding: 0;
  }
}
