:root {
    --background: #36393f;
    --container-bg: #2f3136;
    --primary: #5865F2;
    --text: #ffffff;
    --secondary-text: #b9bbbe;
    --button-hover: #4752c4;
    --error-bg: #202225;
    --error-border: #ff4f4f;
}

body {
    font-family: 'Arial', sans-serif;
    text-align: center;
    background: var(--background);
    color: var(--text);
    margin: 0;
    padding: 0;
}
* {
  box-sizing: border-box;
}

.navbar {
  height: 60px;
  line-height: 60px;
  overflow: hidden;
}

/* Navbar */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #23272A;
    padding: 10px 20px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    white-space: nowrap;
}


.nav-left img {
    max-height: 40px;
    width: auto;
    object-fit: contain;
}

.nav-right {
    display: flex;
    align-items: center;
    white-space: nowrap;
}


.nav-right a {
    color: white;
    text-decoration: none;
    margin-left: 15px;
    font-size: 18px;
    padding: 8px 12px;
    border-radius: 5px;
    transition: 0.3s;
}

.nav-right a:hover {
    background: #5865F2;
}

.burger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.burger-menu div {
    width: 30px;
    height: 4px;
    background-color: white;
    margin: 5px;
    border-radius: 2px;
    transition: 0.3s;
}

.mobile-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 10px;
    background: var(--container-bg);
    border-radius: 5px;
    overflow: hidden;
    min-width: 150px;
    text-align: center;
    z-index: 999;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

.mobile-nav a {
    padding: 12px;
    color: white;
    text-decoration: none;
    font-size: 16px;
    border-bottom: 1px solid #40444b;
}

.mobile-nav a:last-child {
    border-bottom: none;
}

.mobile-nav a:hover {
    background: #5865F2;
}

/* Main Container */
.container {
    max-width: 600px;
    margin: 120px auto 50px;
    background: var(--container-bg);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
}

h1 {
    font-size: 24px;
    color: var(--text);
}

p {
    font-size: 18px;
    color: var(--secondary-text);
}

input, button {
    width: 90%;
    padding: 12px;
    margin: 10px 0;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    transition: 0.2s;
}

input {
    background: #40444b;
    color: var(--text);
    outline: none;
}

button {
    background: var(--primary);
    color: white;
    cursor: pointer;
    font-weight: bold;
}

button:hover {
    background: var(--button-hover);
}

/* Countdown Timer */
.countdown {
    font-size: 22px;
    font-weight: bold;
    color: var(--primary);
}

.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--container-bg);
    color: white;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-size: 1.2em;
    min-width: 200px;
    z-index: 1000;
    display: none;
    transition: opacity 0.3s ease-in-out;
}

#copyPopup {
    background: var(--container-bg);
    border: 2px solid transparent;
    animation: fadeIn 0.3s ease-in-out;
}

.error-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--error-bg);
    color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
    text-align: center;
    width: 300px;
    display: none;
    border: 2px solid var(--error-border);
    animation: fadeIn 0.3s ease-in-out;
}

.error-popup p {
    margin: 0;
    padding-bottom: 10px;
    font-size: 16px;
}

.error-popup button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px;
    width: 100%;
    cursor: pointer;
    border-radius: 5px;
}

.error-popup button:hover {
    background: var(--button-hover);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -55%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.hidden {
    display: none;
    opacity: 0;
}

@media (max-width: 768px) {
    .nav-right {
        display: none;
    }

    .burger-menu {
        display: flex;
    }

    .mobile-nav.show {
        display: flex;
    }
}

@media (max-width: 600px) {
    .container {
        width: 90%;
    }
}
