*
::before,
::after {
    box-sizing: border-box;
    border-width: 0;
    border-style: solid;
}

h1, h2, p {
    margin: 0;
}

body {
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    background-color: #638eca;
}

img {
    width: 30%;
    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: 30%;
}

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

.coin-input-container {
    color: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

#form-btn {
    font-size: 1.25rem;
    padding: 0.5rem;
    border-radius: 0.5rem;
    background-color: #3b82f6;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

#form-btn:hover {
    background-color: #26539c;
}

#coin-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 1.7rem;
    color: #ffffff;
}

.price {
    font-weight: 700;
}

.loader {
  border: 16px solid #f3f3f3; /* Light grey */
  border-top: 16px solid #3498db; /* Blue */
  border-radius: 50%;
  width: 120px;
  height: 120px;
  animation: spin 2s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

footer {
    color: #d97706;
    text-align: center;
    padding: 1rem;
    margin-top: 0.5rem;
    border-top: 5px solid var(--secondary-color);
}