body {
    font-family: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(to bottom right, #228B22, #4169E1, #DC143C);
    color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 20px;
    flex-grow: 1;
}

header {
    text-align: center;
    padding: 20px 0;
}

header h1 {
    font-size: 3em;
    color: #C0C0C0;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(255, 215, 0, 0.5);
    font-family: 'Playfair Display', 'Georgia', serif; /* Título elegante */
}

header p {
    font-size: 1.2em;
    color: #FFD700;
    font-family: 'Poppins', 'Segoe UI', sans-serif;
}

main {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

h2 {
    color: #FFD700;
    text-align: center;
    margin-bottom: 20px;
    font-family: 'Montserrat', 'Poppins', sans-serif;
    text-shadow: 1px 1px 2px rgba(192, 192, 192, 0.3);
}

#card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 10px;
    justify-items: center;
    margin-bottom: 20px;
}

.card-back {
    width: 80px;
    height: 120px;
    background-image: url("assets/card_back.jpg");
    background-size: cover;
    border: 2px solid #228B22;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.card-back:hover {
    transform: scale(1.05);
    border-color: #DC143C;
}

#message-area {
    text-align: center;
    font-size: 1.1em;
    color: #FFD700;
    margin-top: 20px;
    font-family: 'Roboto', 'Helvetica Neue', sans-serif;
}

#selected-card-display {
    text-align: center;
}

#selected-card-display img {
    max-width: 175px;
    height: auto;
    border: 4px solid #C0C0C0;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
    margin: 0 auto 20px auto;
    display: block;
}

#selected-card-display h3 {
    font-size: 2em;
    color: #C0C0C0;
    margin-bottom: 10px;
    font-family: 'Playfair Display', 'Georgia', serif;
}

#selected-card-display p {
    font-size: 1.1em;
    color: #FFD700;
    line-height: 1.5;
    font-family: 'Poppins', 'Segoe UI', sans-serif;
}

.buttons button {
    background-color: #4169E1;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    margin: 10px;
    font-family: 'Montserrat', sans-serif;
    transition: background-color 0.3s ease;
}

.buttons button:hover {
    background-color: #DC143C;
}

#info-section {
    margin-top: 40px;
    background-color: rgba(34, 139, 34, 0.3);
    padding: 20px;
    border-radius: 10px;
}

#info-section p {
    color: #FFD700;
    line-height: 1.5;
    font-family: 'Roboto', 'Helvetica Neue', sans-serif;
}

footer {
    text-align: center;
    padding: 20px 0;
    margin-top: auto;
    border-top: 10px solid rgba(65, 105, 225, 0.2);
    color: #C0C0C0;
    font-family: 'Poppins', 'Segoe UI', sans-serif;
}

#media-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

#selected-card-video {
    max-width: 200px;
    width: 100%;
    height: auto;
    border: 8px solid #C0C0C0;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

#selected-card-youtube {
    max-width: 200px;
    width: 100%;
    height: 275px;
    border: 4px solid #C0C0C0;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

#selected-card-image {
    max-width: 200px;
    height: auto;
    border: 6px solid #C0C0C0;
    border-radius: 20px;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

#selected-card-video {
    position: relative;
    width: 50%;
    max-width: 175px;
    margin: 0 auto 10px auto;
}

#selected-card-video iframe {
    width: 95%;
    height: 325px;
    border: 6px solid #C0C0C0;
    border-radius: 20px;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

@media (max-width: 768px) {
    #selected-card-video iframe {
        height: 200px;
    }
    
    #selected-card-youtube {
        height: 275px;
    }
}
