*, html {
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

:root {
    --primary-color: white;
    --bg-color: linear-gradient(135deg, #3852c9, #475fc7, #596cc5, #6b7cc5);
    --secondary-color: #3852c9;
    --secondary-bg-color: rgb(165, 165, 252);
    --black-color: black;
    --tertiary-color: gray;
    --tertiary-bg-color: aliceblue;
    --border-color: aliceblue;
}

body {
    background: var(--bg-color);
    background-size: 800% 800%;
    animation: gradientBG 20s ease infinite;
    font-family: Arial, Helvetica, sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    min-height: 100vh;
}

header {
    color: var(--primary-color);
    text-shadow: 0 6px 30px rgba(1, 10, 51, 0.5);
    font-size: 3rem;
}

.top-bar {
    position: fixed;
    top: 10px;
    left: 0px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 1.2rem;
}

.hearts {
    font-size: 1em;
    display: flex;
    text-shadow: 0 6px 30px rgba(255, 32, 32, 0.5);
    align-items: center;
}

.hearts span {
    color: var(--primary-color);
    margin-left: 5px;
}

header span {
    color: var(--secondary-bg-color);
}

.heart-btn {
    position: fixed;
    top: 20px;
    right: 10px;
    background: rgba(255,255,255,0.1);
    border: none;
    padding: 0.7rem 0.7rem;
    border-radius: 8px;
    cursor: pointer;
    color: white;
    font-weight: bold;
    transition: all 0.3s ease;
}
.heart-btn:hover {
    background: rgba(255,255,255,0.2);
}

#container {
    background-color: var(--primary-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 1000px;
    height: auto;
    padding: 2rem 0;
    border-radius: 1.2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.result {
    width: 100%;
    display: flex;
    justify-content: center;
    border-radius: 1.2rem;
    padding: 1rem;
}

#question {
    padding: 2rem 6.5rem;
}

#alternative {
    padding: 2rem 0;
}

#alternative > ul {
    display: flex;
    flex-direction: row;
    gap: 0.7rem;
    list-style-type: none;
    font-size: 0.8rem;
}

ul > li {
    transition: all ease-in-out 0.3s;
}

ul > li:hover {
    transform: translateY(-3px);
}

ul > li > a {
    color: var(--black-color);
    background-color: var(--secondary-bg-color);
    border-radius: 1.2rem;
    padding: 1rem;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all ease-in-out 0.3s;
}
ul > li > a:hover {
    background-color: var(--primary-color);
    outline: 2px solid var(--secondary-color);
}

#feedback {
    font-size: 1rem;
    text-align: center;
    padding: 0 3.5rem;
}

.btn {
    background-color: var(--primary-color);
    font-size: 1rem;
    cursor: pointer;
    height: 100%;
    width: 100%;
    padding: 1.3rem;
    border-radius: 2rem;
    border-color: var(--border-color);
    font-weight: 700;
    transition: all ease-in-out 0.3s;
}

.btn:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

.btn:hover {
    color: var(--secondary-color);
    background-color: var(--tertiary-bg-color);
    border-color: var( --secondary-color);
}
.disabled-link {
    pointer-events: none;
    color: var(--tertiary-color);
    cursor: default;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@media (max-width: 880px) {
    header {
        font-size: 2rem;
    }

    #container {
        text-align: center;
        width: 100%;
        max-width: 600px;
        padding: 1rem 2rem;
    }

    #question, #alternative {
        padding: 1rem;
        font-size: 0.8rem;
    }

    #alternative {
        width: 100%;
    }

    #alternative > ul {
        display: grid;
        gap: 0.8rem;
    }

    ul > li > a {
        display: grid;
        width: 100%;
        text-align: center;
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    .btn {
        padding: 0.8rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    header {
        margin-top: 1rem;
        font-size: 1.5rem;
    }

    .heart-btn {
        top: 10px;
    }

    #container {
        padding: 1rem;
    }

    #question, #alternative {
        padding: 1rem;
    }

    ul > li > a {
        width: 100%;
        text-align: center;
    }

    #feedback {
        font-size: 0.8rem;
        padding: 0;
    }

    .btn {
        padding: 0.5rem 1rem;
    }
}