:root {
    --text-color: #a15ebc;
}
body {
    overflow-x: hidden;
    font-family: 'ZHFont', sans-serif;
    font-weight: 200;
    color: var(--text-color);
}

a:hover {
    text-decoration: none;
}

.rubik-wet-paint-regular {
    font-family: "Rubik Wet Paint", system-ui;
    font-weight: 400;
    font-style: normal;
}

.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.music-icon-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.music-icon {
    width: 300px;
    height: auto;
    cursor: pointer;
    position: relative;
    z-index: -1;
    transition: transform 0.3s ease;
}

.splash-effect {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
    z-index: 4;
    transition: all 0.5s ease;
    transform: translate(-50%, -50%);
    top: 50%;
    left: 50%;
}

.splash-effect.active {
    width: 620px;
    height: auto;
    opacity: 0.7;
}

.music-icon.playing {
    animation: jump 0.5s ease infinite alternate;
}

@keyframes jump {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-10px);
    }
}

.music-icon.jump {
    animation: bigJump 0.5s ease;
}

@keyframes bigJump {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0);
    }
}
.planner-container {
    height: calc(100 * var(--vh, 1vh));
    width: calc(100 * var(--vw, 1vw));
    display: flex;
    justify-content: center;
    padding-top: 60px; 
    background: url(../assets/images/planner.png) 50%/contain no-repeat;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #bb7cffcc;
}

::-webkit-scrollbar-thumb {
    background: #bb7cffcc;
}

::-webkit-scrollbar-thumb:hover {
    background: #b37dff;
}

body ::selection {
    background: #ded2ff;
}

.pages {
    display: flex;
    justify-content: space-between;
    width: 100%;
    height: 90%; 
    max-width: 1180px;
    margin: 0 auto;
    gap: 80px;
    max-height: 100%;
    position: relative;
    padding-top: 35px; 
}

.page-tab {
    position: absolute;
    top: 0;
    height: 45px;
    min-width: 160px;
    border-radius: 10px 10px 0 0;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: all 0.3s ease;
    box-shadow: 0 -3px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.left-tab {
    left: 10%;
    background-color: rgb(255, 182, 193); 
    border: 1px solid #e6a4b4;
}

.right-tab {
    right: 10%;
    background-color: rgb(173, 216, 230); 
    border: 1px solid #a4c2e6;
}

.page-tab:hover {
    transform: translateY(-6px);
    box-shadow: 0 -4px 12px rgba(179, 125, 255, 0.6);
}

.tab-title {
    font-family: 'ZHFont', sans-serif;
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.left-page, 
.right-page {
    flex: 0 0 45%;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    padding: 25px 20px;
    border: 1px solid var(--accent-color);
    max-height: 100%;
    position: relative;
    overflow-x: hidden;
    overflow-y: hidden;
}

.pages::before {
    content: "";
    position: absolute;
    top: 55px;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(230, 230, 250, 0.15); 
    border-radius: 15px;
    z-index: -1;
}

.content {
    flex: 1;
    overflow-y: auto;
    padding: 15px 15px 15px 25px;
    font-size: 1.2rem;
    line-height: 1.6;
    border-left: 1px solid var(--accent-color);
    margin-left: 10px;
    overflow-x: hidden;
}

.skye-container {
    position: absolute;
    right: 100px;
    bottom: -40px;
    display: flex;
    align-items: flex-start;
    z-index: 10;
    width: 800px;
    pointer-events: none; 
  }

  .skye-sprite {
    width: 400px;
    height: auto;
    margin-top: 30px;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.6));
    transition: transform 0.3s ease;
  }

  .skye-sprite:hover {
    transform: scale(1.05);
  }

  .speech-bubble {
    position: relative;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 12px 20px;
    margin-right: 15px;
    width: 380px; 
    height: 90px; 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid #bb7cff;
    font-family: 'ZHFont', sans-serif;
    color: #a15ebc;
    box-sizing: border-box; 
    animation: float 3s ease-in-out infinite;
    overflow: hidden; 
    right:-80px;
    bottom: -300px;
  }

  .speech-bubble:after {
    content: '';
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    border: 10px solid transparent;
    border-left-color: #bb7cff;
    border-right: 0;
  }

  @keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
  }

  #dialogue-text {
    height: 100%; 
    font-size: 15px;
    line-height: 1.3;
    margin: 0;
    overflow: hidden; 
    display: -webkit-box;
    -webkit-line-clamp: 3; 
    -webkit-box-orient: vertical;
  }

@media (max-width: 768px) {
    .music-icon {
        width: 110px;
    }

    .splash-effect.active {
        width: 240px;
    }

    .planner-container {
        display: block;
        width: auto;
        height: auto;
        min-height: calc(100 * var(--vh, 1vh));
        padding: 80px 12px 220px;
        background-image: none;
    }

    .pages {
        flex-direction: column;
        gap: 16px;
        min-width: 0;
        height: auto;
        padding-top: 55px;
    }

    .left-page,
    .right-page {
        flex: none;
        min-width: 0;
    }

    .left-page {
        height: calc(60 * var(--vh, 1vh));
    }

    .page-tab {
        min-width: 0;
        padding: 0 16px;
    }

    .left-tab {
        left: 12px;
    }

    .right-tab {
        right: 12px;
    }

    .skye-container {
        position: fixed;
        right: 0;
        bottom: 0;
        align-items: flex-end;
        width: auto;
        max-width: 100%;
    }

    .skye-sprite {
        width: 110px;
        margin-top: 0;
    }

    .speech-bubble {
        right: 0;
        bottom: 24px;
        width: 190px;
        height: auto;
        margin-right: 4px;
        padding: 8px 12px;
    }

    #dialogue-text {
        font-size: 13px;
    }
}
