* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #f0f0f0;
    font-family: sans-serif;
    color: #333;
}

.wrapper {
    display: grid;
    grid-template-rows: auto 1fr; 
    grid-template-columns: 1fr;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

header {
    grid-row: 1 / 2;
    grid-column: 1 / -1;
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    background-color: black;
    color: white;
    padding: 10px 20px; 
    position: static; 
    z-index: 10;
    font-size: 16px;
    width: 100%; 
}

.logo {
    margin: 0 auto;
}

.hamburger {
    display: block; 
    color: white;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

nav {
    display: none; 
}

main {
    grid-row: 2 / 3;
    grid-column: 1 / -1;
    display: flex; 
    flex-direction: row; 
    width: 100%; 
    overflow-x: scroll; 
    scroll-snap-type: x mandatory;
    height: 100%;
    overflow-y: hidden;
}

main > section {
    flex: 0 0 100vw; 
    scroll-snap-align: start;
    padding: 20px;
    background-color: white;
    overflow-y: auto;
    min-height: 100%; 
}

.navigation-pages {
    position: fixed; 
    bottom: 20px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: fit-content;
    z-index: 20; 
    display: flex;
    gap: 15px;
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.navigation-pages a {
    color: black;
    font-weight: bold;
    text-decoration: none;
    padding: 2px 8px; 
    border-radius: 50%;
    transition: background-color 0.3s, color 0.3s;
    line-height: 1.5;
}

.navigation-pages a:hover,
.navigation-pages a.active {
    background-color: black;
    color: white;
}

#introduction h1, 
#introduction h2 { 
    text-align: center;
    margin-top: 15px; 
}

#introduction h1,
#introduction p:nth-of-type(1) {
    text-align: center;
    padding: 20px;
}

#introduction img, 
video { 
    max-width: 100%; 
    height: auto; 
    display: block; 
    margin: 10px auto; 
}

video {

    padding: 25px;
}

#introduction div img {
    display: none;
}

#reading div img[src*="cat-two.png"] {
    display: none; 
}

#reading div img {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
}

#reading article { 
    margin-bottom: 20px; 
    padding-bottom: 20px; 
    border-bottom: 1px solid #eee; 
}

#cards h2, 
#cards h3 { 
    text-align: center; 
    margin: 15px 0; 
}

#cards div { 
    display: grid; 
    grid-template-columns: repeat(2, 1fr); 
    gap: 10px; 
    margin-bottom: 30px; 
}

#cards img { 
    width: 100%; 
    height: auto; 
    display: block; 
}

footer {
    padding: 20px;
    text-align: center;
    border-top: 1px solid #eee;
}

footer img { 
    max-width: 80px; 
    display: block;
    margin: 0 auto 10px auto;
}



/* --- TABLET LAYOUT --- */

