body {
    font-family: 'Poppins', sans-serif;
    background-color: #0a0a0a;
    background-image: linear-gradient(to bottom, rgba(10, 10, 10, 0.95), rgba(10, 10, 10, 0.98)),
        url('https://scx1.b-cdn.net/csz/news/800/2017/theoreticala.jpg');
    background-attachment: fixed;
    color: #ffffff;
    margin: 0;
    padding: 20px 0 0;
    transition: all 0.3s ease;
    overflow-x: hidden !important;
    width: 100% !important;
    padding-right: 0 !important;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    min-height: 100vh;
    overflow-y: hidden;
}

html,
body {
    overflow-x: hidden !important;
    scrollbar-gutter: stable;
    width: 100% !important;
    max-width: 100vw !important;
    margin: 0;
    padding: 0;
}

html {
    overflow-y: scroll;
}

.search-container {
    text-align: center;
    margin: 15px 0 0;
    /* Changed from 10px to 20px */
    position: relative;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
    left: 0 !important;
    transform: none !important;
}

.search-container input {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 10px 25px;
    font-size: 16px;
    transition: all 0.3s ease;
    width: 80%;
    max-width: 800px;
    transform: translate3d(0, 0, 0);
    will-change: backdrop-filter;
}

.search-container input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: #ff5722;
    box-shadow: 0 0 20px rgba(255, 87, 34, 0.2);
}

.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px;
    padding-left: 50px;
    padding-right: 50px;
    gap: 50px;
    /* Increased from 30px to 40px */
    max-width: 100%;
    position: relative;
    left: 0 !important;
    will-change: contents;
}

.tile {
    background: rgba(30, 30, 30, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    width: 220px;
    height: 350px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    flex-grow: 0;
    flex-shrink: 0;
    margin-bottom: 0px;
    /* Added margin-bottom for vertical spacing */
    position: relative;
    transform: translate3d(0, 0, 0);
    will-change: transform, box-shadow;
}

@media (max-width: 600px) {
    .search-container input {
        width: 90%;
        padding: 10px 20px;
        margin-top: 10px;
    }

    .tile {
        margin: 0 auto;
        width: 220px;
    }
}

.tile:hover {
    transform: translate3d(0, -8px, 0);
    box-shadow: 0 12px 40px rgba(255, 87, 34, 0.2);
    border-color: rgba(255, 87, 34, 0.3);
}

.tile img {
    height: 250px;
    width: 220px;
    object-fit: cover;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.tile-info {
    padding: 15px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.7) 50%, transparent);
}

