/*    FONTS   */ 

@font-face {
    font-family: "mokoto";
    src: url("Fonts/mokoto.ttf") format("truetype");
}

@font-face {
    font-family: "valve";
    src: url("Fonts/valve.otf") format("truetype");
}

@font-face {
    font-family: "valveit";
    src: url("Fonts/valveit.otf") format("opentype");
}


/*    VARIABLES    */

:root {
    --red: #dc6448;
    --orange: #ed824a;
    --blue: #269ca6;
    --lightblue: #46caca;
    --yellow: #d8c873;
    --brightyellow: #e7c825;
    --cream: #fdf7d7;
    --paper: #e5e9eb;
    --navy: #11222a;    

    --shadow: rgba(24, 32, 43, 0.25);

    --page-width: 900px;
}


/*  BASIC  */

body {
    margin: 0;
    padding: 0;

    background-color:  #11222a;

    font-family: "valve", monospace;
    font-size: 20px;

    min-height: 100vh;
}


/* RETRO BACKGROUND */

body::before {
    content: "";

    position: fixed;

background-image: 
    
    linear-gradient(#11222a, #005b62);
}


/*  NAVIGATION BAR */

.navbar {
    position: fixed;

    top: 0;
    left: 0;
    right: 0;

    height: 80px;

    display: flex;
    align-items: center;

    padding: 0 40px;

    background-color:#11222a;

    border-bottom: 6px solid  #46caca;

    box-shadow:
        0px 4px 10px rgba(24, 32, 43, 0.25);
    z-index: 1000;
}


/* Logo */

.logo {
    display: flex;
    align-items: center;

    margin-right: 50px;

    text-decoration: none;
}

.logo img {
    max-height: 70px;
    max-width: 100px;

    display: block;
}


/* Text logo fallback */

.logo-text {
    font-family: "mokoto", sans-serif;

    font-size: 34px;
    letter-spacing: 3px;

    color: black;

    text-shadow:
        20px 20px 20 color(white);
}


/* Navigation links */

.nav-links {
    display: flex;
    align-items: center;

    gap: 12px;

    margin-left: auto;
}

.nav-links a {
    position: relative;

    padding: 10px 16px;

    color: #fdf6d6;

    text-transform: uppercase;

    font-family: "valveit", monospace;
    font-size: 15px;
    letter-spacing: 1px;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.nav-links a::before {
    content: "";
    left: 0;
    right: 0;
    bottom: 3px;

    height: 3px;

    background-color: #11222a;

    transform: scaleX(0);

    transition: transform 0.2s ease;

    transform-origin: center;
}

.nav-links a:hover {
    color: #1be2e2;
    transform: translateY(-2px);
}

.nav-links a:hover::before {
    transform: scaleX(1);
}




/*  MAIN CONTENT */

main {
    
    width: 100%;
    max-width: 1400px;
    margin: 0px auto;

    padding-top: 130px;
    padding-bottom: 100px;
}

/*   COMIC HEADER */

.header {
    text-align: center;

    margin-bottom: 40px;
}

.header h1 {
    margin: 0;

    font-family: "mokoto", sans-serif;

    font-size: 32px;

    text-transform: uppercase;

    letter-spacing: 4px;

    color: #fdf7d7;

    text-shadow:
        4px 4px 100% #269da7;
}

.header p {
    margin-top: 12px;

    text-transform: uppercase;

    letter-spacing: 2px;

    color: #fdf6d6;
}


/* Little archive label */

.archive-label {
    display: inline-block;

    padding: 5px 12px;

    margin-bottom: 15px;

    background-color: #ed824a;

    color: #11222a;

    font-family: "valve", sans-serif;

    font-size: 5px;

    letter-spacing: 4px;

}


/*  PAGE NAVIGATION */

.page-navigation {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 15px;

    margin: 20px auto;

    flex-wrap: wrap;
}


/* Navigation buttons */

.page-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-width: 150px;

    padding: 10px 15px;

    border: 2px solid;
    
    border-color:#d8c873;

    background-color: #11222a;

    color: #d8c873;

    text-decoration: none;

    font-family: "valveit", sans-serif;

    font-size: 15px;

    text-transform: uppercase;

    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        background-color 0.15s ease;
}

.page-button:hover {
    background-color: #ed824a;

    color: white;

    transform: translate(3px, 3px);

    box-shadow:
        2px 2px 0 #269ca6;
}

.page-button:active {
    transform: translate(5px, 5px);

    box-shadow: none;
}


/* Page counter */

.page-counter {
    padding: 10px 18px;

    background-color: #11222a;

    color: #fdf7d7;

    border: 3px solid;
    
    border-color: #46caca;

    font-family: "valve", monospace;

    font-size: 15px;

    letter-spacing: 2px;
}


/* ---------------------------------------------------------
   COMIC SPREAD
   --------------------------------------------------------- */

.comic-spread {
    
    display: flex ;    
    flex-direction: row;

    width: 100%;
    max-width: 1000px;
    margin: 20px auto;
    padding: 5px;
    gap: 5px;

   border-width: 4px;

    background-color: #11222a;

    border: 8px solid #11222a;

    box-shadow:
        0px 10px 0  #ed824a,
        0px 13px 0 #d8c873;
}


/* Individual comic pages */

.comic-page {
    position: relative;

    width: 50%;
    
    flex: 1 1 50%;    
    
    max-width: 1500px;

    background-color: white;

    overflow: hidden;

    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.4);
}

