:root {
    --main-bg-color: #000000;
    --secondary-bg-color: #070707;
    --accent-color: #E526CB;
    --secondary-accent-color: #24f2e1;
    --text-color: #ffffff;
}

* {
    -ms-overflow-style: none;
}

*::-webkit-scrollbar {
    display: none;
}

body {
    background-color: var(--main-bg-color);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    height: 100vh;
    margin: 0;
    overflow-x: hidden;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    overflow: auto;
}

.navbar {
    background-color: var(--secondary-bg-color);
    padding: 20px 30px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    text-align: center;
    border-bottom: 2px solid var(--accent-color);
    box-shadow: 0 0 20px var(--accent-color);
    position: relative;
    z-index: 1000;
}

.navbar div {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-header {
    font-size: 1.5rem;
    color: white;
    font-weight: bold;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.nav-header:hover {
    transform: translateY(-2px);
    text-shadow: 0 0 8px var(--accent-color);
}

#logo {
    height: 60px;
    width: auto;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.nav-item {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    padding: 12px 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px;
    font-weight: bold;
    position: relative;
    overflow: hidden;
}

.nav-item:hover {
    background-color: rgba(229, 38, 203, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(229, 38, 203, 0.3);
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-item:hover::after {
    width: 80%;
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: center;
        padding: 15px;
    }

    .navbar div {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        width: 100%;
        padding: 10px 0;
    }

    .nav-header {
        font-size: 1.3rem;
        margin-bottom: 5px;
    }

    .nav-item {
        font-size: 1rem;
        padding: 10px 15px;
        width: 80%;
        text-align: center;
        margin: 2px 0;
    }

    .nav-item:hover {
        transform: translateY(-1px);
    }

    .nav-item::after {
        bottom: -2px;
    }

    .footer-items {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
}
@media (max-width: 480px) {
    .nav-header {
        font-size: 1.1rem;
    }

    #logo {
        height: 45px;
    }

    .nav-item {
        font-size: 0.95rem;
        padding: 8px 12px;
        width: 90%;
    }

    .nav-item:hover {
        transform: none;
        box-shadow: 0 2px 8px rgba(229, 38, 203, 0.2);
    }

    .footer-items {
        gap: 10px;
    }
}

.nav-item:active {
    transform: scale(0.95);
    background: rgba(229, 38, 203, 0.15);
    transition: all 0.05s cubic-bezier(0.2, 0, 0, 1);
    cursor: default;
}
.nav-header:active {
    transform: scale(0.95);
    transition: all 0.05s cubic-bezier(0.2, 0, 0, 1);
    cursor: default;
}

footer {
    background-color: var(--secondary-bg-color);
    background-image: linear-gradient(to top, rgba(7, 7, 7, 0.9), rgba(0, 0, 0, 0.95));
    text-align: center;
    font-size: 1rem;
    width: 100vw;
    position: relative;
    margin-top: auto;
    padding: 15px 0 10px;
}

.footer-items {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    padding: 0 20px;
}

.footer-items a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 10px;
    border-radius: 5px;
}

.footer-items a:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
    text-shadow: 0 0 8px var(--accent-color);
}

footer p {
    margin-top: 15px;
    font-size: 0.9rem;
    opacity: 0.8;
}

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -1;
    top: 0;
    left: 0;
    min-height: 100vh;
}

.wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    padding: 40px 20px;
    margin: 0;
    background: radial-gradient(circle at center, rgba(229, 38, 203, 0.05) 0%, rgba(0, 0, 0, 0) 70%);
}

.main-content {
    padding: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    border: 3px solid var(--accent-color);
    box-shadow: 0 0 20px var(--accent-color);
    z-index: 100;
    position: relative;
    color: var(--text-color);
    background-color: var(--secondary-bg-color);
    background-image: linear-gradient(to bottom, rgba(7, 7, 7, 0.9), rgba(0, 0, 0, 0.95));
    text-align: center;
    max-width: 50vw;
    word-wrap: normal;
    overflow-wrap: normal;
    border-radius: 10px;
    animation: pulse 4s infinite ease-in-out;
}

@keyframes pulse {
    0% { box-shadow: 0 0 15px var(--accent-color); }
    50% { box-shadow: 0 0 25px var(--accent-color), 0 0 40px rgba(229, 38, 203, 0.4); }
    100% { box-shadow: 0 0 15px var(--accent-color); }
}

:is(nav, footer, .wrapper) :is(p, h1, a, td) {
    text-shadow: 0 0 5px #ffffff, 0 0 15px var(--accent-color);
    color: var(--text-color);
}


.main-content h1 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
    line-height: 1.4;
}

.main-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.main-content a {
    color: var(--accent-color);
    text-shadow: 0 0 8px var(--accent-color), 0 0 15px var(--accent-color);
    font-weight: bold;
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
    padding: 0 3px;
}

