/* =========================
   GLOBAL RESET
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

/* =========================
   BODY
========================= */
body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    background: #f2f2f2;
}

/* =========================
   COMIC CONTAINER
========================= */
#comic {
    display: flex;
    flex-direction: column;
    border: 3px solid black;
    width: 100vw;
    max-width: 400px;
    background-color: burlywood;
}

/* =========================
   TITLE
========================= */
h1 {
    border: 2px solid rgb(12, 171, 12);
    background-color: rgb(233, 155, 21);
    text-align: center;
    padding: 10px;
}

/* =========================
   ROW (FLEX CONTAINER)
========================= */
.row {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    border: 1px solid blue;
    height: 100vh;
    max-height: 200px;
}

/* =========================
   PANEL (IMAGE BOX)
========================= */
.panel {
    background-color: blueviolet;
    border: 1px solid orange;
    height: 190px;
    width: 190px;

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    position: relative;
}

/* =========================
   IMAGES - ROW 1
========================= */
#row-1 .panel:nth-child(1) {
    background-image: url("../media/images/pikachu1.gif");
}
#row-1 .panel:nth-child(2) {
    background-image: url("../media/images/pikachu2.gif");
}
#row-1 .panel:nth-child(3) {
    background-image: url("../media/images/pikachu3.gif");
}

/* =========================
   IMAGES - ROW 2
========================= */
#row-2 .panel:nth-child(1) {
    background-image: url("../media/images/pikachu4.gif");
}
#row-2 .panel:nth-child(2) {
    background-image: url("../media/images/pikachu5.gif");
}
#row-2 .panel:nth-child(3) {
    background-image: url("../media/images/pikachu6.gif");
}

/* ======================
   DIALOGUE BOX
========================= */
.dialogue {
    position: absolute;
    bottom: 3px;
    left: 3px;

    border: 2px solid rgb(83, 3, 83);
    font-size: 12px;
    background: rgba(255, 255, 255, 0.95);
    padding: 2px 4px;
    border-radius: 5px;
    max-width: 100px;
}

/* =========================
   CUSTOM BUTTON LINK
========================= */
.custom-btn {
    text-decoration: none;
    background: #3498db;
    color: white;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 14px;
    display: inline-block;
    transition: 0.3s;
    text-align: center;
    cursor: pointer;
}

/* Hover effect for custom button */
.custom-btn:hover {
    background: #1d6fa5;
}

/* =========================
   RESPONSIVE DESIGN
========================= */

/* Tablet */
@media (max-width: 768px) {

    #comic {
        width: 95%;
    }

    .row {
        flex-wrap: wrap;
        height: auto;
        gap: 10px;
        padding: 10px;
    }

    .panel {
        width: 30%;
        height: 160px;
    }

    .dialogue {
        font-size: 11px;
        max-width: 80px;
    }
}

/* Mobile */
@media (max-width: 480px) {

    body {
        align-items: flex-start;
    }

    #comic {
        width: 100%;
    }

    .row {
        flex-direction: column;
        height: auto;
    }

    .panel {
        width: 100%;
        max-width: 300px;
        height: 200px;
    }

    .dialogue {
        font-size: 10px;
        max-width: 70px;
    }
}