/* Reset some default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 50px 20px;
    min-height: 100vh;

    /* Gradient setup */
    background: linear-gradient(-45deg, #d4b92d, #6d5f2b, #e5c63b, #7e6d3b);
    background-size: 400% 400%;

    /* Animate background */
    animation: gradientAnimation 30s ease infinite;
}

@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    25% { background-position: 50% 50%; }
    50% { background-position: 100% 50%; }
    75% { background-position: 50% 50%; }
    100% { background-position: 0% 50%; }
}

/* Extended container */
.container {
    max-width: 900px; /* wider container */
    background: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    backdrop-filter: blur(5px);
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    animation: slideIn 1s ease-out;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

.profile-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid white;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.profile-img:hover {
    transform: scale(1.1) rotate(5deg);
}

/* Two-column layout for text and vertical buttons */
.content-row {
    display: flex;
    gap: 30px;             /* space between text and buttons */
    align-items: flex-start;
    margin-bottom: 30px;
}

.intro-text {
    flex: 2;
    text-align: left;
    font-size: 1rem;
    line-height: 1.6;
}

.vertical-buttons {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.vertical-buttons .bottom-button {
    padding: 12px 20px;
    text-align: center;
}

.twitch-embed {
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.twitch-embed:hover {
    transform: scale(1.02);
}

.bottom-button {
    text-decoration: none;
    color: white;
    border: 2px solid white;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.bottom-button:hover {
    background-color: white;
    color: #6d5f2b;
    transform: scale(1.1);
}

footer {
    margin-top: auto;
    padding: 20px;
    font-size: 0.9rem;
}

footer a {
    color: white;
    text-decoration: underline;
    position: relative;
}

footer a:hover {
    color: #ffcccc;
}

footer .heart {
    display: inline-block;
    color: red;
    animation: beat 1s infinite;
    transform-origin: center;
}

@keyframes beat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}
/* Mobile responsive layout */
@media (max-width: 768px) {
    /* Two-column content becomes vertical */
    .content-row {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .intro-text {
        text-align: center;
        flex: unset;
        font-size: 0.95rem;
    }

    .vertical-buttons {
        flex-direction: row;
        gap: 10px;
    }

    .vertical-buttons .bottom-button {
        padding: 10px 12px;
        font-size: 0.9rem;
    }

    /* Twitch frame smaller */
    .twitch-embed {
        max-width: 100%;  /* fills screen width */
        aspect-ratio: 1 / 1; /* keeps square */
    }

    /* Reduce h1 size */
    h1 {
        font-size: 2rem;
    }

    /* Container padding smaller */
    .container {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .intro-text {
        font-size: 0.9rem;
    }

    .vertical-buttons {
        flex-direction: column; /* stack buttons vertically again */
        gap: 12px;
    }

    .vertical-buttons .bottom-button {
        padding: 8px 10px;
        font-size: 0.85rem;
    }

    h1 {
        font-size: 1.7rem;
    }

    .container {
        padding: 20px 15px;
    }
}
