/**************************************************************************
CSS for elements such as buttons and input boxes
**************************************************************************/

/**************************************************************************
Error and Success Messages
**************************************************************************/
#errorTxt, #successTxt{

    font-family: livory, serif;
    font-weight: 400;
    font-style: normal;
    font-size: 1.2rem;
    text-align: center;
    position: fixed;
    top: 25dvh;
    right: 0;


}

#errorTxt{

  color:rgb(230, 25, 54);
  background-color: rgb(71, 7, 16);
  

}

#successTxt{

  color: rgb(66, 235, 69);
  background-color: rgb(31, 112, 33);

}

.loginPip{

  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);

}

/**************************************************************************
Neumorphic Button
**************************************************************************/

.btn{

  width: 6rem;
  height: 2rem;
  border-radius: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.3s ease-in-out;

}

.btnLink{

  text-decoration: none;
  width: 100%;
  height: 100%;
  vertical-align: middle;
  line-height: 2rem;
  text-align: center;
  font-size: 0.7rem;
  font-family: cardea, serif;
  font-weight: 400;
  font-style: normal;
  transition: 0.3s ease-in-out;
}

/**************************************************************************
General Form and Input CSS
**************************************************************************/

.centerForm{

  width: 100vw;
  height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgb(35, 41, 119);
  overflow: hidden;
  background-image: url(../images/clover-bg.svg);
  background-size: 200px 200px;

}

.frm{

    width: 75vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px;
    box-shadow: 0.1rem 0.1rem 0.3rem rgb(26, 33, 108),
      -0.05rem -0.05rem 0.25rem rgb(68, 79, 205);
    max-width: 350px;
    min-width: 215px;
    margin-top: 4%;
    background-color: rgba(45, 54, 156, 0.6);

}

.frm label, .frm input, input[type=file]::file-selector-button, span{

  font-family: cardea, serif;
  font-weight: 400;
  font-style: normal;

}

input[type=file]::file-selector-button{

  color: var(--grey-shade-five);

}

.frm label, span{

  color: white;
  font-size: 0.8rem;

}

.frm input{

  color: white;
  font-size: 0.7rem;

}

input:is(:-webkit-autofill, :autofill) {
  color: white;
  -webkit-text-fill-color: white;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {

  transition: background-color 5000s ease-in-out 0s;

}

.frm h1{

  margin-bottom: 35px;
  font-size: 1.6rem;
  color: white;
  text-align: center;
  font-family: livory, serif;
  font-weight: 400;
  font-style: normal;

}

.frmBtn{

  margin-top: 24px;
  box-shadow: 0.1rem 0.1rem 0.3rem rgb(26, 33, 108),
      -0.05rem -0.05rem 0.25rem rgb(68, 79, 205);
  border-radius: 1rem;
  font-size: 0.8rem;
  color: white;
  text-align: center;
  font-family: cardea, serif;
  font-weight: 400;
  font-style: normal;
  transition: 0.3s ease-in-out;

}

.frmBtn:active{

  box-shadow: inset .1rem .1rem .25rem var(--white-shade-two), inset -.1rem -.1rem .25rem var(--white);

}

.allInp{

  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;

}

.inp{

  margin-bottom: 15px;

}

.allInp .inp{

    position: relative;

}

.allInp .inp input{

  width: 100%;
  min-width: 225px;
  padding-top: 10px;
  padding-bottom: 5px;
  color: white;
  margin-bottom: 15px;
  border: none;
  border-bottom: solid 1px white;
  outline: none;
  background: transparent;

}

.allInp .inp label{

  position: absolute;
  top:0;
  left: 0;
  padding: 5px 0;
  pointer-events: none;
  transition: 0.3s ease;

}

.allInp .inp input:focus ~ label,
.allInp .inp input:valid ~ label{
  top: -25px;
  left: 0;
  color: white;
  font-size: 0.85rem;
}

.frm input[type="file"]{

  width: 90%;
  padding: 5px;
  box-shadow: 0.1rem 0.1rem 0.3rem rgb(26, 33, 108),
    -0.05rem -0.05rem 0.25rem rgb(68, 79, 205);
  margin-top: 20px;
}

input[type=file]::file-selector-button{

  margin: 5px 50px 5px 5px;
  padding: 4px 10px;
  box-shadow: 0.1rem 0.1rem 0.3rem rgb(26, 33, 108),
    -0.05rem -0.05rem 0.25rem rgb(68, 79, 205);
  border: none;
  background-color: rgb(26, 33, 108);
  cursor: pointer;

}

.frm input[type="radio"]{

  cursor: pointer;
  margin-right: 5px;
  margin-left: 4px;
  transform: scale(1.4);

}

.radioAlign{

  margin-top: 20px;

}

.radioAlign div{

    box-shadow: 0.1rem 0.1rem 0.3rem rgb(26, 33, 108),
        -0.05rem -0.05rem 0.25rem rgb(68, 79, 205);
    background-color: rgba(50, 63, 201, 0.3);
    width: fit-content;
    padding: 4px 16px;
    border-radius: 25px;
    margin-bottom: 15px;

}

.rangeContainer{

  display: flex;
  justify-content: center;
  align-items: center;
  border: solid 1px var(--black-opacity-three);
  padding: 10px 15px;
  margin-bottom: 3vh;

}

.rangeContainer *:not(:last-child){

  margin-right: 15px;

}

.selector{

  width: 155px;
  text-align: center;
  height: 34px;
  border-radius: 10px;
  margin-bottom: 10px;
  box-shadow: 0.1rem 0.1rem 0.3rem rgb(26, 33, 108),
    -0.05rem -0.05rem 0.25rem rgb(68, 79, 205);
  background-color: rgb(36, 46, 148);
  color: white;
  border: none;
  font-size: 0.7em;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
}

@media screen and (max-width: 700px){

  .frm{

    margin-top: 60px;

  }

  .filters{

    width: 20.4rem;

  }

  .segmented-control__color{

    width: 4.65rem;
    font-size: 0.8rem;

  }

  #tab-2:checked ~ .segmented-control__color {
    transform: translateX(5.05rem);
  }
  #tab-3:checked ~ .segmented-control__color {
    transform: translateX(10.1rem);
  }
  #tab-4:checked ~ .segmented-control__color {
    transform: translateX(15.15rem);
  }

}

@media screen and (max-width: 375px){

  .filters{

    width: 17.34rem;

  }

  .segmented-control__color{

    width: 3.95rem;

  }

  #tab-2:checked ~ .segmented-control__color {
    transform: translateX(4.25rem);
  }
  #tab-3:checked ~ .segmented-control__color {
    transform: translateX(8.5rem);
  }
  #tab-4:checked ~ .segmented-control__color {
    transform: translateX(12.75rem);
  }

}

@media (hover:hover) and (pointer: fine){

  .frmBtn:hover, .frmBtn:focus{
    color: white;
    text-shadow: 0 0 10px var(--white-shade-opacity-six), 0 0 10px var(--white-shade-opacity-six);
  }

}
