/* =========================
   GENERAL
   ========================= */
@font-face {
    font-family: "Koolavie";
    src: url("koolavie.ttf") format("truetype");
}

body {
    margin: 0;
    background-color: #f4fbff;
    background-image:
        url("img/clouds.gif"),
        url("img/hills.png"),
        url("img/rainbow.png"),
        url("img/sun1.png"),
        linear-gradient(to bottom, #00c6ff 0%, #eaf9ff 100%);
    background-size: cover, 100% auto, 100% auto, 100% auto, cover;
    background-position: center top, center bottom, center bottom, calc(50% - 12px) 30px, center top;
    background-repeat: no-repeat;
    background-attachment: fixed;
    animation: sun-cycle 2s steps(1, end) infinite;
    font-family: Arial, sans-serif;
    color: #e5a52f;
}

@keyframes sun-cycle {
    0%, 49.999% {
        background-image:
            url("img/clouds.gif"),
            url("img/hills.png"),
            url("img/rainbow.png"),
            url("img/sun1.png"),
            linear-gradient(to bottom, #00c6ff 0%, #eaf9ff 100%);
    }

    50%, 100% {
        background-image:
            url("img/clouds.gif"),
            url("img/hills.png"),
            url("img/rainbow.png"),
            url("img/sun2.png"),
            linear-gradient(to bottom, #00c6ff 0%, #eaf9ff 100%);
    }
}

* {
    cursor: url("img/cursor.png") 0 0, auto;
}

#page {
    width: 100%;
    max-width: 1270px;
    margin: 20px auto;
    padding: 20px 10px;
    box-sizing: border-box;
    background: white;
    border-radius: 24px;
    font-size: 18px;
    zoom: 0.85;
}

.divider {
    display: block;
    margin: 10px auto 20px;
    max-width: 100%;
    height: auto;
}

/* =========================
   TOP TITLE
   ========================= */
#title {
    font-family: "Koolavie", sans-serif;
    width: 100%;
    height: 115px;
    box-sizing: border-box;
    padding: 15px 20px;
    background-image: url("img/titlebg.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 10px;
    display: flex;
    align-items: center;
    font-size: 90px;
    font-weight: bold;
}

#title span {
    background: linear-gradient(to bottom, #fdff8e, #ff9100);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-stroke: 1px #ffde85;
}

/* =========================
   STAMPS
   ========================= */
#stamps {
    width: 100%;
    height: 70px;
    box-sizing: border-box;
    margin-top: 10px;
    background-image:
        linear-gradient(to bottom, transparent 60%, white 100%),
        url("img/pattern.gif");
    background-repeat:
        no-repeat,
        repeat-x;
    background-size:
        100% 100%,
        auto 140px;
    background-position:
        center,
        center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    overflow: hidden;
}

/* =========================
   MAIN CONTENT
   ========================= */
#content {
    display: grid;
    grid-template-columns: 290px 650px 290px;
    gap: 8px;
    width: fit-content;
    min-height: 580px;
    margin: 15px auto 0;
    padding: 5px;
    box-sizing: border-box;
    align-items: center;
    background: linear-gradient(to bottom, white 0%, #ffcc47 5%, #ffcc47 95%, white 100%);
}

/* =========================
   LEFT COLUMN
   ========================= */
#left-column,
#right-column {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Navigation */
#navigation {
    height: 280px;
    box-sizing: border-box;
    padding: 15px;
    background-image: url("img/navbg.png");
    background-size: cover;
    background-repeat: no-repeat;
    border: 3px dashed #ed9d00;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    overflow-y: auto;
    overflow-x: hidden;
}

#navigation h1 {
    margin: 0 0 5px;
    background: linear-gradient(to bottom, #ffd579, #ff8800);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-stroke: 1px #ffae00;
    font-size: 42px;
    font-weight: bolder;
}

#navigation a {
    width: fit-content;
    text-decoration: none;
    background: linear-gradient(to bottom, #ffd579, #ff8800);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-stroke: 1px #ffae00;
    font-size: 29px;
    font-weight: bolder;
}

#navigation a:hover {
    background: none;
    color: #ffdc5f;
    -webkit-text-stroke: 1px #ffe68d;
}

/* =========================
   MUSIC PLAYER
   ========================= */
#music-player {
    width: 100%;
    height: 280px;
    box-sizing: border-box;
    padding: 15px;
    background-image: url("img/musicbg.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 3px dashed #ed9d00;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Player title */
#music-player h1 {
    margin: 0 0 10px;
    background: linear-gradient(to bottom, #ffd579, #ff8800);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-stroke: 1px #ffae00;
    font-size: 40px;
    font-weight: bolder;
}

/* Song information */
#song-info {
    width: 100%;
    text-align: center;
    margin-bottom: 12px;
}

#song-count {
    display: block;
    color: #e5a52f;
    font-size: 16px;
    font-weight: bold;
}

#song-name {
    display: block;
    margin-top: 10px;
    color: #e5a52f;
    font-size: 16px;
    font-weight: bolder;
}

/* Progress */
#progress-container {
    width: 100%;
}

#progress-bar {
    width: 100%;
    height: 8px;
    margin: 0;
    accent-color: #ed9d00;
}

#time {
    display: flex;
    justify-content: space-between;
    margin-top: 3px;
    color: #e5a52f;
    font-size: 14.12px;
    font-weight: bold;
}

/* Controls */

#controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin: 5px 0;
}

