* {
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f1f1f1;
    margin: 0;
    padding: 0;
    cursor: url('/public/images/cursor.png'), auto;
}

.sort-buttons {
    text-align: center;
    margin-bottom: 20px;
}

.sort-buttons button {
    background-color: #ff66b2;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    margin: 5px;
    cursor: pointer;
}

.sort-buttons button:hover {
    background-color: #ff3385;
}

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

body.preloader-visible {
    overflow: hidden;
}

#loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#loader-bar {
    width: 100px;
    height: 20px;
    background-color: #ff66b2;
    animation: moveLeftToRight 0.8s linear infinite alternate;
}

@keyframes moveLeftToRight {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

#preloader p {
    color: #ff66b2;
    font-size: 18px;
    margin-top: 10px;
    font-weight: bold;
}

#preloader.hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

header {
    background-color: #ff66b2;
    color: white;
    text-align: center;
    padding: 10px 0;
}

.announcement {
    background-color: #ff66b2;
    color: white;
    text-align: center;
    margin-bottom: 20px;
    padding: 5px;
}

.announcement p {
    font-size: 1.8em;
    margin: 0;
}

.announcement.light-mode {
    background-color: #ff66b2;
    color: white;
}

.announcement.dark-mode {
    background-color: #222;
    color: #ff66b2;
}

header h1 {
    font-size: 24px;
    margin: 0;
}

.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0;
}

.cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 0 20px;
}

.card {
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    padding: 20px;
    flex-basis: calc(33.33% - (20px * 2 / 3)) !important;
    border: 2px solid #ff66b2;
}

.card h2 {
    color: #ff66b2;
}

.card p {
    margin: 0;
}

.card a {
    display: block;
    text-align: center;
    background-color: #ff66b2;
    color: white;
    padding: 10px;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 10px;
}

body.light-mode {
    background-color: #f1f1f1;
    color: black;
    transition: background-color 0.3s, color 0.3s;
}

header.light-mode {
    background-color: #ff66b2;
    color: white;
}

.card.light-mode {
    background-color: white;
    color: black;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

body.dark-mode {
    background-color: #121212;
    color: #fff;
    transition: background-color 0.3s, color 0.3s;
}

header.dark-mode {
    background-color: #222;
    color: #ff66b2;
}

.card.dark-mode {
    background-color: #222;
    color: white;
    box-shadow: 0 0 10px rgba(255, 102, 178, 0.2);
}

.card h2 {
    color: #ff66b2;
}

.card p {
    margin: 0;
}

.card a {
    display: block;
    text-align: center;
    background-color: #ff66b2;
    color: white;
    padding: 10px;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 10px;
}

#dark-mode-toggle {
    background-color: #333;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1;
}

#dark-mode-toggle:hover {
    background-color: #444;
}

@media screen and (max-width: 768px) {
    .cards {
        flex-direction: column;
    }

    .card {
        flex-basis: 100%;
        margin-bottom: 20px;
    }
}

nav {
    background-color: #ff66b2;
    padding: 10px 0;
}

ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    text-align: center;
}

li {
    display: inline;
    margin: 0 10px;
}

a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    transition: color 0.3s;
}

a:hover {
    color: #ff3385;
}

/* Section styles */
section {
    padding: 20px;
    background-color: white;
    margin: 20px 0;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Dark mode styles */
body.dark-mode nav {
    background-color: #222;
}

body.dark-mode section {
    background-color: #222;
    color: white;
    box-shadow: 0 0 10px rgba(255, 102, 178, 0.2);
}