/* ===== GLOBAL ===== */
html, body {
    height: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    font-family: 'Fugaz One', cursive;
    color: #ffffff;
    text-align: center;
    font-size: 1rem;

    background-image: url('img/background.jpg');
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

@media (max-width: 768px) {
    body {
        background-attachment: scroll;
    }
}

main {
    flex: 1;
}

/* ===== HEADER ===== */
header {
    background: linear-gradient(to bottom, #3B3273, transparent);
    padding: 20px 10px;
    font-size: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

header a {
    color: #ffffff;
    text-decoration: none;
    margin: 0 15px;
}

header a:hover {
    text-decoration: underline;
}

header, header a {
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 10px;
    }
}

/* ===== CONTAINER / LOGO ===== */
.container {
    margin: 20px auto;
    max-width: 800px;
}

.logo {
    max-height: 150px;
    width: auto;
    filter: drop-shadow(3px 3px 5px rgba(0,0,0,0.7));
}

.logo {
    max-width: 100%;
    height: auto;
}

/* Mobile logo size */
@media (max-width: 768px) {
    .logo {
        max-height: 80px; /* tweak: 80–100px */
    }
}

/* ===== HEADINGS ===== */
h1 {
    font-size: clamp(1.8rem, 6vw, 3rem);
    margin: 10px 0;
    word-wrap: break-word;
    text-align: center;
}

h2 {
    font-size: clamp(1rem, 4vw, 1.1rem);
    font-family: 'Poppins', sans-serif;
}

h1, h2 {
    text-shadow: 4px 4px 7px rgba(0,0,0,0.8);
}

/* ===== BUTTON GRID ===== */
.buttons-block {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); /* each button min 120px */
    gap: 20px;
    justify-content: center;
    justify-items: center; 
    padding: 20px;
    max-width: 600px; /* optional, keeps grid from stretching too wide */
    margin: 0 auto; /* center the whole grid horizontally */
}

.bgChg {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 120px;
    height: 120px;
    max-width: 140px;
    padding: 0;
    border: 3px solid #709DB6;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    backdrop-filter: blur(1px);
    background-color: rgba(255, 255, 255, 0.05);
    transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.2s ease;
    text-decoration: none; /* remove underline */
}

.bgChg img {
    width: 100px;
    height: 100px;
    margin-top: 20px; /* tweak this */
    object-fit: contain;
    display: block;
}

.bgChg:hover {
    background-color: #736DB5;
    transform: scale(1.05);
    opacity: 0.8;
}

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

.animated-row {
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
}

/* Tablet + phones */
@media (max-width: 768px) {
    .buttons-block {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

/* Very small phones (optional safety) */
@media (max-width: 360px) {
    .buttons-block {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== FOOTER ===== */
footer {
    background: linear-gradient(to top, #3B3273, transparent);
    width: 100%;
    padding: 10px 0;
    text-align: center;
    margin-top: auto;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

footer p {
    margin: 10px 0;
    font-size: 0.9em;
    font-family: 'Poppins', sans-serif;
}

footer a {
    color: #94689D;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}
