* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Press Start 2P', monospace;
    color: #fff;
    background: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
    overflow-x: hidden;
    overflow-y: auto;
    text-align: center;
}

.background {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url("https://edgedrain.work/static/sakura.png") center/cover no-repeat;
    filter: brightness(0.45) blur(6px);
    z-index: -1;
}

.container {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 30px;
    padding: 20px;
    width: 100%;
    max-width: 1000px;
}

.side-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 10px;
    background: rgba(40, 0, 60, 0.25);
    border-radius: 12px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 0 15px rgba(255, 100, 180, 0.25);
}

.side-nav button {
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 10px;
    background: rgba(40, 0, 60, 0.4);
    color: #ff99d6;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.25s ease;
    animation: glowButton 5s ease-in-out infinite;
}

.side-nav button.active,
.side-nav button:active {
    background: rgba(255, 100, 180, 0.3);
    box-shadow: 0 0 20px rgba(255, 100, 180, 0.6),
    0 0 30px rgba(160, 0, 255, 0.4);
    transform: scale(1.1);
}
.info-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex-grow: 1;
}

.card {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background: rgba(25, 0, 35, 0.35);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 30px 40px;
    box-shadow: 0 0 25px rgba(255, 100, 180, 0.25);
    animation: cardGlow 5s ease-in-out infinite;
    min-height: 100%;
}


.title {
  margin: 0;
  font-size: 1.4rem;
  color: #ffb3dc;
  text-shadow: 0 0 10px #ff66b2, 0 0 20px #c54fff;
  animation: glowPulse 5s ease-in-out infinite;
}

.subtitle {
    font-size: 0.7rem;
    color: #ccc;
    margin-bottom: 1.5em;
    text-shadow: 0 0 6px #b07fff, 0 0 10px #b07fff;
    animation: glowPulseSoft 4s ease-in-out infinite;
}

.info-content {
    font-size: 0.7rem;
    color: #ddd;
    line-height: 1.6;
    min-height: 150px;
    transition: opacity 0.3s ease;
}

.info-content.fade {
    opacity: 0;
}
.links {
    margin-top: auto;
    text-align: center;
}

.links a {
    color: #ff66b2;
    background: rgba(255, 100, 180, 0.1);
    padding: 8px 18px;
    border-radius: 18px;
    text-decoration: none;
    font-size: 0.7rem;
    display: inline-block;
    margin: 3px;
    transition: 0.3s;
    text-shadow: 0 0 6px #ff66b2, 0 0 12px #a100ff;
    box-shadow: 0 0 10px rgba(255, 100, 180, 0.3),
    0 0 20px rgba(160, 0, 255, 0.15);
    animation: glowButton 3.5s ease-in-out infinite;
}

.links a:hover {
    background: rgba(255, 100, 180, 0.3);
    box-shadow: 0 0 20px rgba(255, 100, 180, 0.6),
    0 0 30px rgba(160, 0, 255, 0.4);
    transform: scale(1.05);
}

.title-block {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}




.petal {
    position: fixed;
    top: -10px;
    width: 14px;
    height: 14px;
    background: radial-gradient(circle at 30% 30%, #ffcce8 0%, #ffb0de 60%, #ff99d6 100%);
    border-radius: 70% 30% 70% 30%;
    opacity: 0.8;
    pointer-events: none;
    animation: fall linear infinite;
    z-index: 2;
    transform: rotate(45deg);
}
#sakuraCanvas {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
z-index: 0;
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
        align-items: center;
    }

    .side-nav {
        flex-direction: row;
        justify-content: center;
        width: 100%;
        padding: 10px;
    }

    .card {
        min-height: auto;
        width: 92%;
    }
}


.title,
.subtitle,
.links a,
.side-nav button,
.card {
    animation-duration: 5s !important;
    animation-timing-function: ease-in-out !important;
    animation-iteration-count: infinite !important;
    animation-direction: normal;
}

@keyframes glowPulse {
    0%, 100% {
        text-shadow:
        0 0 10px #ff66b2,
        0 0 20px #c54fff,
        0 0 30px #a100ff;
    }
    50% {
        text-shadow:
        0 0 20px #ff89e3,
        0 0 40px #d55fff,
        0 0 50px #a100ff;
    }
}

@keyframes glowPulseSoft {
    0%, 100% {
        text-shadow:
        0 0 8px #b07fff,
        0 0 16px #b07fff;
    }
    50% {
        text-shadow:
        0 0 18px #ff89e3,
        0 0 28px #a100ff;
    }
}

@keyframes glowButton {
    0%, 100% {
        box-shadow:
        0 0 10px rgba(255, 100, 180, 0.3),
        0 0 20px rgba(160, 0, 255, 0.15);
    }
    50% {
        box-shadow:
        0 0 30px rgba(255, 120, 200, 0.6),
        0 0 50px rgba(160, 0, 255, 0.4);
    }
}

@keyframes cardGlow {
    0%, 100% {
        box-shadow:
        0 0 25px rgba(255, 100, 180, 0.25),
        0 0 50px rgba(160, 0, 255, 0.15);
    }
    50% {
        box-shadow:
        0 0 50px rgba(255, 120, 200, 0.45),
        0 0 90px rgba(160, 0, 255, 0.35);
    }
}

@keyframes fall {
    0% {
        transform: translateY(-10vh) rotate(0deg);
        opacity: 0.9;
    }
    50% {
        transform: translateY(50vh) translateX(20vw) rotate(180deg);
        opacity: 0.7;
    }
    100% {
        transform: translateY(110vh) translateX(-20vw) rotate(360deg);
        opacity: 0.3;
    }
}