.tile-info h2 {
    font-size: 1.25em;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tile-info p {
    font-size: 0.9em;
    margin: 5px 0;
    opacity: 0.8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

body.light {
    background-color: #f5f5f5;
    background-image: linear-gradient(to bottom, rgba(245, 245, 245, 0.95), rgba(245, 245, 245, 0.98)),
        url('https://scx1.b-cdn.net/csz/news/800/2017/theoreticala.jpg');
    color: #333333;
}

body.light .tile {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

body.light .tile:hover {
    box-shadow: 0 12px 40px rgba(76, 175, 80, 0.2);
    border-color: rgba(76, 175, 80, 0.3);
}

body.light .search-container input {
    background: rgba(255, 255, 255, 0.9);
    color: #333333;
    border: 2px solid rgba(0, 0, 0, 0.1);
}

body.light .search-container input:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.2);
}

body.light .theme-switcher {
    background-color: #4CAF50;
}

body.light .theme-switcher:hover {
    background-color: #45a049;
}

.tag {
    display: inline-block;
    padding: 2px 8px;
    margin: 2px;
    background: rgba(255, 87, 34, 0.2);
    border-radius: 12px;
    font-size: 0.8em;
    transition: all 0.3s ease;
    max-width: calc(100% - 4px);
}

body.light .tag {
    background: rgba(76, 175, 80, 0.2);
}

.tag:hover {
    background: rgba(255, 87, 34, 0.4);
    transform: scale(1.05);
}

body.light .tag:hover {
    background: rgba(76, 175, 80, 0.4);
}

.description {
    font-size: 0.9em;
    color: #999;
    margin: 5px 0;
}

.pinned-emoji {
    position: absolute;
    top: 5px;
    left: 5px;
    width: 40px !important;
    height: 51px !important;
    z-index: 10;
    pointer-events: none;
}

.logo-link {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    align-items: center;
    z-index: 2;
    text-decoration: none;
}

.logo {
    width: 50px;
    height: auto;
    cursor: pointer;
    transition: transform 0.3s;
    border-radius: 10%;
}

.logo:hover {
    transform: scale(1.15);
}

.site-name {
    font-size: 1.5em;
    font-weight: 600;
    color: #ffffff;
    margin-left: 10px;
    white-space: nowrap;
    transition: opacity 0.3s ease;
    text-decoration: none;
}

body.light .site-name {
    color: #000000;
}

@media (max-width: 1024px) {
    .site-name {
        display: none;
    }
}

@keyframes flame {
    0% {
        box-shadow: 0 0 0 2px rgba(255, 69, 0, 0.7), 0 0 5px rgba(255, 165, 0, 0.7);
    }

    25% {
        box-shadow: 0 0 0 3px rgba(255, 69, 0, 0.8), 0 0 10px rgba(255, 165, 0, 0.8);
    }

    50% {
        box-shadow: 0 0 0 2px rgba(255, 69, 0, 0.7), 0 0 5px rgba(255, 165, 0, 0.7);
    }

    75% {
        box-shadow: 0 0 0 4px rgba(255, 69, 0, 0.9), 0 0 15px rgba(255, 165, 0, 0.9);
    }

    100% {
        box-shadow: 0 0 0 2px rgba(255, 69, 0, 0.7), 0 0 5px rgba(255, 165, 0, 0.7);
    }
}

.tile.pinned {
    position: relative;
    border-radius: 15px;
    animation: flame 1.2s infinite;
}

.action-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 1001;
    transition: none;
    padding: 0;
}

.theme-switcher:hover,
.discord-button:hover,
.telegram-button:hover {
    transform: scale(1.15);
    transition: all 0.3s;
}

.theme-switcher,
.discord-button,
.telegram-button {
    transform: translate3d(0, 0, 0);
    will-change: transform;
    transition: transform 0.3s ease;
    cursor: pointer;
    border: none;
}

.discord-button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #5865F2;
    transition: background-color 0.3s;
    cursor: pointer;
    border: none;
}

.discord-button svg {
    width: 24px;
    height: 24px;
    color: #ffffff;
}

.discord-button:hover {
    background-color: #4854e2;
}

.telegram-button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #0088cc;
    transition: background-color 0.3s;
    cursor: pointer;
    border: none;
    outline: none;
    box-shadow: none;
}

.telegram-button:hover {
    background-color: #0077b5;
}

.telegram-button i {
    font-size: 24px;
    color: #ffffff;
}

.theme-switcher {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #ff5722;
    transition: background-color 0.3s;
    cursor: pointer;
    border: none;
    outline: none;
}

.theme-switcher:hover {
    background-color: #e64a19;
}

.main-content {
    padding: 50px;
    transition: filter 0.3s ease;
}

.hamburger {
    position: relative;
    width: 2em;
    height: 2em;
    cursor: pointer;
    z-index: 1001;
}

.hamburger-line {
    position: absolute;
    right: 0;
    width: 100%;
    height: 0.3em;
    border-radius: 0.125em;
    background: #ffffff;
    transition: all 0.3s ease;
}

body.light .hamburger-line {
    background: #000;
}

.hamburger-line:nth-child(1) {
    top: 0.25em;
}

.hamburger-line:nth-child(2) {
    top: 0.9em;
}

.hamburger-line:nth-child(3) {
    top: 1.55em;
}

.hamburger.is-active .hamburger-line:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(-45deg);
}

.hamburger.is-active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.is-active .hamburger-line:nth-child(3) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.sidebar {
    position: fixed;
    top: 0;
    right: -250px;
    width: 250px;
    height: 100vh;
    background-color: #1a1a1a;
    color: white;
    transition: right 0.3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    padding-top: 60px;
    overflow-y: hidden;
    overflow-x: hidden;
    box-sizing: border-box;
    max-width: 100vw;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
    will-change: transform;
    scrollbar-width: thin;
    scrollbar-color: #ff5722 rgba(0, 0, 0, 0.1);
}

