@import url("https://fonts.googleapis.com/css2?family=Abel&family=Baloo+2:wght@400..800&family=Courier+Prime:ital,wght@0,400;0,700;1,400;1,700&family=Karla:ital,wght@0,200..800;1,200..800&family=League+Spartan:wght@100..900&family=Odibee+Sans&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  width: 100%;
  background: hsl(148, 38%, 91%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Karla", sans-serif;
  height: 100vh;
}
main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #fff;
  padding: 30px;  
}
h1{
  margin-bottom: 10px;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 20px;
  margin-bottom: 5px;
}
.form-group input:hover {
  border: 2px solid hsl(169, 82%, 27%);
}
.form-group input:focus {
  outline: 0;
  border: 2px solid hsl(169, 82%, 27%);
}
.usernames {
  display: flex;
  align-items: center;
  gap: 10px;
}
.usernames input {
  width: 100%;
  padding: 10px 15px;
  border-radius: 10px;
  border: 1px solid hsl(169, 82%, 27%);
  cursor: pointer;
}
.usernames input:focus {
  border: 2px solid hsl(169, 82%, 27%);
}

.email input {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid hsl(169, 82%, 27%);
  cursor: pointer;
}

.left,
.right {
  flex: 1;
}
.radio-group {
  display: flex;
  gap: 10px;
}
.radio-button {
  flex: 1;
  padding: 8px;
  border-radius: 10px;
  border: 0.8px solid hsl(187, 24%, 22%);
  cursor: pointer;
}
.radio-button:hover {
  border: 2px solid hsl(169, 82%, 27%);
}
.radio-button input[type="radio"] {
  accent-color: hsl(169, 82%, 27%);
}
#checkbox {
  cursor: pointer;
}
#checkbox:active {
  background: hsl(169, 82%, 27%);
}
input[type="checkbox"] {
  accent-color: hsl(169, 82%, 27%);
}
.radio-button:active {
  background-color: hsl(148, 38%, 91%);
  border: 1px solid hsl(169, 82%, 27%);
}
.form-group textarea {
  width: 100%;
  height: 100px;
  resize: none;
  border-radius: 10px;
  cursor: pointer;
}
.form-group textarea:focus {
  outline: 0;
  border: 2px solid hsl(169, 82%, 27%);
}
.form-group textarea:hover {
  border: 2px solid hsl(169, 82%, 27%);
}
.pop-container {
  position: fixed;
  top: 10px;
  left: 40%;
  transform: translateX(-50%);
  background: hsl(187, 24%, 22%);
  padding: 20px;
  border-radius: 10px;
  color: #fff;
  opacity: 0;
}
.active{
    opacity: 1;
}
.pop-container h2 {
  font-size: 16px;
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}
.pop-container h2 img {
  width: 14px;
  margin-right: 7px;
}
.pop-container p {
  font-size: 12px;
}
button {
  width: 100%;
  padding: 10px;
  border: 0;
  outline: 0;
  background: hsl(169, 82%, 27%);
  font-size: 16px;
  color: #fff;
  cursor: pointer;
  border-radius: 10px;
}
.error{
    color: red;
}
.error-input {
    border-color: red !important;
  }
.attribution {
    margin-top: 10px;
  font-size: 16px;
  text-align: center;
}
.attribution a {
  color: hsl(228, 45%, 44%);
}
@media(max-width: 600px){

    .main{
        width: 90%;
        margin-top: 0px;
        justify-content: none;
    }
    .usernames{
        /* flex-direction: column; */
        display: block;
    }
    .usernames input{
        width: 100%;
        padding: 15px 20px;
    }
    .email input{
        padding: 15px 20px;
    }
    .radio-group{
        flex-direction: column;
        gap: 15px;
    }
    .radio-button{
        padding: 10px;
    }
    .pop-container{
        left: 50%;
        width: 100%;
    }
}
