$primary-color: #7fb37f;
$secondary-color: rgb(167, 146, 78);
$tertiary-color: green;
$quaternary-color: rgb(187, 116, 116);
$background: rgb(191, 196, 145);
$red-color: red;
$white-color: white;
$spinner: rgb(2, 3, 5);
$size: 50px;
$radius: 7px;

html { background-color: $background; 

  body {
    background-color: $background;

    .header-container {
      background-color: $secondary-color;
      padding: 20px;
      border-radius: 10px;
  
     .cimsor {
      font-size: 30px;
      }  
    
      .form-item {
        padding: 10px;
       
      #country-input, .reset, #submit {
        margin-right: 10px;
        padding: 5px;
        text-align: center;
      }
    
      input {
        border-radius: 5px;
        background-color: $background;
         &:hover {
          background-color: $white-color;
          }
         &:focus {
          background-color: $white-color;
          }
      }
      
      button {
        border-radius: $radius;  
      }
    
      #submit {
        background-color: $primary-color;
       &:hover {
         background-color: $tertiary-color;
        }
      }
    
      .reset {
        background-color: $red-color;
        color: $white-color;
        &:hover {
          background-color: $quaternary-color;
          }
        }
      }

    }

  }

  .error-message {
    text-align: center;
    background-color: red;
    color: white;
    padding: 10px;
    border-radius: 5px;
  }
}


.covid-container {
  padding-top: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;

  menyus-card {
    width: 25%;
    animation: fadeIn 2s;

    .card-content {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 20px;
      font-size: 25px;

      .delete-button {
        align-self: flex-end;
        background-color: $red-color;
        color: $white-color;
        padding: 5px 10px;
        border-radius: $radius;
      &:hover {
        background-color: $quaternary-color;
        }
      }
    }  
  }
}

.spinner {
  position: relative;
  width: $size;
  height: $size;
  animation: spinner 0.75s linear infinite;

  span {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
  }
  
  .spinner-inner-1 {
    background: linear-gradient(to right, rgba($spinner,0) 0%,rgba($spinner,0) 50%,$spinner 51%);
  }
  
  .spinner-inner-2 {
    background: linear-gradient(to top, rgba($background,0) 0%,$background 100%);
  }
  
  .spinner-inner-3 {
    $offset: $size * 0.1;
    top: $offset;
    left: $offset;
    width: $size - ($offset * 2);
    height: $size - ($offset * 2);
    background: $background;
  }
}

@keyframes spinner {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}