.sidebar::-webkit-scrollbar {
    width: 12px;
    /* Match your main scrollbar width */
}

body.light .sidebar {
    background-color: #f5f5f5;
    color: #333;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
}

.menu-list {
    margin: 0;
    padding: 20px;
    list-style: none;
}

.sidebar-item {
    display: block;
    text-decoration: none;
    color: #ffffff;
    padding: 12px 10px;
    margin: 10px 0;
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
    background: rgba(255, 87, 34, 0.1);
    backdrop-filter: blur(5px);
    font-size: 1.2em;
    font-weight: 600;
}

body.light .sidebar-item {
    color: #333;
    background: rgba(76, 175, 80, 0.15);
}

.sidebar-item:hover {
    background: rgba(255, 87, 34, 0.25);
    transform: translateY(-2px);
}

body.light .sidebar-item:hover {
    background: rgba(76, 175, 80, 0.25);
}

.sidebar.is-active {
    right: 0;
}

.sidebar-item::before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 5px;
    opacity: 0.8;
    font-size: 1.1em;
}

.sidebar-item[data-popup="tos"]::before {
    content: "\f02d";
}

.sidebar-item[data-popup="dmca"]::before {
    content: "\f075";
}

.sidebar-item[data-popup="kontakt"]::before {
    content: "\f0e0";
}

body.sidebar-open {
    position: fixed;
    width: 100% !important;
    overflow-y: scroll;
    overflow-x: hidden !important;
    padding-right: 0 !important;
}

body.sidebar-open .container {
    filter: blur(5px);
    transition: filter 0.3s ease;
}

body.sidebar-open .tile {
    pointer-events: none;
    opacity: 0.5;
}

body.sidebar-open #searchInput {
    filter: blur(5px);
    transition: filter 0.3s ease;
    pointer-events: none;
}

body.sidebar-open .custom-button {
    filter: blur(5px);
    pointer-events: none;
    transition: filter 0.3s ease;
}

body.sidebar-open .announcement-box {
    filter: blur(5px);
    transition: filter 0.3s ease;
    pointer-events: none;
}

@media screen and (max-width: 768px) {

    .discord-button,
    .telegram-button,
    .theme-switcher {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    body.sidebar-open .discord-button {
        display: flex;
    }

    body.sidebar-open .telegram-button {
        display: flex;
    }

    body.sidebar-open .theme-switcher {
        display: flex;
    }

    .sidebar {
        width: 100%;
        right: -100%;
        padding-right: 0;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        visibility: hidden;
    }

    .sidebar.is-active {
        transform: translateX(0);
        right: 0;
        visibility: visible;
    }

    .menu-list {
        padding: 20px 30px;
    }

    .sidebar-item {
        padding: 16px 20px;
        font-size: 1.2em;
        margin: 15px auto;
        width: 85%;
        max-width: 300px;
    }

    .sidebar-item::before {
        font-size: 1.2em;
    }

    .menu-list {
        padding-bottom: 100px;
    }

    .hamburger {
        font-size: 1.3rem;
    }

    .main-content {
        display: none;
    }

    .action-buttons {
        right: 15px;
    }

    body.sidebar-open .action-buttons {
        right: 15px;
    }

    .logo-link {
        left: 15px;
    }

    .search-container {
        display: flex;
        flex-direction: column;
        margin-top: 70px;
        /* Space for the top buttons */
    }

    .custom-button {
        position: fixed;
        top: 10px;
        /* This is the current spacing from top */
        left: 50%;
        transform: translateX(-50%);
        margin: 0;
        z-index: 999;
        width: auto;
        font-size: 1em;
        padding: 8px 16px;
        order: inherit;
        /* Remove previous order setting */
    }

    .search-container {
        padding: 0 10px;
        margin-top: 70px;
        /* Even more space on mobile */
    }

    .container {
        padding: 10px;
        width: 100%;
        box-sizing: border-box;
        margin: 0;
    }

    .announcement-box {
        margin: 15px 10px;
        width: auto;
        box-sizing: border-box;
    }
}

@media screen and (max-width: 380px) {
    .sidebar-item {
        font-size: 1.15em;
        padding: 10px 8px;
        width: 90%;
    }

    .menu-list {
        padding: 20px 15px;
    }
}

.custom-button {
    display: inline-block;
    justify-content: center;
    align-items: center;
    padding: 10px 20px;
    background-color: #ff5722;
    color: #ffffff;
    font-size: 1.2em;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
    margin-left: 10px;
    margin: 0 0;
}

@media screen and (max-width: 1337px) {
    .custom-button {
        display: block;
        margin: 10px auto;
        width: auto;
        max-width: 200px;
    }
}

.custom-button:hover {
    background-color: #e64a19;
    transform: scale(1.05);
}

.custom-button:focus {
    outline: 3px solid #ffffff;
    outline-offset: 2px;
}

body.light .custom-button {
    background-color: #4CAF50;
}

body.light .custom-button:hover {
    background-color: #388E3C;
}

.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease-out;
}

