*,
::before,
::after {
    box-sizing: border-box;
    border-width: 0;
    border-style: solid;
}
/* #26b57c */
h1, h2, p {
    margin: 0;
}

body {
    margin: 0;
    font-family: 'Raleway';
    background-color: #0f172a;
}

img {
    width: 40%;
    object-fit: cover;
}

#container {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

#coin-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    width: 40%;
}

#coin-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    font-size: 1.0600rem;
}

.coin-input-container {
    color: white;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.coin-input {
    font-size: 1rem;
    padding: 0.5rem;
    border-radius: 0.5rem;
    outline: none;
}

#form-btn {
    font-size: 1rem;
    padding: 0.5rem;
    background-color: #10b981;
    color:  #0f172a;
    font-weight: 300;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.7s ease-in-out;
}

#form-btn:hover {
    background-color: #6ee7b7;
}

#coin-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 1.1rem;
    color: white;
    background-color: #6ee7b71c;
    border-radius: 0.5rem;
    padding: 1rem;
    transition: all 1s ease-in-out;
}

.price {
    font-weight: 700;
}

/* Spinner */
.loader {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-block;
  align-items: center;
  justify-content: center;
  position: relative;
  border: 3px solid;
  border-color: #FFF #FFF transparent transparent;
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
}
.loader::after,
.loader::before {
  content: '';  
  box-sizing: border-box;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  margin: auto;
  border: 3px solid;
  border-color: transparent transparent #10b981 #10b981;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-sizing: border-box;
  animation: rotationBack 0.5s linear infinite;
  transform-origin: center center;
}
.loader::before {
  width: 32px;
  height: 32px;
  border-color: #FFF #FFF transparent transparent;
  animation: rotation 1.5s linear infinite;
}
    
@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
} 
@keyframes rotationBack {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(-360deg);
  }
}
    