body {
    background-image: url("https://i.pinimg.com/736x/69/45/9c/69459cec5fd36587ae72451419ea6fce.jpg");
    color: black;
    font-family: Verdana, sans-serif;
    margin: 20px;
}

img {
    max-width: 100%;
    height: auto;
}

.icon-bar {
    position: relative;
    width: 100%;
    max-width: 1200px;
    min-height: 520px;
}

/* ---------- Links ---------- */

.icon-bar a {
    color: inherit;
    text-decoration: none;
}

/* ---------- Guestbook ---------- */

.guestbook-icon {
    position: absolute;
    top: -100px;
    right: 20px;
    text-align: center;
}

.guestbook-icon img {
    width: 200px;
}

/* ---------- About ---------- */

.aboutme-icon {
    position: absolute;
    top: 40px;
    left: 40px;
    transform: rotate(-45deg);
    text-align: center;
}

.aboutme-icon img {
    width: 150px;
}

/* ---------- Contact ---------- */

.contact-icon {
    position: absolute;
    top: 110px;
    right: 20px;
    text-align: center;
}

.contact-icon img {
    width: 80px;
}

/* ---------- Media ---------- */

.media-icon {
  position: absolute;
  top: 265px;
  left: 200px;
  text-align: center;
}

.media-icon img {
  width: 200px;
}


/* -------- Altar ----------*/
.altar {
  position: absolute;
  bottom: 260px;
  right: 120px;
  text-align: center;
  transform: rotate(-20deg)}
.altar img {
  width: 80px;}
/* ---------- Diary ---------- */

.diary-key {
    position: absolute;
    top: 300px;
    left: 10px;
    transform: rotate(10deg);
    text-align: center;
}

.diary-key img {
    width: 150px;
}

/* ---------- Poetry ---------- */

.poetry {
    position: absolute;
    top: -70px;
    right: 250px;
    text-align: center;
}

.poetry img {
    width: 400px;
}


.tamagotchi {
  position: absolute;
  top:-200px;
  left: 300px;
  
}
.tamagotchi img {
  width: 60px;}

/* ---------- Text ---------- */

.wave-text,
.wave-text-still {
    font-family: Georgia, serif;
    font-size: 18px;
    letter-spacing: 2px;
}

.wave-text {
    animation: float 2s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(-3deg);
    }

    50% {
        transform: translateY(-4px) rotate(3deg);
    }
}

/* =======================================================
   POETRY PAGE
======================================================= */

.poem-container {
    width: 90%;
    max-width: 550px;
    margin: 20px auto;
    padding: 22px;

    background: linear-gradient(135deg, #020b10, #06151b, #081d24);

    border: 1px solid rgba(94, 234, 212, .25);
    border-radius: 8px;

    box-shadow: 0 0 15px rgba(0, 0, 0, .8);

    color: #d7ebe8;
    text-align: left;

    font-family: Arial, Helvetica, sans-serif;
}

.poem-container h2 {

    color: #b6ded8;

    font-size: 10px;
    font-weight: normal;
    letter-spacing: 2px;

    text-align: center;

    margin: 5px 0 10px;

}

.poem-container h3 {

    color: #9fcfc8;

    font-size: 10px;
    font-weight: normal;
    letter-spacing: 1px;

    margin-bottom: 15px;

}

.poem-slide {
    display: none;

    margin-top: 12px;
    padding: 20px;

    background: rgba(0, 0, 0, .35);

    border-left: 1px solid rgba(94, 234, 212, .35);
    border-radius: 5px;

    line-height: 1.8;

    color: #e2f2f0;

    box-shadow: inset 0 0 15px rgba(0, 0, 0, .4);
}

.poem-slide p {

    font-size: 10px;

}

.poem-slide img {

    margin-top: 15px;
    opacity: .8;

}

.poem-slide:target {

    display: block;

}

.poem-intro {

    text-align: center;
    padding: 8px;

}

.poem-slide:target~.poem-intro {

    display: none;

}

.poem-nav {

    margin-top: 18px;
    text-align: center;

}

.poem-nav a {

    display: inline-block;

    margin: 4px;
    padding: 5px 12px;

    background: rgba(94, 234, 212, .12);

    border: 1px solid rgba(94, 234, 212, .25);
    border-radius: 12px;

}

.poem-nav a:hover {

    background: rgba(94, 234, 212, .25);
    color: white;

}

/* =======================================================
   MOBILE
======================================================= */

@media (max-width: 768px) {

    body {
        margin: 15px;
        text-align: center;
    }

    h1 {
        font-size: 2rem;
    }

    .icon-bar {
        position: static;

        display: flex;
        flex-direction: column;
        align-items: center;

        gap: 40px;

        min-height: auto;

        margin-top: 40px;
    }

    .guestbook-icon,
    .aboutme-icon,
    .media-icon,
    .contact-icon,
    .diary-key,
    .poetry,
    .altar {

        position: static;

        top: auto;
        left: auto;
        right: auto;

        transform: none;

        margin: 0;

    }

    .guestbook-icon img {
        width: 170px;
    }

    .aboutme-icon img {
        width: 120px;
    }

    .contact-icon img {
        width: 70px;
    }

    .diary-key img {
        width: 120px;
    }

    .poetry img {
        width: 90%;
        max-width: 320px;
    }
    
    .altar img {
      width: 100px; }

    .wave-text,
    .wave-text-still {
        font-size: 16px;
    }

}