.popup-overlay.visible {
    opacity: 1;
}

.popup-content {
    position: relative;
    background: rgba(30, 30, 30, 0.95);
    color: #ffffff;
    width: 90%;
    max-width: 600px;
    margin: 7vh auto;
    padding: 40px 25px 25px;
    border-radius: 20px;
    box-shadow: 0 0 30px rgba(255, 87, 34, 0.2);
    animation: popupFadeIn 0.3s ease-out forwards;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: translate3d(0, 0, 0);
    will-change: transform, opacity;
}

body.light .popup-content {
    background: rgba(255, 255, 255, 0.95);
    color: #333333;
    box-shadow: 0 0 30px rgba(76, 175, 80, 0.2);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 28px;
    background: none;
    border: none;
    color: #ff5722;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

body.light .popup-close {
    color: #4CAF50;
}

.popup-close:hover {
    background-color: #ff5722;
    color: white;
    transform: rotate(90deg);
}

body.light .popup-close:hover {
    background-color: #4CAF50;
    color: white;
}

#popupTitle {
    margin-top: 0;
    margin-bottom: 25px;
    color: #ff5722;
    font-size: 1.8em;
    font-weight: 600;
    text-align: center;
}

body.light #popupTitle {
    color: #4CAF50;
}

#popupText {
    line-height: 1.8;
    font-size: 1.1em;
}

#popupText ul,
#popupText ol {
    padding-left: 25px;
    margin: 15px 0;
}

#popupText li {
    margin: 10px 0;
    line-height: 1.6;
}

#popupText a {
    color: #ff5722;
    text-decoration: none;
    transition: all 0.3s ease;
}

body.light #popupText a {
    color: #4CAF50;
}

#popupText a:hover {
    text-decoration: underline;
    opacity: 0.8;
}

@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95)
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1)
    }
}

@keyframes popupFadeOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    to {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
}

.popup-content {
    /* ... existing styles ... */
    animation: popupFadeIn 0.3s ease-out forwards;
}

.popup-content.closing {
    animation: popupFadeOut 0.3s ease-out forwards;
}

/* Update overlay animations */
.popup-overlay {
    /* ... existing styles ... */
    opacity: 0;
    transition: opacity 0.3s ease-out;
}

.popup-overlay.visible {
    opacity: 1;
}

/* Update tile info styling for dark theme */
.tile-info {
    padding: 15px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.7) 50%, transparent);
}

/* Remove gradient in light theme */
body.light .tile-info {
    background: none;
    /* Remove gradient completely */
    padding: 15px;
}

/* Ensure text is visible in light theme */
body.light .tile-info h2 {
    color: #333333;
}

body.light .tile-info p {
    color: #555555;
}

body.light .description {
    color: #666666;
}

/* Ensure tags container doesn't overflow */
.tags-container {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Custom Scrollbar Styles */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #ff5722;
    border-radius: 10px;
    border: 3px solid rgba(0, 0, 0, 0.2);
}

::-webkit-scrollbar-thumb:hover {
    background: #e64a19;
}

/* Light theme scrollbar */
body.light::-webkit-scrollbar-thumb {
    background: #4CAF50 !important;
    border: 3px solid rgba(255, 255, 255, 0.2);
}

body.light::-webkit-scrollbar-thumb:hover {
    background: #388E3C !important;
}

body.light::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: #ff5722 rgba(0, 0, 0, 0.1);
}

body.light * {
    scrollbar-color: #4CAF50 rgba(0, 0, 0, 0.05) !important;
}