@media (min-width: 600px) {
    .wrapper {
        display: grid;
        grid-template-rows: auto auto 1fr;
        grid-template-columns: 1fr;
        max-width: none; 
        margin: 0; 
        height: 100vh;
        overflow: hidden;
        padding: 0; 
    }

    #introduction div img {
        display: block;
    }

    #introduction div video,
    #introduction div img {
        max-width: 320px;
        width: 100%; 
        height: auto; 
    }

    #introduction div {
        display: flex; 
        gap: 20px; 
        align-items: center;
        justify-content: center; 
    }

    main {
        grid-row: 3 / 4;
        grid-column: 1 / -1;
        display: flex; 
        width: 100%; 
        flex-direction: row; 
        
        overflow-x: scroll; 
        scroll-snap-type: x mandatory;
        
        height: 100%; 
        overflow-y: hidden;
    }

    main > section {
        flex: 0 0 100vw; 
        scroll-snap-align: start;
        min-height: 100%; 
        overflow-y: auto;
        padding: 40px 60px;
    }

    header {
        grid-row: 1 / 2;
        grid-column: 1 / -1;
        display: flex; 
        position: static; 
        justify-content: center; 
        padding: 15px 0; 
        background-color: black;
        color: white;
    }

    .hamburger {
        display: none;
    }

    nav {
        grid-row: 2 / 3;
        grid-column: 1 / -1;
        display: block; 
        position: sticky;
        top: 0;
        z-index: 15;
        width: 100%;
        background-color: #f0f0f0; 
        padding: 5px 0;
        text-align: center;
        border-bottom: 1px solid #ccc;
    }

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

    nav li { 
        margin: 0 5px; 
    }

    nav a {
        display: inline-block;
        color: #333; 
        padding: 5px 10px;
        text-decoration: none;
    }

    .navigation-pages {
        display: none;
    }

    #reading { 
        display: grid; 
        grid-template-columns: repeat(2, 1fr); 
        gap: 30px; 
    }

    #reading div { 
        grid-column: 1 / -1; 
        display: flex; 
        gap: 20px; 
        align-items: center; 
    }

    #reading img { 
        max-width: 50%; 
        height: auto; 
    }

    #reading div img[src*="cat-two.png"] {
    display: block; 
    }

    #reading article { 
        border-bottom: none; 
        padding-bottom: 0; 
        margin-bottom: 0; 
    }
    
    #cards div { 
        grid-template-columns: repeat(4, 1fr); 
        gap: 15px; 
    }

    footer {
        padding: 20px 0;
        border-top: 1px solid #ccc;
    }
}



/* --- DESKTOP LAYOUT --- */

@media (min-width: 900px) {
    body {
        background-color: white; 
    }

    .wrapper {
        display: grid;
        grid-template-columns: 250px 1fr; 
        grid-template-rows: 1fr; 
        min-height: 100vh;
        max-width: none;
        margin: 0;
        width: 100%; 
        overflow: hidden;
        scroll-snap-type: none; 
        padding: 0;
    }

    nav {
        display: block; 
        grid-column: 1 / 2;
        grid-row: 1 / -1;
        position: fixed;
        left: 0;
        top: 0;
        width: 250px;
        height: 100vh; 
        padding: 40px 20px;
        background-color: black;
        overflow-y: auto; 
        text-align: left;
    }
    
    
    nav ul::before {
        content: "TAROT"; 
        display: block;
        color: white;
        font-weight: bold;
        margin-bottom: 50px;
        font-size: 32px;
        text-align: left;
    }
    
    nav ul {
        list-style: none;
        padding: 0;
        display: block; 
    }

    nav a {
        padding: 10px 0;
        border-bottom: 1px solid #333;
        margin-bottom: 5px;
        color: white; 
    }

    header {
        display: none; 
    }

    .navigation-pages {
        display: none;
    }

    main {
        grid-column: 2 / 3;
        grid-row: 1 / -1;
        display: flex; 
        height: 100vh;
        overflow-x: scroll; 
        scroll-snap-type: x mandatory;
        overflow-y: hidden;
    }

    main > section {
        flex: 0 0 calc(100vw - 250px); 
        scroll-snap-align: start;
        min-height: 100%;
        padding: 40px 60px;
        margin-bottom: 0;
        overflow-y: auto;
    }

    #reading { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
    
    #reading div { 
        grid-column: 1 / -1; 
        display: flex; 
        gap: 20px; 
    }
    
    #reading img { 
        max-width: 50%; 
        height: auto; 
    }

    #reading div img[src*="cat-two.png"] {
    display: block; 
    }

    #cards div { 
        grid-template-columns: repeat(6, 1fr); 
        gap: 15px; 
    }

    #introduction p {
    width: 50%;
    margin: 0 auto;
    }

    #introduction div video,
    #introduction div img {
        max-width: 320px; 
        width: 100%;
        height: auto;
    }

    #introduction div {
        justify-content: center; 
    }

    footer img {
        display: none;
    }

    footer {
        position: fixed;
        left: 0;
        bottom: 0;
        width: 250px;
        background-color: black;
        color: white; 
        border-top: 1px solid #000000;
        z-index: 99; 
        text-align: center;
        padding: 20px;
    }

    footer p, footer a {
        color: white;
    }
}