/* ===== CUSTOM FONTS ===== */

@font-face {
  font-family: 'BitcountM';
  src: url('/fonts/BitcountM.ttf') format('truetype');
}

@font-face {
  font-family: 'GeoM';
  src: url('/fonts/Geo.ttf') format('truetype');
}

@font-face {
  font-family: 'PressStart';
  src: url('/fonts/PressStart.ttf') format('truetype');
}

@font-face {
  font-family: 'ZCOOL';
  src: url('/fonts/ZCOOL.ttf') format('truetype');
}

@font-face {
  font-family: 'ZCOOL2';
  src: url('/fonts/ZCOOL2.ttf') format('truetype');
}

/* ===== FONT CLASSES ===== */

.font-bitcount { font-family: 'BitcountM', monospace; }
.font-geo { font-family: 'GeoM', sans-serif; }
.font-pressstart { font-family: 'PressStart', monospace; }
.font-zcool { font-family: 'ZCOOL', sans-serif; }
.font-zcool2 { font-family: 'ZCOOL2', sans-serif; }

/* ===== LINK COLORS ===== */

a,
a:visited,
a:hover,
a:active {
    color: #FF2A00 !important;
}

/* ===== BODY ===== */

body {
    font-family: 'PressStart', sans-serif; 
    background-color: #000000;  
    color:#ffffff;
    text-align:center;
    padding-bottom:120px; 
}

/* ===== TEXT ===== */

.intro{
    max-width:600px;
    margin:auto;
}

/* ===== GLOBAL IMAGE SAFETY ===== */
/* prevents random full-width stretching */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== FOOTER ===== */

#fire-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background-image: url('https://yazyounane.neocities.org/site_assets/fire.gif');
    background-repeat: repeat-x;
    background-position: bottom;
    background-size: auto 100%;
    pointer-events: none;
    z-index: 9999;
}

/* ===== TOP BUTTONS ===== */

.top-buttons{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:18px;
    margin-top:25px;
}

.top-buttons a{
    display:inline-block;
    margin-top:0;
}

.top-buttons img{
    height:42px;
    width:auto;
}

.top-buttons img:hover{
    transform:scale(1.1);
}

/* ===== COMIC READER ===== */

.reader {
    position: relative;
    width: 90%;
    max-width: 800px;
    margin: 40px auto;
}

/* MAIN PAGE IMAGE */
.page img {
    width: 100%;
    max-width: 500px;
    height: auto;
    margin: 0 auto;
}
/* ===== ARROWS ===== */

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'PressStart', monospace;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    user-select: none;
}

.arrow.left { left: -60px; }
.arrow.right { right: -60px; }

/* ===== THUMBNAILS (FIXED + WORKING) ===== */

.thumbs {
    width: 90%;
    margin: 20px auto;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    justify-content: flex-start;
}

/* wrapper controls size */
.thumb {
    height: 80px;
    flex: 0 0 auto;
    overflow: hidden;
}

/* image fits inside wrapper */
.thumb img {
    height: 100%;
    width: auto;
    opacity: 0.5;
    cursor: pointer;
    transition: 0.2s;
}

.thumb img:hover {
    opacity: 0.8;
}

/* active state */
.thumb.active img {
    opacity: 1;
    outline: 2px solid #FF2A00;
}

/* ===== COUNTER ===== */

.counter {
    margin-top: 10px;
    font-size: 0.8em;
}