/* Ensure content doesn't shift when scrollbar is hidden */
body:before {
    display: none;
}

.back-to-top {
    position: fixed;
    bottom: 15px;
    left: 15px;
    width: 40px;
    height: 40px;
    background-color: #ff5722;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1001;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    font-size: 20px;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: #e64a19;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

body.light .back-to-top {
    background-color: #4CAF50;
}

body.light .back-to-top:hover {
    background-color: #388E3C;
}

/* Add smooth scrolling to the entire page */
html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Add media query for mobile devices */
@media screen and (max-width: 768px) {
    .back-to-top {
        top: 15px;
        left: 15px;
    }
}

/* Update popup styles for mobile */
@media screen and (max-width: 768px) {
    .popup-content {
        width: 85%;
        margin: 10vh auto;
        padding: 35px 20px 20px;
    }

    #popupTitle {
        font-size: 1.5em;
        margin-bottom: 20px;
    }

    #popupText {
        font-size: 0.95em;
        line-height: 1.6;
    }

    #popupText ul,
    #popupText ol {
        padding-left: 20px;
        margin: 12px 0;
    }

    #popupText li {
        margin: 8px 0;
        line-height: 1.4;
    }

    .popup-close {
        top: 5px;
        right: 5px;
        font-size: 24px;
        width: 35px;
        height: 35px;
    }
}

/* Even smaller screens */
@media screen and (max-width: 380px) {
    .popup-content {
        width: 90%;
        padding: 20px 15px;
        margin: 8vh auto;
    }

    #popupTitle {
        font-size: 1.3em;
    }

    #popupText {
        font-size: 0.9em;
    }
}

.age-verification-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    backdrop-filter: blur(8px);
    margin: 0;
    padding: 0;
    transform: none;
    overflow: hidden;
    touch-action: none;
    -webkit-overflow-scrolling: none;
}

.age-verification-overlay.visible {
    display: flex;
    pointer-events: auto !important;
}

.age-verification-popup {
    background: rgba(30, 30, 30, 0.95);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    max-width: 90%;
    width: 400px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 30px rgba(255, 87, 34, 0.2);
    position: relative;
    transform: translateY(-10%);
    margin: 0 auto;
    pointer-events: auto !important;
}

body.light .age-verification-popup {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 0 30px rgba(76, 175, 80, 0.2);
}

.age-verification-popup h2 {
    color: #ff5722;
    margin-bottom: 20px;
    font-size: 1.8em;
}

body.light .age-verification-popup h2 {
    color: #4CAF50;
}

.age-verification-popup p {
    margin-bottom: 25px;
    line-height: 1.6;
    font-size: 1.1em;
}

.age-verification-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.age-verification-buttons button {
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1em;
    transition: all 0.3s ease;
    pointer-events: auto !important;
}

.age-verification-buttons button:first-child {
    background: #ff5722;
    color: white;
}

body.light .age-verification-buttons button:first-child {
    background: #4CAF50;
}

.age-verification-buttons button:last-child {
    background: #333;
    color: white;
}

body.light .age-verification-buttons button:last-child {
    background: #666;
}

.age-verification-buttons button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.age-blocked {
    pointer-events: none;
    filter: blur(10px);
    user-select: none;
}

/* Add these to prevent interaction with elements behind the overlay */
.age-verification-overlay.visible~* {
    pointer-events: none !important;
}

.tile-popup-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 15px;
}

.tile-popup-image {
    width: 100%;
    position: relative;
    padding-bottom: 113.64%;
    /* This maintains the 220:250 aspect ratio (250/220 * 100) */
    overflow: hidden;
    border-radius: 10px;
}

