body {
    margin: 0;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    font-family: Verdana, sans-serif;
}

.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    background-image: url('../assets/background.webp');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    will-change: transform;
}

.background::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* semi-transparent overlay */
    z-index: 1;
}

.site-title {
    color: #fff;
    text-align: center;
    margin-top: 10vh;
    font-size: 3.2rem;
    letter-spacing: 2px;
    position: relative;
    z-index: 1;
    font-weight: bold;
}

.site-paragraph {
    color: #fff;
    text-align: center;
    margin-left: 2vw;
    margin-right: 2vw;
    margin-top: 5vh;
    font-size: 1.05rem;
    letter-spacing: 1.2px;
    position: relative;
    z-index: 1;
    font-weight: 400;
}

.site-paragraph[id^="topic-"] {
    font-size: 1.18rem;
    font-weight: 700;
    text-align: left;
    margin-left: 0;
}

.site-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 4vh;
    margin-bottom: 2vh;
    z-index: 1;
    position: relative;
}

.site-link-btn {
    display: inline-block;
    padding: 0.75em 2em;
    border: 2px solid #fff;
    background: transparent;
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    font-size: 1rem;
    letter-spacing: 1px;
    transition: background 0.2s, color 0.2s;
    cursor: pointer;
    margin: 0.25em;
}

.site-link-btn:hover,
.site-link-btn:focus {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    outline: none;
}

@media (max-width: 340px) {
    .site-links {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .site-link-btn {
        width: 90vw;
        max-width: 340px;
    }
}

.accordion {
    margin: 4vh auto 2vh auto;
    padding: 2rem;
    max-width: 600px;
    background: transparent;
    border-radius: 12px;
    z-index: 1;
    position: relative;
}

.accordion-item {
    border: 1px solid #fff;
    border-radius: 10px;
    margin-bottom: 1rem;
    background: transparent;
    overflow: hidden;
}

.accordion-btn {
    width: 100%;
    background: transparent;
    color: #fff;
    border: none;
    outline: none;
    text-align: left;
    padding: 1em;
    font-size: 1.15rem;
    font-weight: 500;
    cursor: pointer;
    letter-spacing: 1px;
    border-bottom: 1px solid #fff;
    transition: background 0.2s;
}

.accordion-btn:hover,
.accordion-btn:focus {
    background: rgba(255, 255, 255, 0.08);
}

.accordion-content {
    display: none;
    flex-direction: column;
    padding: 0.75em 1em;
    background: transparent;
}

.accordion-content a {
    color: #fff;
    text-decoration: none;
    margin-bottom: 0.5em;
    font-size: 1rem;
    transition: color 0.2s;
}

.accordion-content a:hover {
    color: #e0e0e0;
}

/* Show content when active */
.accordion-item.active .accordion-content {
    display: flex;
}

#websites-list {
    width: 95%;
    max-width: 340px;
    margin: 0 auto;
}

#websites-list a {
    text-decoration: none;
    color: #fff;
}

.resultMain {
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.resultSub {
    font-size: 1rem;
    font-weight: 400;
}

.site-result {
    padding: 1.5rem 1rem;
    text-align: justify;
    color: #fff;
    text-decoration: none;
    display: block;
    transition: background 0.15s;
    width: 90%;
}

.site-result:not(:last-child) {
    border-bottom: none;
}

.site-result:hover,
.site-result:focus {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    outline: none;
    text-decoration: none;
}

.site-result div {
    color: #fff;
}

.site-result:visited {
    color: #fff;
    text-decoration: none;
}

.site-result hr {
    border: none;
    border-top: 2px solid #eee;
    margin: 18px 0 0 0;
    width: 100%;
}

.resultInstructions {
    margin: 0.5em 0 0.5em 0;
    background: rgba(255, 255, 255, 0.08);
    border-left: 3px solid #fff;
    padding: 0.5em 1em;
    font-size: 0.97em;
    color: #fff;
}

.resultInstructions strong {
    display: block;
    margin-bottom: 0.3em;
    color: #fff;
}

.resultInstructions ol {
    margin: 0 0 0 1.2em;
    padding: 0;
}

.resultInstructions li {
    margin-bottom: 0.2em;
    line-height: 1.5;
}

#topics-float-btn {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 1000;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 0.9em 2em;
    font-size: 1.1em;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
    cursor: pointer;
    transition: background 0.2s;
}

#topics-float-btn:hover,
#topics-float-btn:focus {
    background: #444;
}

#topics-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

#topics-modal-content {
    background: rgba(0, 0, 0, 1);
    color: #fff;
    border-radius: 12px;
    min-width: 220px;
    max-width: 90vw;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
    text-align: left;
    margin: 8vh auto;
}

@media (max-width: 340px) {
    #topics-float-btn {
        right: 12px;
        bottom: 12px;
        padding: 0.7em 1.2em;
        font-size: 1em;
    }

    #topics-modal-content {
        min-width: 140px;
    }
}