html, body {
    height: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    overflow: hidden;
    background-color: #1A1D2B;
    color: #F7FAFC;
    display: flex;
    justify-content: center;
    align-items: center;
}

#background-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.content-container {
    padding: 1rem;
    flex-shrink: 0;
}

.card {
    margin: auto;
    background: rgba(255, 255, 255, 0.1);  
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 30px 40px; 
    text-align: center;
    max-width: 500px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    animation: fadeIn 1s ease-in-out;
    transition: transform 0.1s ease; 
    transform-style: preserve-3d;
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.link {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.2s ease;
    white-space: nowrap; 
    width: 100%; 
    box-sizing: border-box; 
    margin-bottom: 15px; 
}

.link:hover {
    transform: translateY(-2px);
}

.download {
    background: rgba(55, 0, 255, 0.4); 
    border: 1px solid #ffffff; 
    box-shadow: 0 4px 15px rgba(50, 12, 137, 0.4); 
    color: white;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.2s ease;
    white-space: nowrap; 
    width: 100%; 
    box-sizing: border-box; 
    margin-bottom: 15px; 
}

.download:hover {
    transform: translateY(-2px);
}


.links .link:last-child {
    margin-bottom: 0;
}

.links {
    display: flex;
    flex-direction: column; 
    justify-content: center;
    align-items: center; 
    width: 100%; 
    margin-top: 30px; 
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: rgba(255, 255, 255, 0.15);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 30px;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal-close-button {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 1.2em;
    color: white;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease;
}

.modal-close-button:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

.video-section {
    width: 100%;
    margin-top: 20px;
    text-align: left; 
}

.video-section h2 {
    color: white;
    font-size: 1.2em;
    margin-bottom: 15px;
    text-align: center; 
}

.video-covers {
    display: flex;
    flex-wrap: wrap; 
    justify-content: center; 
    gap: 20px; 
}

.video-cover-link {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    flex-shrink: 0; 
    width: 200px; 
    height: 150px; 
}

.video-cover-link:hover {
    transform: translateY(-5px);
}

.video-cover-link img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    display: block;
}

.copyright {
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8em;
    z-index: 999;
}

@media (max-width: 550px) { 
    .card {
        padding: 20px 25px; 
        max-width: 90%; 
    }
    .link {
        padding: 8px 15px;
    }
    .modal-content {
        max-width: 90%;
    }
    .video-cover-link {
        width: 160px; 
        height: 120px; 
    }
}

@media (max-width: 400px) {
    .video-cover-link {
        width: 100%; 
        height: 180px; 
    }
    .video-covers {
        flex-direction: column; 
        align-items: center; 
    }
}