.tile-popup-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tile-popup-info {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tile-popup-info h2 {
    margin: 0;
    color: #ff5722;
    font-size: 2em;
}

body.light .tile-popup-info h2 {
    color: #4CAF50;
}

.tile-popup-info p {
    margin: 0;
    line-height: 1.4;
    font-size: 1.2em;
}

.tile-popup-button {
    flex: 1;
    max-width: 230px;
    padding: 12px 24px;
    background-color: #ff5722;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1.2em;
    transition: all 0.3s ease;
}

body.light .tile-popup-button {
    background-color: #4CAF50;
}

.tile-popup-button:hover {
    transform: translateY(-2px);
    background-color: #e64a19;
}

body.light .tile-popup-button:hover {
    background-color: #388E3C;
}

@media (max-width: 768px) {
    .tile-popup-content {
        flex-direction: column;
    }

    .tile-popup-image {
        max-height: 300px;
    }
}

/* Limit the maximum width of the popup content to maintain reasonable image size */
.popup-content {
    max-width: 500px;
    width: 90%;
    margin: 15vh auto;
}

/* Update mobile styles */
@media (max-width: 768px) {
    .popup-content {
        width: 85%;
        margin: 10vh auto;
    }

    .tile-popup-image {
        padding-bottom: 113.64%;
        /* Maintain the same aspect ratio on mobile */
    }
}

#popupTileTags .tag {
    font-size: 1.1em;
    padding: 4px 12px;
}

.tile-popup-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 0;
}

.tile-popup-button {
    flex: 1;
    max-width: 230px;
    padding: 12px 24px;
    background-color: #ff5722;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1.2em;
    transition: all 0.3s ease;
}

.tile-popup-button.secondary {
    background-color: #424242;
}

body.light .tile-popup-button.secondary {
    background-color: #757575;
}

.tile-popup-button:hover {
    transform: translateY(-2px);
}

.tile-popup-button:hover {
    background-color: #e64a19;
}

.tile-popup-button.secondary:hover {
    background-color: #616161;
}

body.light .tile-popup-button:hover {
    background-color: #388E3C;
}

body.light .tile-popup-button.secondary:hover {
    background-color: #9e9e9e;
}

@media (max-width: 480px) {
    .tile-popup-buttons {
        flex-direction: column;
        align-items: center;
    }

    .tile-popup-button {
        width: 100%;
        max-width: 280px;
    }
}

.tile-popup-button.premium {
    background-color: #d4af37;
    /* More traditional gold color */
    color: #000000;
}

body.light .tile-popup-button.premium {
    background-color: #d4af37;
    color: #000000;
}

.tile-popup-button.premium:hover {
    background-color: #f4c430;
    /* Warmer gold on hover */
}

body.light .tile-popup-button.premium:hover {
    background-color: #f4c430;
}

.account-container {
    max-width: 800px;
    margin: 100px auto;
    padding: 20px;
}

.account-box {
    background: rgba(30, 30, 30, 0.95);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 0 30px rgba(255, 87, 34, 0.2);
}

.discord-login-btn {
    background: #5865F2;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1.2em;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px auto;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.user-info img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.premium-status {
    margin: 20px 0;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
}

.premium-badge.active {
    color: #4CAF50;
}

.premium-purchase {
    margin-top: 30px;
}

.premium-purchase ul {
    margin: 20px 0;
    padding-left: 20px;
}

.premium-buy-btn {
    background: #d4af37;
    color: black;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1.2em;
    cursor: pointer;
    margin: 20px 0;
}

.logout-btn {
    background: #424242;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    margin-top: 20px;
}

/* Restore the dollar sign icon */
.sidebar-item[data-icon="dollar"]::before {
    content: '$';
    margin-right: 10px;
}

.tile.ad-tile .tile-info p.description {
    white-space: normal;
    /* Allow description to wrap */
    line-height: 1.4;
    /* Adjust line height for better readability */
    margin-bottom: 0;
    /* Remove bottom margin to use space */
}

.tile.ad-tile .tile-info p.description br {
    display: block;
    /* Ensure <br> tags work */
}

.tile.ad-tile .tile-info p.description:empty::before {
    content: '\00a0';
    /* Add a non-breaking space if description is empty */
}

.tile.ad-tile .tile-info p.description {
    margin-bottom: 0;
    /* Remove bottom margin */
}

.tile.ad-tile .tile-info p.description+p {
    display: none;
    /* Hide the tags container */
}

.tile.ad-tile {
    border: 1px solid #ffc107;
    /* Yellow/orange border */
    box-shadow: 0 0 5px rgba(255, 193, 7, 0.5);
    /* Optional: Add a subtle shadow */
}

body.light .tile.ad-tile {
    border: 1px solid #ffc107;
    /* Yellow/orange border for light mode */
    box-shadow: 0 0 5px rgba(255, 193, 7, 0.5);
    /* Optional: Add a subtle shadow for light mode */
}

