/* General Styles */
@font-face {
    font-family: sui;
    src: url(fonts/sui\ generis\ rg.otf);
}

body {
    font-family: sui;
    background: linear-gradient(135deg, #000033 30%, #003366 100%);
    color: #00ff00;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    cursor: default;
}

.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image:
        radial-gradient(white, rgba(255, 255, 255, .2) 2px, transparent 40px),
        radial-gradient(white, rgba(255, 255, 255, .15) 1px, transparent 30px),
        radial-gradient(white, rgba(255, 255, 255, .1) 2px, transparent 40px);
    background-size: 550px 550px, 350px 350px, 250px 250px;
    animation: twinkle 10s infinite;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.5;
    }

    25%,
    75% {
        opacity: 1;
    }

    50% {
        opacity: 0.75;
    }
}

/* Inkline Styles */
.button-link {
    display: inline-block;
    margin: 10px 5px;
    padding: 10px 20px;
    color: #ffff00;
    background-color: #000066;
    border: 2px solid #00ffff;
    border-radius: 5px;
    text-decoration: none;
    cursor: pointer;
    font-family: sui, sans-serif;
    font-size: 1em;
    transition: background-color 0.3s, color 0.3s;
}

.button-link:hover {
    background-color: #ff00ff;
    color: #000;
}

/* Header Styles */
header {
    background-color: #000066;
    padding: 20px;
    text-align: center;
    border-bottom: 5px solid #ff00ff;
}

h1 {
    font-size: 3em;
    margin: 0;
}

.glow {
    color: #ffffff;
    text-shadow: 0 0 3px #fff, 0 0 5px #fff, 0 0 7px #fff, 0 0 10px #ff00de, 0 0 20px #ff00de, 0 0 30px #ff00de, 0 0 40px #ff00de, 0 0 50px #ff00de;
    animation: glow 1s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 3px #fff, 0 0 5px #fff, 0 0 7px #fff, 0 0 10px #ff00de, 0 0 20px #ff00de, 0 0 30px #ff00de, 0 0 40px #ff00de, 0 0 50px #ff00de;
    }

    to {
        text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 15px #fff, 0 0 20px #ff00de, 0 0 35px #ff00de, 0 0 40px #ff00de, 0 0 50px #ff00de, 0 0 75px #ff00de;
    }
}

nav ul {
    list-style-type: none;
    padding: 0;
}

nav ul li {
    display: inline;
    margin: 0 10px;
}

nav ul li a {
    color: #ffff00;
    text-decoration: none;
    font-size: 1.2em;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #ff00ff;
}

.book a {
    color: #ffff00;
    text-decoration: none;
    font-size: 1em;
    transition: color 0.3s;
}

.book a:hover {
    color: #ff00ff;
}

/* Main Content Styles */
main {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

section {
    background-color: rgba(0, 0, 102, 0.7);
    border: 3px solid #00ffff;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
}

h2 {
    color: #ff00ff;
    text-align: center;
    text-shadow: 2px 2px #000000;
}

.book {
    background-color: rgba(0, 0, 153, 0.5);
    border: 2px solid #ff00ff;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
}

.book img {
    max-width: 200px;
    display: block;
    margin: 0 auto;
    border: 3px solid #ffff00;
    transition: transform 0.3s ease;
}

.book img:hover {
    transform: scale(1.2);
}

/* Contact Form Styles */
form {
    display: flex;
    flex-direction: column;
}

label {
    margin-top: 10px;
}

input,
textarea {
    padding: 5px;
    margin-top: 5px;
    background-color: #000066;
    color: #00ff00;
    border: 2px solid #00ffff;
    font-family: sui;
}

button {
    margin-top: 10px;
    padding: 10px;
    background-color: #ff00ff;
    color: #ffffff;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
    font-family: sui;
}

button:hover {
    background-color: #00ffff;
    color: #000000;
}

/* Donate Button Styles */
.donate {
    transition: transform 0.3s ease;
}

.donate:hover {
    transform: scale(1.2);
}

.donation-section {
    border: 2px solid transparent;
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 20px;
    transition: border-color 0.3s ease;
}

/* Be-gone Button Styles */
.be-gone-btn {
    background-color: #ff00ff;
    color: #ffffff;
    border: none;
    padding: 1vh 2vh;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s ease;
    font-family: sui;
    font-size: 0.9em;
    margin-right: 30%;
    scale: 50%;
}

.be-gone-btn:hover {
    background-color: #00ffff;
    color: #000000;
    transform: scale(1.5);
}

/* Spaceship Styles */
.spaceship {
    display: none;
    position: absolute;
    width: 5vw;
    height: 5vw;
    background-image: url('images/spaceship.png');
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
    transition: transform 0.5s ease-out;
    z-index: 1000;
}

/* Laser Effect */
.laser {
    display: none;
    position: absolute;
    transform: translate(9vh, 214vh) rotate(105deg);
    width: 40vw;
    height: 40vw;
    background-image: url('images/laser.png');
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
    transition: transform 0.5s ease-out;
    z-index: 999;
}

/* 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.75);
}

.modal-content {
    background-color: #001825;
    opacity: 85%;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #00ffff;
    width: 80%;
    max-width: 50vw;
    border-radius: 10px;
}

.store-button {
    display: inline-block;
    padding: 2vh 2vw;
}

.modal-tab {
    background-color: #444;
    color: #fff;
    border: 1px solid #00ffff;
    padding: 10px;
    margin-right: 10px;
    margin-left: 10px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.modal-tab:hover {
    background-color: #00ffff;
    color: #000;
}

#modalTabs {
    text-align: center;
}

#modalContent {
    text-align: center;
}

#modalContent a {
    display: inline-block;
    margin: 10px;
}

#modalContent img {
    width: 10vh;
    transition: transform 0.3s ease, filter 0.1s ease;
    border-radius: 10px;
    box-shadow: 0 0 5px #00ffff;
}

#modalContent img:hover {
    transform: scale(1.2);
    filter: drop-shadow(0 0 3px #00ffff);
}

.close {
    color: #ffffff;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: #fff;
    text-decoration: none;
    cursor: pointer;
}


@keyframes laserGlow {
    0% {
        filter: brightness(100%) drop-shadow(0 0 5px #ff00ff);
    }

    100% {
        filter: brightness(150%) drop-shadow(0 0 15px #ff00ff);
    }
}

/* Hide Donation Section */
.hidden {
    display: none;
}

@keyframes spaceship-animation {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-100vh);
    }
}