#controls button {
    width: 40px;
    height: 32px;
    padding: 0;
    background: transparent;
    border: none;
    color: #ff8800;
    -webkit-text-stroke: 1px #ffae00;
    font-size: 23.53px;
    font-weight: bold;
}

#controls button:hover {
    background: transparent;
    color: #ffdc5f;
    -webkit-text-stroke: 1px #ffe68d;
}

#play {
    width: 45px;
    height: 36px;
    font-size: 29.41px;
}

/* Volume */
#volume-container {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
}

#volume-container span {
    color: #e5a52f;
    font-size: 14.12px;
    font-weight: bold;
}

#volume {
    flex: 1;
    height: 8px;
    accent-color: #ed9d00;
}

/* =========================
   MAIN CONTAINER
   ========================= */
#main {
    height: 570px;
    box-sizing: border-box;
    padding: 25px 30px;
    background: white;
    border: 3px dashed #ed9d00;
    border-radius: 10px;
    overflow-y: auto;
    overflow-x: hidden;
}

#main h1 {
    margin: 0;
    text-align: center;
    background: linear-gradient(to bottom, #fff2c8, #ffd000);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-stroke: 1px #ffae00;
    font-size: 49.41px;
    font-weight: bolder;
}

#main h3 {
    margin: 5px 0 25px;
    text-align: center;
    color: #e5a52f;
    font-size: 23.53px;
    font-weight: bolder;
}

#main p {
    margin: 15px 0;
    text-align: left;
    color: #e5a52f;
    font-size: 18.82px;
    line-height: 1.5;
}

.home-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.home-text {
    flex: 1;
    text-align: left;
    font-size: 21.18px;
}

.jade {
    width: 100px;
    height: auto;
    flex-shrink: 0;
    transform: translateY(-30px);
}

/* =========================
   RIGHT COLUMN
   ========================= */

#cbox {
    height: 280px;
    background: white;
    border: 3px dashed #ed9d00;
    border-radius: 10px;
}

/* Games border when About is displayed */
#cbox.about-games {
    border-color: #f29ab5;
}

#gifypet {
    height: 280px;
    background: white;
    border: 3px dashed #ed9d00;
    border-radius: 10px;
}

/* Music border when About is displayed */
#gifypet.about-music {
    border-color: #8bb5e8;
}

#gifypet iframe {
    transform: scale(0.9) translateY(-23px) translateX(-15px);
    transform-origin: center center;
}

/* =========================
   ABOUT SIDEBAR BOXES
   ========================= */

.friends-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.friends-content p {
    flex: 1;
    margin: 0;
}

.azure {
    width: 200px;
    height: auto;
    flex-shrink: 0;
}

/* Games */
#cbox-about {
    height: 100%;
    box-sizing: border-box;
    padding: 20px;
    background-image: url("img/gamesbg.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #e56b91;
    overflow-y: auto;
    overflow-x: hidden;
}

#cbox-about h1 {
    margin: 0 0 15px;
    text-align: center;
    background: linear-gradient(
        to bottom,
        #fffad1,
        #ff4f87
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-stroke: 1px #ff4f87;
    font-size: 37px;
    font-weight: bolder;
}

#cbox-about h3 {
    margin: 15px 0 0;
    text-align: left;
    color: #e56b91;
    font-size: 20px;
    font-weight: normal;
    line-height: 1.6;
}

/* Music */
#gifypet-about {
    height: 100%;
    box-sizing: border-box;
    padding: 20px;
    background-image: url("img/musicbg2.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #2696ff;
    overflow-y: auto;
    overflow-x: hidden;
}

#gifypet-about h1 {
    margin: 0 0 15px;
    text-align: center;
    background: linear-gradient(
        to bottom,
        #c9f7ff,
        #2696ff
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-stroke: 1px #07a4ff;
    font-size: 37.65px;
    font-weight: bolder;
}

#gifypet-about h3 {
    margin: 0;
    text-align: left;
    color: #2696ff;
    font-size: 20px;
    font-weight: normal;
    line-height: 1.6;
}

/* =========================
   DECORATION
   ========================= */

#decoration {
    width: 100%;
    height: 70px;
    box-sizing: border-box;
    margin-top: 15px;
    background-image:
        linear-gradient(
            to bottom,
            white 0%,
            transparent 40%
        ),
        url("img/pattern.gif");
    background-repeat: no-repeat, repeat-x;
    background-size: 100% 100%, auto 140px;
    background-position: center, center;
}

/* =========================
   BUBBLES
   ========================= */
#bubble-container {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    overflow: hidden;
    z-index: 999;
}

.bubble {
    position: absolute;
    bottom: -80px;
    width: var(--bubble-size);
    height: var(--bubble-size);
    background-image: url("img/bubble.png");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: auto;
    animation:
        bubble-rise var(--bubble-duration) linear forwards,
        bubble-wobble var(--bubble-wobble) ease-in-out infinite alternate;
}

@keyframes bubble-rise {
    0% {
        bottom: -80px;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        bottom: 110vh;
        opacity: 0;
    }
}

@keyframes bubble-wobble {
    0% {
        margin-left: -8px;
    }
    100% {
        margin-left: 8px;
    }
}

/* =========================
   FRIENDS GALLERY
   ========================= */

.friends-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 20px;
    text-align: center;
}

.friend {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.friend a {
    display: block;
}

.friend img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    display: block;
}

.friend img:hover {
    transform: scale(1.08);
}

#main .friend h3 {
    margin: 8px 0 0;
    background: linear-gradient(
        to bottom,
        #d6f9ff,
        #7de5ff
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 1px #7da6ff;
    font-size: 23px;
    font-weight: bolder;
}