.premium-button {
    border: 1px solid #ffc107;
    box-shadow: 0 0 5px rgba(255, 193, 7, 0.5);
    padding: 10px 16px;
    border-radius: 20px;
    text-decoration: none;
    color: #ffffff;
    font-size: 1em;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-weight: bold;
}

body.light .premium-button {
    border: 1px solid #ffc107;
    box-shadow: 0 0 5px rgba(255, 193, 7, 0.5);
    color: #333333;
}

.premium-button:hover {
    background-color: rgba(255, 193, 7, 0.1);
}

body.light .premium-button:hover {
    background-color: rgba(255, 193, 7, 0.2);
}

@media (max-width: 768px) {
    .action-buttons>*:not(.hamburger) {
        display: none;
    }

    body.sidebar-open .action-buttons>*:not(.hamburger) {
        display: flex;
    }
}

.announcement-strip {
    background-color: #ff4444;
    color: white;
    text-align: center;
    padding: 10px;
    font-weight: bold;
    width: 100%;
}

.dark .announcement-strip {
    background-color: #ff2222;
}

.announcement-box {
    background-color: rgba(255, 68, 68, 0.9);
    color: white;
    text-align: center;
    padding: 15px 25px;
    font-weight: bold;
    width: fit-content;
    max-width: 80%;
    margin: 30px auto;
    /* Increased margin for better spacing */
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(255, 68, 68, 0.3);
    font-size: 1.2em;
    /* Increased font size */
    line-height: 1.4;
    /* Better line height for readability */
}

.dark .announcement-box {
    background-color: rgba(255, 34, 34, 0.9);
}

@media screen and (max-width: 768px) {
    .announcement-box {
        font-size: 1.1em;
        padding: 12px 20px;
        margin: 20px auto;
        width: 85%;
    }
}

/* Update Premium button style */
.premium-button {
    background-color: #000000;
    border: 1px solid #ffc107;
    box-shadow: 0 0 5px rgba(255, 193, 7, 0.5);
    padding: 10px 16px;
    border-radius: 20px;
    text-decoration: none;
    color: #ffffff;
    font-size: 1em;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-weight: bold;
}

body.light .premium-button {
    background-color: #000000;
    color: #ffffff;
}

/* Make the "Bezpośredni link" button match premium button style */
.tile-popup-button.premium {
    background-color: #000000;
    border: 1px solid #ffc107;
    box-shadow: 0 0 5px rgba(255, 193, 7, 0.5);
    color: #ffffff;
}

body.light .tile-popup-button.premium {
    background-color: #000000;
    color: #ffffff;
}

.tile-popup-button.premium:hover,
.premium-button:hover {
    background-color: #000000;
    border-color: #ffca28;
    box-shadow: 0 0 10px rgba(255, 193, 7, 0.7);
}
/* Skeleton Loader Styles */
.tile.skeleton {
    background: rgba(30, 30, 30, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    width: 220px;
    height: 350px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    cursor: default;
}

.tile.skeleton:hover {
    transform: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.1);
}

.skeleton .skeleton-image {
    height: 250px;
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
}

.skeleton .skeleton-info {
    padding: 15px;
}

.skeleton .skeleton-text {
    height: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    margin-bottom: 15px;
}

.skeleton .skeleton-text:last-child {
    margin-bottom: 0;
}

.skeleton .skeleton-text.title {
    width: 80%;
    height: 24px;
}

.skeleton .skeleton-text.tags {
    width: 60%;
}

.shimmer-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    animation: shimmer 2s infinite linear;
    background: linear-gradient(to right, transparent 20%, rgba(255, 255, 255, 0.08) 50%, transparent 80%);
    background-size: 1000px 100%;
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

body.light .tile.skeleton {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

body.light .tile.skeleton:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.1);
}

body.light .skeleton .skeleton-image,
body.light .skeleton .skeleton-text {
    background: rgba(0, 0, 0, 0.05);
}

body.light .shimmer-wrapper {
    background: linear-gradient(to right, transparent 20%, rgba(0, 0, 0, 0.03) 50%, transparent 80%);
    background-size: 1000px 100%;
}