body {
    font-family: sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(to bottom right, #4B0082, #00008B, #4682B4);
    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: #FFD700;
    margin-bottom: 10px;
}

header p {
    font-size: 1.2em;
    color: #E6E6FA;
}

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;
}

#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 #8A2BE2;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.card-back:hover {
    transform: scale(1.05);
}

#message-area {
    text-align: center;
    font-size: 1.1em;
    color: #E6E6FA;
    margin-top: 20px;
}

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

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

#selected-card-display h3 {
    font-size: 2em;
    color: #FFD700;
    margin-bottom: 10px;
}

#selected-card-display p {
    font-size: 1.1em;
    color: #E6E6FA;
    line-height: 1.5;
}

.buttons button {
    background-color: #8A2BE2;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    margin: 10px;
    transition: background-color 0.3s ease;
}

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

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

#info-section p {
    color: #E6E6FA;
    line-height: 1.5;
}

footer {
    text-align: center;
    padding: 20px 0;
    margin-top: auto;
    border-top: 10px solid rgba(0, 255, 255, 0.2);
    color: #E6E6FA;
}



/* Estilos para centralizar elementos de mídia */
#media-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

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

#selected-card-youtube {
    max-width: 200px;
    width: 100%;
    height: 275px;
    border: 4px solid #FFD700;
    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 #FFD700;
    border-radius: 20px;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

/* Estilos para o vídeo do YouTube */
#selected-card-video {
    position: relative;
    width: 50%;
    max-width: 175px;
    margin: 0 auto 10px auto;
}

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

/* Responsividade para dispositivos móveis */
@media (max-width: 768px) {
    #selected-card-video iframe {
        height: 200px;
    }
    
    #selected-card-youtube {
        height: 275px;
    }
}

