/* Base styles */
body {
    font-family: Arial, sans-serif;
    transition: background-color 0.3s, color 0.3s;
    margin: 0;
    height: 100vh; /* Full viewport height */
    display: flex;
    justify-content: center; /* Horizontal centering */
    align-items: center; /* Vertical centering */
    flex-direction: column; /* Arrange items in a column */
}

.ascii-art {
    font-family: 'Courier New', Courier, monospace;
    font-size: 16px;
    margin-top: 20px;
    color: #000000;
    white-space: pre; /* Ensure preformatted text */
}

.logo {
    font-family: 'Courier New', Courier, monospace;
    font-size: 20px;
    margin-top: 70px;
    color: #ffffff;
    z-index: 1;
    position: relative;
    white-space: pre; /* Ensure preformatted text */
}

.ascii-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none; /* Ensure the background does not block interactions */
    white-space: pre; /* Preserve whitespace and line breaks */
    font-family: 'Courier New', Courier, monospace; /* Use a monospace font */
    color: #191919; /* Set the color for the | characters */
    line-height: 1; /* Adjust line height if needed */
    overflow: hidden; /* Hide overflow */
}

.ascii-background span {
    display: inline-block;
}

.content {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

hr {
    width: 100%;
    border: none;
    border-top: 2px solid #777777; /* Dark theme color */
    margin: 0; /* Remove default margins */
}

canvas#overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Ensure the canvas does not block interactions */
    z-index: 1; /* Ensure the canvas is on top of other elements */
}

/* Dropdown Navigation Styles */
.dropdown-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: flex-start;
    gap: 0;
    padding: 15px 20px;
    z-index: 1000;
    background: linear-gradient(180deg, rgba(18, 18, 18, 0.95) 0%, rgba(18, 18, 18, 0.7) 70%, rgba(18, 18, 18, 0) 100%);
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-btn {
    background-color: rgba(224, 224, 224, 0.07);
    color: #e0e0e0;
    padding: 12px 24px;
    font-size: 16px;
    border: 2px solid rgba(224, 224, 224, 0.15);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Courier New', Courier, monospace;
    border-radius: 4px;
    backdrop-filter: blur(5px);
}

.dropdown-btn:hover {
    background-color: rgba(224, 224, 224, 0.1);
    border-color: rgba(224, 224, 224, 0.3);
    box-shadow: 0 0 10px rgba(224, 224, 224, 0.2);
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: rgba(18, 18, 18, 0.85);
    min-width: 220px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.5);
    z-index: 1001;
    border: 2px solid rgba(224, 224, 224, 0.15);
    border-radius: 4px;
    margin-top: 5px;
    backdrop-filter: blur(10px);
}

.dropdown-content a {
    color: #e0e0e0;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-family: 'Courier New', Courier, monospace;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(224, 224, 224, 0.1);
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: rgba(224, 224, 224, 0.15);
    padding-left: 24px;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown:hover .dropdown-btn {
    background-color: rgba(224, 224, 224, 0.1);
    border-color: rgba(224, 224, 224, 0.3);
}

/* Dark theme styles */
body.dark-theme {
    background-image: linear-gradient(-9deg, #121212 35%, #1a044b 200%);
    color: #e0e0e0;
}

body.dark-theme header {
    background-color: #1f1f1f;
    color: #e0e0e0;
}

body.dark-theme button {
    background-color: #e0e0e0;
    color: #121212;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
}

body.dark-theme .ascii-art {
    color: #e0e0e0; /* Dark theme color */
}

body.dark-theme .logo {
    color: #e0e0e0; /* Dark theme color */
}