/* Footer Styles */
footer {
    text-align: center;
    padding: 10px;
    background-color: #000066;
    border-top: 5px solid #ff00ff;
}

/* Overlay Styles */
#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 1000;
    color: #ffffff;
    font-size: 1.5em;
}

.spinner {
    border: 16px solid #f3f3f3;
    border-top: 16px solid #00ff00;
    border-radius: 50%;
    width: 120px;
    height: 120px;
    margin-bottom: 20px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Modal Styles */
#modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 102, 0.9);
    border: 3px solid #00ffff;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    z-index: 1001;
}

/* General Particle Trail */
.particle {
    position: fixed;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    pointer-events: none;
    animation: particle-fade 0.5s forwards;
}

/* Particle Variants */
.default-particle {
    background-color: rgba(0, 255, 255, 0.8);
    box-shadow: 0 0 8px rgba(0, 255, 255, 0.8);
}

.clickable-particle {
    background-color: rgba(255, 255, 0, 0.8);
    box-shadow: 0 0 8px rgba(255, 255, 0, 0.8);
}

.text-particle {
    background-color: rgba(43, 255, 0, 0.8);
    box-shadow: 0 0 8px rgba(43, 255, 0, 0.8);
}

.text-block-particle {
    background-color: rgba(255, 0, 255, 0.8);
    box-shadow: 0 0 8px rgba(255, 0, 255, 0.8);
}

/* Sci-Fi Overlay */
.sci-fi-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 10000;
    animation: sci-fi-fade 1s forwards;
}

@keyframes sci-fi-fade {
    0% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.sci-fi-line {
    position: fixed;
    top: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(transparent, white, transparent);
    z-index: 9999;
    animation: move-lines 1s forwards;
}

.sci-fi-line.left {
    left: 0;
}

.sci-fi-line.right {
    right: 0;
}

@keyframes move-lines {
    0% {
        opacity: 0;
        transform: translateY(-100%);
    }

    50% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateY(100%);
    }
}

@keyframes particle-fade {
    to {
        opacity: 0;
        transform: scale(0.5);
    }
}

/* Mobile Styles */
@media (max-width: 600px) {
    body {
        font-size: 14px;
    }

    header {
        padding: 10px;
    }

    h1 {
        font-size: 2em;
    }

    nav ul li {
        display: block;
        margin: 10px 0;
    }

    .book img {
        max-width: 150px;
    }

    main {
        padding: 10px;
    }

    section {
        padding: 15px;
    }

    .book {
        padding: 10px;
    }

    form input,
    form textarea {
        width: 100%;
        box-sizing: border-box;
    }

    button {
        width: 100%;
    }

    .be-gone-btn {
        margin-right: 0;
        scale: 1;
    }

    .spaceship,
    .laser {
        width: 10vw;
        height: 10vw;
    }

    #overlay {
        font-size: 1.2em;
    }

    .spinner {
        width: 80px;
        height: 80px;
        border-width: 10px;
    }

    #modal {
        width: 90%;
        max-width: none;
    }
}

@media (min-width: 601px) and (max-width: 1024px) {
    body {
        font-size: 16px;
    }

    main {
        padding: 15px;
    }

    .book img {
        max-width: 180px;
    }
}

@media (min-width: 1025px) {
    main {
        max-width: 1000px;
    }
}

/* General improvements */
img {
    max-width: 100%;
    height: auto;
}

* {
    box-sizing: border-box;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Improved accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid #00ffff;
}

/* Responsive navigation */
@media (max-width: 600px) {
    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #000066;
    }

    nav ul.show {
        display: flex;
    }

    .menu-toggle {
        display: block;
        background: none;
        border: none;
        color: #ffff00;
        font-size: 1.5em;
        cursor: pointer;
    }
}

@media (min-width: 601px) {
    .menu-toggle {
        display: none;
    }
}

.drawer-container {
    position: fixed;
    top: 65%;
    right: -300px;
    width: 300px;
    height: 400px;
    background-color: rgba(0, 0, 102, 0.9);
    border: 3px solid #00ffff;
    border-radius: 15px 0 0 15px;
    transition: right 0.3s ease-in-out;
    z-index: 1000;
    transform: translateY(-50%);
    padding: 20px;
    padding-top: 50px;
}

.drawer-handle {
    position: absolute;
    left: -40px;
    top: 65%;
    width: 40px;
    height: 60px;
    background-color: rgba(0, 0, 102, 0.9);
    border: 3px solid #00ffff;
    border-right: none;
    border-radius: 15px 0 0 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 24px;
    color: #00ffff;
    transform: translateY(-50%);
}

.drawer-content {
    padding: 20px;
    color: #00ff00;
    font-family: sui, sans-serif;
}

.drawer-container.open {
    right: 0;
}