body {
    margin: 0;
    padding: 0;
    font-family: 'Kanit', sans-serif;
    background: linear-gradient(135deg, #050510, #0b1a2e, #001f3f);
    background-size: 400% 400%;
    animation: bgFlow 15s ease infinite;
    color: white;
    overflow-x: hidden;
    text-align: center;
}

@keyframes bgFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Gentle glowing wave overlay */
.wave-bg {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: -1;
}

.wave {
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(0, 255, 255, 0.1), transparent 70%);
    animation: waveMove 10s ease-in-out infinite alternate;
    filter: blur(60px);
}

@keyframes waveMove {
    0% {
        transform: translate(-20%, -10%) scale(1);
    }

    100% {
        transform: translate(10%, 10%) scale(1.2);
    }
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 20px;
}

.title {
    font-family: 'Audiowide', cursive;
    font-size: 2.5rem;
    color: #00ffff;
    text-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff;
    margin-bottom: 10px;
}

.subtitle {
    font-family: 'Nova Square', cursive;
    color: #fff;
    margin-bottom: 30px;
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 20px;
    justify-items: center;
    margin-bottom: 40px;
}

.tool-box {
    width: 100px;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.3);
    border: 2px solid #00ffff;
    border-radius: 15px;
    transition: transform .3s ease, box-shadow .3s ease;
}

.tool-box:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
    cursor: pointer;
}

.tool-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 8px;
}

.tool-name {
    font-size: 0.85rem;
    color: white;
    word-break: break-word;
}

.footer {
    margin-top: 30px;
    padding: 20px;
}

.footer-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: #25D366;
    color: white;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s ease;
    font-weight: bold;
}

.footer-button:hover {
    background-color: #128C7E;
}

.watermark {
    font-family: 'Baumans', cursive;
    color: #5DBD83;
    font-size: 0.9rem;
    margin-top: 15px;
}

/* Popup Styles */
.popup-overlay {
    position: fixed;
    top: 15px;
    left: 0;
    width: 100%;
    height: 80%;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.popup-content {
    background: #1a1a2e;
    border: 2px solid #00ffff;
    border-radius: 15px;
    max-width: 90%;
    padding: 20px;
    text-align: center;
}

.popup-image {
    max-width: 100%;
    border-radius: 10px;
}

.popup-title {
    font-family: 'Audiowide', cursive;
    font-size: 1.5rem;
    margin: 10px 0;
}

.popup-message {
    font-size: 1rem;
    margin-bottom: 10px;
}

.popup-buttons {
    display: flex;
    justify-content: space-around;
    gap: 10px;
}

.popup-btn {
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
    color: white;
}

.popup-btn.primary {
    background-color: #007BFF;
}

.popup-btn.secondary {
    background-color: #dc3545;
}

/* Report Bug Section */
.report-bug-container {
    margin-top: 40px;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.3);
    border: 2px solid #00ffff;
    border-radius: 15px;
}

.report-bug-container h3 {
    font-family: 'Nova Square', cursive;
    color: #00ffff;
    margin-bottom: 20px;
}

.report-bug-container input,
.report-bug-container textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #00ffff;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 5px;
    box-sizing: border-box;
}

.report-bug-container textarea {
    height: 100px;
}

.report-bug-container button {
    padding: 10px 20px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.report-bug-container button:hover {
    background-color: #218838;
}
