@font-face {
  font-display: swap;
  font-family: 'lain';
  font-style: normal;
  font-weight: 400;
  src: url('../../../assets/fonts/Momot.ttf') format('truetype');
}

@font-face {
    font-display: swap; 
    font-family: 'profont';
    font-style: normal;
    font-weight: 400;
    src: url('../../../assets/fonts/ProFontWindows.ttf') format('truetype');
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes mark-brown {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

* {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    background-color: #0a0a0a;
    overflow-x: hidden;
}

h1, h2, h3, p, a {
  font-family: 'profont', monospace;
  color: white;
}

h1 {
  font-size: 24px;
  margin: 0;
}

#top-text h1 {
    font-size: 1.4rem;
    margin-bottom: 2px;
}

#top-text h2 {
    font-size: 0.9rem;
    font-weight: 400;
    opacity: 0.7;
    margin: 0;
}

#top-text {
    display: none;
    animation: fadeIn 0.3s ease;
}

mark.brown {
    background: radial-gradient(circle, #ffff21, #f746b9, #38ceec, #ff87d1);
    background-size: 200% 200%;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    animation: mark-brown 12s linear infinite;
}

.blur-overlay { 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0a0a0a;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    z-index: -1;
}

a {
  z-index: 1;
  color: rgba(255, 0, 0, 0.851);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

p { 
    color: #f00;
    -webkit-filter: invert(100%);
    filter: invert(100%);
    margin: 0;
}

#start-text {
   opacity: 1;                 
  transition: opacity 0.4s ease; 
  background-color: transparent !important;
}

#scope canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw !important;
  height: 100vh !important;
  z-index: -1;          
  pointer-events: none; 
  opacity: 0.8;         
}

.top-content {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 1;
  background-color: transparent !important;
  width: 100%;
  padding: 0 20px;
}

#typed {
  font-family: 'profont', monospace;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10; 
  color: rgb(255, 255, 255);
  font-size: 1em;
  text-align: center;
}

#volume-holder {
    display: none !important;
}

#main-section {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 2rem;
    padding: 2rem;
    margin: 0 auto;
    margin-top: 100px;
    margin-bottom: 3rem;
    width: 100%;
    max-width: 1400px;
}

.book-section {
    flex: 0 1 400px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
    background: #0a0a0a;
    border-radius: 8px;
    border: 2px solid #a855f7;
    box-shadow: 
        0 0 20px rgba(168, 85, 247, 0.4),
        inset 0 0 30px rgba(168, 85, 247, 0.1);
    max-width: 450px;
    min-width: 280px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.book-section:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 0 30px rgba(168, 85, 247, 0.6),
        inset 0 0 30px rgba(168, 85, 247, 0.1);
}

.book-cover {
    display: block;
    width: 100%;
    max-width: 200px;
    height: auto;
    aspect-ratio: 2/3;
    object-fit: cover;
    margin: 0 auto;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
}

.title-text {
    font-size: 20px;
    color: #c084fc;
    text-align: center;
    margin: 10px 0;
    text-shadow: -2px 0 #e879f9;
    font-weight: bold;
    letter-spacing: 2px;
    border: 2px solid #a855f7;
    box-shadow: 
        0 0 20px rgba(168, 85, 247, 0.4),
        inset 0 0 30px rgba(168, 85, 247, 0.1);
    padding: 20px;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.book-desc {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin-top: auto;
    padding: 10px 0;
}
.review-btn {
    font-family: "profont";
    font-size: 0.95rem;
    padding: 10px 18px;
    border-radius: 999px;
    cursor: pointer;
    text-transform: lowercase;
    letter-spacing: 0.5px;
    transition: all 0.15s ease;
    color: #3f7b03;
}

.review-btn:hover {
    transform: translateY(-2px) scale(1.03);
}

.review-btn:active {
    transform: translateY(2px);
}

@media (max-width: 768px) {
    body {
        justify-content: flex-start;
    }

    #main-section {
        gap: 1.5rem;
        padding: 1rem;
        flex-direction: column;
        align-items: center;
        margin-top: 120px;
    }
    
    .book-section {
        flex: 1 1 100%;
        width: 100%;
        max-width: 400px;
        min-height: 500px;
    }
    
    .book-cover {
        max-width: 250px;
    }
    
    .title-text {
        font-size: 18px;
        padding: 15px;
    }
    
    .top-content {
        top: 10px;
    }
}

@media (max-width: 480px) {
    #main-section {
        margin-top: 100px;
        padding: 0.5rem;
    }
    
    .book-section {
        padding: 1rem;
    }
    
    .title-text {
        font-size: 16px;
        letter-spacing: 1px;
    }
}