:root {
    --blue: rgb(6, 48, 6);
    --red: rgb(11, 48, 58);
    --text: antiquewhite;
}

body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 100vh;
    background-color: var(--blue);
    margin: 0;
    padding: 0;
    overflow: hidden;
    color: var(--text);
    position: relative;
}

.row {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 32px;
}

h2 {
    padding: 12px;
    display: flex;
    text-align: center;
    width: 200px;
}

a {
    width: auto;
    position: relative;
    /* so tooltips attach properly */
}

.box {
    background-image: url("../pictures/backgrounds/kamihouse.jpeg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: solid 8px var(--red);
    border-radius: 23px;
    width: 70vw;
    height: 30vw;
    position: relative;
    display: flex;
}

img {
    height: 24%;
    width: auto;
    margin: 0;
    padding: 0;
}

/* --- tooltips --- */
.espeon:hover::after,
.purp:hover::after,
.vol:hover::after {
    background-color: var(--blue);
    color: var(--text);
    position: absolute;
    top: -8%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    padding: 5px 10px;
    border-radius: 4px;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(146, 105, 165, 0.283);
    pointer-events: none;
    z-index: 10;
}

.espeon:hover::after {
    content: "follow me to the blog :)";
}

.purp:hover::after {
    content: "follow me to the backrooms :)";
}

.vol:hover::after {
    content: "follow me to link library :)";
}

/* --- positioned characters --- */
.pos {
    display: flex;
    flex-direction: row;
    position: absolute;
    top: 50%;
    left: 5%;
}

.cat {
    position: absolute;
    right: 0;
    top: 50%;
    width: 10vw;
    height: auto;
}

.statue {
    position: absolute;
    left: 10px;
    top: 30%;
    width: auto;
    
}

/* --- mobile section --- */
.mobile {
    display: none;
}

@media (max-width: 600px) {
    body {
        background-color: rgb(10, 39, 17);
        width: 100vw;
        height: 100vh;
        
    }

    .show,
    .cat,
    .pos,
    .statue,
    .box {
        display: none;
    }

    .mobile {
        display: block;
        text-align: center;
        max-width: 90vw;
    }

    p {
        padding: 12px;
        margin: 12px;
    }
}