.main-content a:hover {
    color: #ffffff;
    text-shadow: 0 0 8px var(--accent-color), 0 0 15px var(--accent-color);
}

.main-content a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--accent-color);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease;
}

.main-content a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

#requestcounter, #sizecounter {
    color: var(--secondary-accent-color);
    font-weight: bold;
    text-shadow: 0 0 10px var(--secondary-accent-color);
}

@media (max-width: 768px) {
    .main-content {
        padding: 25px;
        max-width: 90%;
        width: auto;
    }
    .wrapper {
        padding: 30px 20px;
    }
    .main-content h1 {
        font-size: 1.7rem;
    }
    .main-content p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 20px;
        max-width: 95%;
    }
    .wrapper {
        padding: 20px 10px;
    }
    .main-content h1 {
        font-size: 1.5rem;
    }
}

.linkies-content {
    align-self: flex-start;
    text-align: center;
}

.linkies-table {
    width: 80vw;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: var(--secondary-bg-color);
    color: var(--text-color);
    text-align: left;
    box-shadow: 0 0 10px var(--accent-color);
    margin-left: 50%;
    transform: translateX(-50%);
}

.linkies-table th,
.linkies-table td {
    padding: 12px;
    border: 1px solid var(--accent-color);
}

.linkies-table td {
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-all;
}

.linkies-table th {
    background-color: var(--accent-color);
    color: #141414;
    font-weight: bold;
}

.linkies-table tr {
    box-shadow: 0 0 10px var(--accent-color);
}

.linkies-table a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: bold;
    overflow-x: auto;
}

.linkies-table a:hover {
    text-decoration: underline;
}

.linkies-table tfoot {
    border: none;
}

.linkies-table tfoot td {
    border: none;
    padding-top: 1rem;
}

.pagination-controls {
    text-align: center;
    font-size: 1.5rem;
    margin-top: 1rem;
    margin-bottom: 2rem;
    text-shadow: 0 0 5px #ffffff, 0 0 15px var(--accent-color);
}

.pagination-controls a {
    cursor: pointer;
    margin: 0 0.5rem;
}

@media (max-width: 768px) {
    .linkies-table {
        width: 100vw;
    }

    .pagination-controls {
        font-size: 1.2rem;
    }
    
    th:first-child, td:first-child {
        display: none;
    }
}

.redirect {
    text-align: center;
}

.credits-name {
    color: var(--secondary-accent-color);
    text-shadow: 0 0 10px var(--secondary-accent-color);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.notification-box {
    position: fixed;
    bottom: 30px;
    right: 20px;
    max-width: 400px;
    background-color: var(--secondary-bg-color);
    background-image: linear-gradient(to bottom, rgba(7, 7, 7, 0.9), rgba(0, 0, 0, 0.95));
    z-index: 100;
    padding: 20px;
    border-radius: 12px;
    border: 3px solid var(--accent-color);
    box-shadow: 0 0 20px var(--accent-color);
    animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1), pulse 4s infinite ease-in-out;
    overflow: hidden;
}

.notification-box.closing {
    animation: fadeOut 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.notification-box p {
    color: var(--text-color);
    margin: 0 0 12px 0;
    padding-right: 24px;
    font-weight: bold;
    line-height: 1.5;
    text-shadow: 0 0 5px #ffffff, 0 0 15px var(--accent-color);
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.notification-box .close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    border: 2px solid var(--accent-color);
    background: var(--secondary-bg-color);
    cursor: pointer;
    padding: 0;
    color: var(--accent-color);
    font-size: 18px;
    line-height: 20px;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 0 0 8px var(--accent-color);
    box-shadow: 0 0 10px var(--accent-color);
}

.notification-box .close-btn:hover {
    background: var(--accent-color);
    color: var(--secondary-bg-color);
    transform: scale(1.1);
    box-shadow: 0 0 15px var(--accent-color), 0 0 30px var(--accent-color);
}

.notification-box .close-btn:active {
    transform: scale(0.95);
}

.notification-box div.progressbar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    transition: width 10s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--secondary-accent-color);
    border-radius: 0;
    box-shadow: 0 0 10px var(--secondary-accent-color);
    opacity: 0.8;
    max-width: 100%;
    overflow: hidden;
}

.notification-box:hover div.progressbar {
    opacity: 1;
    box-shadow: 0 0 15px var(--secondary-accent-color);
}

@keyframes glitch {
  0% { transform: translate(0); opacity: 1; }
  20% { transform: translate(-1px, 1px); opacity: 0.8; }
  40% { transform: translate(2px, -1px); opacity: 0.6; }
  60% { transform: translate(-1px, 2px); opacity: 0.8; }
  80% { transform: translate(1px, -2px); opacity: 0.6; }
  100% { transform: translate(0); opacity: 1; }
}
  
.glitch-letter {
  display: inline;
  animation: glitch 300ms ease-in-out;
  color: #f00;
  font-weight: bold;
  pointer-events: none;
}