/* Hide default cursor on every element */
html, body, * {
    cursor: none !important;
}

/* Import custom font */
@font-face {
    font-family: 'Click';
    src: url('click.ttf') format('truetype');
}

/* Global Styles */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    color: #fff;
    background: linear-gradient(90deg, rgba(0,0,0,1) 0%, rgba(120,0,0,1) 38%, rgba(140,0,0,1) 68%, rgba(0,0,0,1) 100%);
    overflow-x: hidden;
}

/* Force interactive elements to hide the default cursor */
button, a, input, select, textarea, 
.audio-toggle, .discord-link, .invite-btn, .commands-btn, .close {
    cursor: none !important;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
    transition: filter 0.5s ease;
}

.blurred {
    filter: blur(3px);
}

.header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 40px 0;
}

.header img {
    max-width: 100%;
    height: auto;
    max-height: 200px;
}

/* Make the toft2.gif bigger by targeting the .logo class */
.header .logo {
    max-height: 300px;
    /* Increased from 200px to 300px */
}

.main {
    margin: 40px 0 0 0;
}

.main p {
    font-size: 1.5em;
    margin: 0;
    text-shadow: 0 0 10px rgba(0,0,0,0.5);
    min-height: 1.5em;
    word-wrap: break-word;
}

.buttons {
    margin: 20px 0;
    padding: 0;
    position: relative;
    display: inline-block;
}

.buttons a,
.buttons button {
    display: inline-block;
    margin: 0 5px 0 0;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    vertical-align: middle;
}

.invite-btn,
.commands-btn {
    position: relative;
    background: #990000;
    color: #fff;
    padding: 20px 40px;
    border: 2px solid black;
    border-radius: 5px;
    font-size: 1.5em;
    text-transform: uppercase;
    box-shadow: 0 0 15px rgba(153,0,0,0.5);
    z-index: 1;
}

.invite-btn:hover,
.commands-btn:hover {
    transform: scale(1.05);
}

.invite-btn::after,
.commands-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(153,0,0,0.6) 0%, rgba(153,0,0,0) 80%);
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    filter: blur(8px);
    clip-path: polygon(30% 0%, 70% 10%, 100% 50%, 80% 90%, 20% 100%, 0% 50%);
    transition: all 0.6s ease-out;
    pointer-events: none;
}

.invite-btn:hover::after,
.commands-btn:hover::after {
    transform: translate(-50%, -50%) scale(2.5);
    opacity: 1;
}

/* Status Indicator Block */
.status-container {
    margin-top: 20px;
    text-align: center;
}

.status-indicator {
    display: block;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: green;
    margin: 0 auto;
}

.status-text {
    font-size: 1.8em;
    margin-top: 10px;
    display: block;
}

/* Discord Server Link */
.discord-link {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: transparent;
    border: 2px solid #990000;
    padding: 10px 20px;
    border-radius: 5px;
    color: #990000;
    text-decoration: none;
    font-size: 1em;
    transition: all 0.3s ease;
}

.discord-link:hover {
    background: #990000;
    color: #fff;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
}

.modal-content {
    background-color: #222;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #990000;
    width: 90%;
    max-width: 900px;
    border-radius: 10px;
    color: #fff;
    text-align: left;
    max-height: 80%;
    overflow-y: auto;
}

.modal-content h2 {
    margin-top: 0;
    font-size: 2em;
    text-align: center;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: none;
}

.close:hover,
.close:focus {
    color: #fff;
    text-decoration: none;
}

.commands-list {
    font-size: 1.1em;
    line-height: 1.6;
}

.command-category {
    margin-bottom: 20px;
}

.command-category h3 {
    margin-bottom: 10px;
    font-size: 1.5em;
    border-bottom: 1px solid #990000;
    padding-bottom: 5px;
}

.command-category ul {
    list-style-type: none;
    padding-left: 0;
}

.command-category li {
    margin-bottom: 5px;
}

.command-category code {
    background: #333;
    padding: 2px 5px;
    border-radius: 3px;
    font-family: monospace;
}

/* Audio Toggle */
.audio-toggle {
    position: fixed;
    top: 20px;
    left: 20px;
    background: transparent;
    border: 2px solid #990000;
    padding: 10px 20px;
    border-radius: 5px;
    color: #990000;
    font-size: 1em;
    text-decoration: none;
    transition: all 0.3s ease;
    z-index: 2000;
}

.audio-toggle:hover {
    background: #990000;
    color: #fff;
}

/* Visit Counter */
.visit-counter {
    position: fixed;
    top: 20px;
    right: 20px;
    background: transparent;
    border: 2px solid #990000;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1em;
    transition: all 0.3s ease;
    z-index: 2000;
    display: flex;
    align-items: center;
    gap: 10px;
}

.visit-counter img {
    height: 1em;
    width: auto;
    vertical-align: middle;
}

.visit-counter:hover {
    background: #990000;
    color: #fff;
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    color: #fff;
    text-align: center;
    padding: 20px;
    transition: opacity 0.8s ease;
}

.overlay p {
    font-size: 2em;
    font-family: 'Click', sans-serif;
}

/* Media Queries */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
    }

    .invite-btn,
    .commands-btn {
        padding: 15px 30px;
        font-size: 1.3em;
    }

    .audio-toggle,
    .discord-link,
    .visit-counter {
        padding: 8px 16px;
        font-size: 0.9em;
    }

    .main p {
        font-size: 1.2em;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }

    .invite-btn,
    .commands-btn {
        padding: 10px 20px;
        font-size: 1.1em;
    }

    .modal-content {
        padding: 15px;
    }

    .modal-content h2 {
        font-size: 1.8em;
    }

    .commands-list {
        font-size: 1em;
    }

    .audio-toggle,
    .discord-link,
    .visit-counter {
        padding: 6px 12px;
        font-size: 0.8em;
    }

    .overlay p {
        font-size: 1.5em;
    }
}

/* NEW: Custom Cursor Styling */
#customCursor {
    position: fixed;
    width: 32px;
    height: 32px;
    background: url('cursor.ico') no-repeat center center;
    background-size: contain;
    pointer-events: none;
    z-index: 10000;
    display: none; /* Hidden by default; shown after overlay click */
}
