@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap');

body, html {
    margin: 0;
    padding: 0;
    font-family: 'Share Tech Mono', monospace;
    background-color: #0a0a0a;
    color: #00ff00;
    overflow-x: hidden;
}

#bgCanvas {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background-color: rgba(10, 10, 10, 0.8);
    border-bottom: 2px solid #8A2BE2;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav ul {
    display: flex;
    justify-content: space-around;
    list-style-type: none;
    padding: 0;
}

nav a {
    color: #00ffff;
    text-decoration: none;
    font-size: 1.2em;
    transition: all 0.3s ease;
}

nav a:hover {
    color: #ff00ff;
    text-shadow: 0 0 10px #ff00ff;
}

h1, h2, h3 {
    color: #8A2BE2;
    text-shadow: 0 0 10px #8A2BE2;
}

.books {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.book {
    background-color: rgba(10, 10, 10, 0.6);
    border: 1px solid #4B0082;
    padding: 20px;
    transition: all 0.3s ease;
}

.book:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px #8A2BE2;
}

.book img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border: 2px solid #4B0082;
}

.book-en img {
    width: 50%;
    margin: 0 auto;
    display: block;
}

.book a {
    display: block;
    color: #00ffff;
    text-decoration: none;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.book a:hover {
    color: #ff00ff;
    text-shadow: 0 0 5px #ff00ff;
}

.manifesto {
    background-color: rgba(10, 10, 10, 0.6);
    border: 1px solid #4B0082;
    padding: 20px;
    margin-top: 40px;
}

.terminal {
    background-color: rgba(0, 0, 0, 0.7);
    border: 1px solid #00ff00;
    padding: 10px;
    font-family: 'Courier New', monospace;
    color: #00ff00;
    height: 150px;
    overflow: hidden;
    margin-bottom: 20px;
}

.led {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    position: fixed;
    animation: blink 2s infinite alternate;
}

@keyframes blink {
    0% { opacity: 0.2; }
    100% { opacity: 1; }
}

.line {
    position: fixed;
    height: 1px;
    background-color: #00ffff;
    animation: scan 5s infinite;
}

@keyframes scan {
    0% { top: 0; width: 0; }
    50% { width: 100%; }
    100% { top: 100%; width: 0; }
}

footer {
    background-color: rgba(10, 10, 10, 0.8);
    border-top: 2px solid #8A2BE2;
    padding: 20px 0;
    text-align: center;
    margin-top: 40px;
}

.cool-button {
    background-color: #8A2BE2;
    color: white;
    border: none;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
    transition-duration: 0.4s;
}

.cool-button:hover {
    background-color: #4B0082;
    box-shadow: 0 12px 16px 0 rgba(0,0,0,0.24), 0 17px 50px 0 rgba(0,0,0,0.19);
}

.logo {
    height: 50px;
    width: auto;
    position: absolute;
    top: 10px;
    left: 10px;
    filter: brightness(0) invert(1);
}

header .container {
    position: relative;
    padding-left: 70px;
}

/* Language Switcher */
.language-switcher {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 10px;
}

.lang-button {
    background: none;
    border: 2px solid #8A2BE2;
    font-size: 2em;
    cursor: pointer;
    padding: 5px 10px;
    transition: all 0.3s ease;
    opacity: 0.5;
}

.lang-button:hover {
    opacity: 0.8;
    transform: scale(1.1);
}

.lang-button.active {
    opacity: 1;
    border-color: #00ffff;
    box-shadow: 0 0 10px #00ffff;
}

.lang-content {
    display: none;
}

.lang-content.active {
    display: block;
}
