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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.card {
    background-color: var(--card);
}

body.dark {
    --bg-color: #000;
    --text-color: #ffffff;
}

body.light {
    --bg-color: #f1f1f1;
    --text-color: #111;
    --card: #ffffff;
}

.main-header {
    padding: 30px 20px 50px;
    background: #111;
    position: relative;
    border-bottom: 1px solid #222;
}

body.light .main-header {
    background: #f4f4f4;
    border-color: #ccc;
}

body.light .main-header h1 {
    color: black;
    font-weight: bold;
}


body.light .site-box {
    color: black;
    font-weight: bold;
    background-color: #eaeaea;
    border: 1px solid #ddd;
}

.main-header h1 {
    font-size: 36px;
    color: white;
    letter-spacing: 1.5px;
    text-align: center;
}

.main-header .author {
    position: absolute;
    bottom: 12px;
    left: 20px;
    font-size: 14px;
    color: #888;
}

body.light .main-header .author {
    color: #000;
}

.theme-toggle {
    position: absolute;
    bottom: 10px;
    right: 20px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: #00ffe5;
}

input:checked+.slider:before {
    transform: translateX(30px);
}

.league-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    background-color: #111;
    padding: 15px 10px;
    border-bottom: 1px solid #222;
}

body.light .league-bar span {
    background-color: #ccc;
    border: 1px solid #b3b3b3;
    color: #000;
}

body.light .league-bar span:hover {
    background-color: #ccc;
    color: #000;
    transform: scale(1.05);
}

body.light .league-bar {
    background-color: #eaeaea;
    border-bottom: 1px solid #ccc;
    color: #000;
}

.league-bar span {
    padding: 8px 16px;
    border: 2px solid transparent;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    color: #00ffe5;
    background-color: #222;
    transition: all 0.3s ease;
    border: 1px solid #333;
}

.league-bar span:hover,
.league-bar span.active {
    background-color: #00ffe5;
    color: #000;
}

/* CONTAINER */
.container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 40px 20px;
    max-width: 2000px;
    margin: 0 auto;
    width: 100%;
}

@media (max-width: 768px) {
    .container {
        grid-template-columns: repeat(1, 1fr);
    }
}

.box {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.box:hover {
    transform: scale(1.05);
}

body.light .box {
    background-color: #eaeaea;
    border: 1px solid #ddd;
    color: #000;
}

.link-title {
    font-size: 20px;
    color: #00ffe5;
    font-weight: 600;
}

body.light .link-title {
    color: #000;
}

.link-subtext {
    font-size: 14px;
    color: #bbb;
    margin-top: 8px;
}

body.light .link-subtext {
    color: #000;
}

.box.clicked::after {
    content: "Copied!";
    position: absolute;
    top: 10px;
    right: 10px;
    background: #00ffe5;
    color: #000;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 10px;
    animation: fadeOut 2s ease forwards;
}

@keyframes fadeOut {

    0%,
    80% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translateY(-10px);
    }
}

.hidden {
    display: none !important;
}

.sites-container {
    max-width: 1200px;
    margin: 20px auto;
}

.site-box {
      background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 16px 18px;
    border-radius: 6px;
    margin-bottom: 52px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: -40px;
}

.site-name {
    font-size: 16px;
    font-weight: 600;
}

.copy-btn {
    background: #333;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: .3s;
}

.copy-btn.copied {
    background: #dc3545;
    color: #fff;
    cursor: default;
}