/* --------------------------- BODY -------------------------------- */
body {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: 100vh;
    margin: 0;
    font-size: 100px;
    background: linear-gradient(120deg, #f9f9f9, #e0e0e0);
    font-family: 'Baloo 2', sans-serif;
    transition: background 0.3s ease, color 0.3s ease;
}
body.dark-mode {
    background: linear-gradient(120deg, #2b2b2b, #1a1a1a);
    color: white;
}

/* ---------------------------- HEADER --------------------------------- */
#header {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 20px;
    font-weight: bold;
    color: black;
    animation: fadeIn 1s ease-in-out;
}
@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(-10px); }
    100% { opacity: 1; transform: translateY(0); }
}
body.dark-mode #header {
    color: white;
}
#header a {
    text-decoration: none;
    color: inherit;
}

/* ---------------------------- EMOJI --------------------------------- */
#emoji {
    animation: pop 0.7s ease;
}

@keyframes pop {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

/* --------------------------- REFRESH -------------------------------- */
#refresh-button {
    position: absolute;
    bottom: 20px;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    background-color: white;
    border: 2px solid black;
    border-radius: 30px;
    cursor: pointer;
    animation: pop 0.7s ease;
}
body.dark-mode #refresh-button {
    background-color: #333;
    border: 2px solid white;
    color: white;
}
#refresh-button:hover {
    background-color: #f0f0f0;
}
body.dark-mode #refresh-button:hover {
    background-color: #444;
}

/* --------------------------- COPY -------------------------------- */
#copy-button {
    padding: 8px 15px;
    font-size: 14px;
    font-weight: bold;
    background-color: white;
    border: 2px solid black;
    border-radius: 10px;
    cursor: pointer;
    margin-top: 10px;
    animation: pop 0.7s ease;
}
body.dark-mode #copy-button {
    background-color: #333;
    border: 2px solid white;
    color: white;
}
#copy-button.copied {
    background-color: #4CAF50;
    color: white;
    border: 2px solid #333;
}
body.dark-mode #copy-button.copied {
    background-color: #4CAF50;
    border: 2px solid white;
    color: white;
}

/* ------------------------ NOTIFICATION ----------------------------- */
#notification {
    position: absolute;
    bottom: 80px;
    background-color: #ffd700;
    color: black;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
    padding: 10px 20px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    display: none;
}

/* --------------------------- CONTACT -------------------------------- */
#contact-button {
    position: absolute;
    bottom: 10px;
    left: 10px;
    width: 40px;
    height: 40px;
    font-size: 18px;
    background-color: #007bff;
    color: white;
    border-radius: 50%;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    animation: pop 0.7s ease;
}
#contact-button:hover {
    background-color: #0056b3;
}
body.dark-mode #contact-button {
    background-color: #0056b3;
}
#contact-popup {
    position: absolute;
    bottom: 60px;
    left: 10px;
    background-color: #007bff;
    color: white;
    padding: 12px 20px;
    border-radius: 10px;
    display: none;
    font-size: 14px;
    z-index: 10;
}
#contact-popup a {
    color: white;
    text-decoration: underline;
}
#contact-popup .close {
    position: absolute;
    top: 5px;
    right: 10px;
    cursor: pointer;
}

/* --------------------------- SUPPORT -------------------------------- */
#support-button {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    font-size: 18px;
    background-color: #28a745;
    color: white;
    border-radius: 50%;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    animation: pop 0.7s ease;
}
#support-button:hover {
    background-color: #208537;
}
body.dark-mode #support-button {
    background-color: #208537;
}

/* --------------------------- DARK -------------------------------- */
#dark-mode-toggle {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background-color: black;
    color: white;
    border: none;
    cursor: pointer;
    animation: pop 0.7s ease;
}
body.dark-mode #dark-mode-toggle {
    background-color: white;
    color: black;
}

/* --------------------------- POP UP -------------------------------- */
#popup {
    position: absolute;
    bottom: 60px;
    right: 10px;
    background-color: #28a745;
    color: white;
    padding: 12px 20px;
    border-radius: 10px;
    display: none;
    font-size: 14px;
    z-index: 10;
}
#popup a {
    color: white;
    text-decoration: underline;
}
#popup .close {
    position: absolute;
    top: 5px;
    right: 10px;
    cursor: pointer;
}

/* --------------------------- CANVA -------------------------------- */
canvas {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 999;
}


/* ------------------------ RESPONSIVE ----------------------------- */
@media (max-width: 600px) {
    #notification {
        font-size: 12px;
        padding: 8px 15px;
    }

    #refresh-button, #copy-button {
        font-size: 12px;
        padding: 6px 12px;
    }

    #contact-button {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }

    #support-button{
        width: 30px;
        height: 30px;
        font-size: 14px;
    }

    #dark-mode-toggle {
        font-size: 16px;
        width: 30px;
        height: 30px;
    }
}