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

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f0f2f5;
    color: #333;
}

#notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #6b5b95;
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 5px;
    z-index: 1000;
    transition: transform 0.5s ease-in-out;
}

#notification.hidden {
    transform: translateX(200%);
}

nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    min-height: 8vh;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 10;
}

.logo {
    color: #333;
    text-transform: uppercase;
    letter-spacing: 5px;
    font-size: 20px;
}

.nav-links {
    display: flex;
    justify-content: space-around;
    width: 40%;
}

.nav-links li {
    list-style: none;
}

.nav-links a {
    color: #333;
    text-decoration: none;
    letter-spacing: 3px;
    font-weight: bold;
    font-size: 14px;
    transition: color 0.3s ease;
    padding-bottom: 5px;
}

.nav-links a:hover {
    color: #6b5b95;
}

.nav-links a.active {
    color: #6b5b95;
    border-bottom: 2px solid #6b5b95;
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px;
    transition: all 0.3s ease;
}

section {
    padding: 2rem;
    min-height: 92vh;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

section.active {
    display: flex;
}

#home {
    background-color: #fff;
    justify-content: center;
}

.welcome-container {
    text-align: center;
}

.topics-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 0;
    height: 100%;
    align-items: center;
}

.topic {
    --color: #6b5b95;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: var(--color);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.2rem;
    text-align: center;
    padding: 1rem;
    cursor: pointer;
    animation: bubble 8s ease-in-out infinite;
}

.trend-bubble {
    --color: #6b5b95;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: var(--color);
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.2rem;
    text-align: center;
    padding: 1rem;
    cursor: pointer;
    animation: bubble 8s ease-in-out infinite;
    transition: transform 0.3s ease, top 1s ease, left 1s ease;
}

.topic:nth-child(2n), .trend-bubble:nth-child(2n) {
    animation-duration: 6s;
    animation-delay: -2s;
}

.topic:nth-child(3n), .trend-bubble:nth-child(3n) {
    animation-duration: 7s;
    animation-delay: -4s;
}

@keyframes bubble {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-20px) scale(1.05);
    }
}

#trends, #map, #about, #random, #login, #admin {
    background-color: #f0f2f5;
}

.trends-container {
    margin-top: 2rem;
    position: relative;
    width: 80vw;
    height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.map-container {
    width: 80%;
    height: 60vh;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.random-topic-container {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    text-align: center;
}

#generate-topic-btn, #add-topic-btn, #login-btn, #select-topic-btn, #reject-topic-btn, #pause-timer-btn {
    background-color: #6b5b95;
    color: #fff;
    border: none;
    padding: 1rem 2rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
    margin: 0 0.5rem;
}

#generate-topic-btn:hover, #add-topic-btn:hover, #login-btn:hover, #select-topic-btn:hover, #reject-topic-btn:hover, #pause-timer-btn:hover {
    background-color: #50417a;
}

#select-topic-btn {
    background-color: #87B6C4;
}

#reject-topic-btn {
    background-color: #F79F79;
}

#new-topic-input, #username-input, #password-input {
    padding: 0.5rem;
    font-size: 1rem;
    border-radius: 5px;
    border: 1px solid #ccc;
    margin-bottom: 1rem;
    width: 300px;
}

#add-topic-burger-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #6b5b95;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

#add-topic-burger-btn div {
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 2px 0;
    transition: all 0.3s ease;
}

.add-topic-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1002;
}

.add-topic-popup.active {
    display: flex;
}

.add-topic-container {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.error-message {
    color: red;
    margin-top: 1rem;
}

#admin h2 {
    margin-bottom: 2rem;
}

#pending-suggestions-container {
    width: 80%;
    max-width: 800px;
}

.suggestion-item {
    background-color: #fff;
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.suggestion-actions button {
    margin-left: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    border: none;
    cursor: pointer;
}

.approve-btn {
    background-color: #87B6C4;
    color: #fff;
}

.reject-btn {
    background-color: #F79F79;
    color: #fff;
}

.random-topic-actions {
    display: flex;
}

#timer-container {
    margin-top: 1rem;
    display: flex;
    align-items: center;
}

#timer-display {
    font-size: 1.5rem;
    margin-right: 1rem;
}


@media screen and (max-width: 1024px) {
    .nav-links {
        width: 60%;
    }
}

@media screen and (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    .nav-links {
        position: absolute;
        right: 0px;
        height: 92vh;
        top: 8vh;
        background-color: #fff;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 50%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
    }

    .nav-links li {
        opacity: 0;
    }

    .burger {
        display: block;
    }
}

.nav-active {
    transform: translateX(0%);
}

@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0px);
    }
}

.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.toggle .line2 {
    opacity: 0;
}

.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}