* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Open Sans", sans-serif;
    background: #212730;
}

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

#container {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    /* box-shadow: 0 8px 32px 0 #1f26875e; */
    border-radius: 1.5rem;
    background: rgba(32, 38, 48, 0.95);
    padding: 2rem;
}

#coin-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    width: 40%;
    background: rgba(44, 52, 65, 0.85);
    border-radius: 1rem;
    box-shadow: 0 4px 16px 0 rgba(252, 213, 53, 0.15);
    padding: 2rem 1rem;
}

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

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

.coin-input-container label {
    font-weight: 600;
    letter-spacing: 1px;
    color: #fcd535;
}

.coin-input {
    padding: 0.5rem;
    border-radius: 0.5rem;
    /* border: 1px solid #fcd535; */
    font-size: 1.2rem;
    background: #23272f;
    color: #fff;
    transition: border 0.2s;
}

.coin-input:focus {
    border: 2px solid #fcd535;
    outline: none;
}

#form-btn {
    padding: 0.7rem;
    border-radius: 0.5rem;
    border: none;
    background: linear-gradient(90deg, #fcd535 70%, #e0b32c 100%);
    box-shadow: 0 2px 8px 0 rgba(252, 213, 53, 0.25);
    color: #202630;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.3s, box-shadow 0.3s;
}

#form-btn:hover {
    background: linear-gradient(90deg, #e0b32c 70%, #fcd535 100%);
    box-shadow: 0 4px 16px 0 rgba(252, 213, 53, 0.35);
}

#coin-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-size: 1.1rem;
    color: #fff;
    background: rgba(32, 38, 48, 0.7);
    border-radius: 0.7rem;
    padding: 1rem;
    box-shadow: 0 2px 8px 0 rgba(252, 213, 53, 0.10);
}

.price {
    font-weight: 700;
    color: #fcd535;
    font-size: 1.1rem;
    text-shadow: 0 1px 4px rgba(252, 213, 53, 0.15);
}


/* Spinner */
.loader {
  border: 16px solid #23272f;
  border-top: 16px solid #fcd535;
  border-radius: 50%;
  width: 120px;
  height: 120px;
  animation: spin 2s linear infinite;
}

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


/* Responsividad para pantallas pequeñas */
@media (max-width: 768px) {
    #container {
        flex-direction: column;
        height: auto;
        padding: 2rem 1rem;
        gap: 3rem;
    }

    img {
        width: 80%;
        margin: 0 auto;
    }

    #coin-container {
        width: 100%;
        gap: 2rem;
    }

    #coin-form {
        font-size: 1rem;
        gap: 1rem;
    }

    .coin-input {
        font-size: 1rem;
        padding: 0.7rem;
    }

    #form-btn {
        font-size: 1rem;
        padding: 1rem;
    }

    #coin-info {
        font-size: 1rem;
    }
}

#main-footer {
    width: 100%;
    background: linear-gradient(90deg, #202630 80%, #fcd535 100%);
    color: #fff;
    text-align: center;
    padding: 1.2rem 0 1.2rem 0;
    font-size: 1rem;
    font-family: "Open Sans", sans-serif;
    letter-spacing: 1px;
    box-shadow: 0 -2px 8px 0 rgba(252, 213, 53, 0.10);
    /* position: fixed;
    left: 0;
    bottom: 0;
    z-index: 100; */
}

#main-footer a {
    color: #fcd535;
    text-decoration: none;
    font-weight: 700;
    margin-left: 0.5rem;
    transition: color 0.2s;
}

#main-footer a:hover {
    color: #e0b32c;
    text-decoration: underline;
}


