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

h1, h1, p {
    margin: 0;
}

body {
    margin: 0;
    font-family: 'Open sans', sans-serif;
    background-color: #111827;
    background-image: linear-gradient(180deg, rgba(17, 24, 39, 0.95), rgba(17, 24, 39, 1));
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}
.bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

select, input {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    outline: none;
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* esto hace que se creen dos columnas iguales */
    gap: 15px; 
    margin-top: 20px;
}

.dato-card {
    background: rgba(255, 255, 255, 0.1); 
    padding: 15px;
    border-radius: 10px;
    text-align: center;
}

.dato-card span {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #ccc;
}

.principal-price {
    font-weight: bold;
    text-align: center;
    background: #2ecc71; 
    padding: 15px;
    border-radius: 10px;
    color: white;
}

#container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}
#coin-container {
    padding: 20px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    background-color: slategray;
    box-shadow: #111827 0px 10px 15px -3px, #111827 0px 4px 6px -2px;
}
@media (max-width: 600px) {
    #coin-container {
        width: 90%;      
        max-width: 450px; 
        margin: 0 auto;
    }
    .details-grid {
        grid-template-columns: 1fr; 
    }
}
#coin-form {
    display: flex;
    gap: 1.5rem;
    flex-direction: column;
    font-size: 1.7rem;
}

#coin-input-container {
    color: white;
    display: flex;
    gap: 1rem;
    flex-direction: column;
}
#coin-input{
    padding: 0.5rem;
    border-radius: 0.5rem;
    font-size: 1.5rem;
    outline: none;
}

#form-btn {
    padding: 0.5rem;
    border-radius: 0.5rem;
    font-size: 1.5rem;
    background-color: #964db8;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
#form-btn:hover {
    background-color: #4c2085;
    transform: translateY(-2px);
}
.btn-dark {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    background-color: #333;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.modo-oscuro {
    background-color: rgba(0, 0, 0, 0.9) !important; 
    color: white !important; 
    border: 1px solid #444;
}

.github {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    border-radius: 20px;
    cursor: pointer;
    display: block;
}

.github img {
    width: 100;
    height: 100%;
    border-radius: 20px;
}