.comic-page img {
    display: block;

    width: 100%;
    height: auto;

}



/* ---------------------------------------------------------
   CLICKABLE PAGE ARROWS
   --------------------------------------------------------- */

.page-arrow {
    position: absolute;

    top: 50%;

    transform: translateY(-50%);

    width: 60px;
    height: 60px;

    display: flex;

    align-items: center;
    justify-content: center;

    background-color: #11222a;

    border: 4px solid #269ca6;

    color: #fdf7d7;

    text-decoration: none;

    font-family: "mokoto", sans-serif;

    font-size: 22px;

    box-shadow: 5px 5px 0  #ed824a;

    z-index: 10;

    transition:
        transform 0.15s ease,
        background-color 0.15s ease;
}

.page-arrow:hover {
    background-color: #ed824a;

    color: white;

    transform: translateY(-50%) scale(1.08);
}

.page-arrow.left {
    left: 15px;
}

.page-arrow.right {
    right: 15px;
}


/* ---------------------------------------------------------
   CHAPTER SELECTOR
   --------------------------------------------------------- */

.issue-selector {
    margin: 60px auto 30px;

    max-width: 1000px;

    padding: 25px;

    background-color: #269ca6;

    box-shadow:
        7px 7px 0 #46caca;
}

.issue-selector h2 {
    margin-top: 0;

    font-family: "mokoto", sans-serif;

    text-transform: uppercase;

    letter-spacing: 2px;

    color: #11222a;
}

.issue-list {
    display: flex;

    justify-content: center;

    flex-wrap: wrap;

    gap: 10px;
}

.issue-button {
    padding: 8px 14px;

    border: 3px solid;
    
    border-color: #46caca;

    background-color: #269ca6;

    color: #11222a;
    
    font-family: "valve", monospace;

    font-size: 20px;

    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.issue-button:hover {
    background-color: #46caca;

    transform: translateY(-3px);
}

.issue-button.active {
    background-color: #ed824a;

    color: white;
}



/* ---------------------------------------------------------
   FOOTER
   --------------------------------------------------------- */
  
footer {
    margin-top: 80px;

    padding: 30px;

    text-align: center;

    background-color: #11222a;

    color: #fdf7d7;

    border-top: 6px solid #ed824a;
}

footer p {
    margin: 5px;

    font-size: 16px;
}
