@import url("https://fonts.googleapis.com/css?family=Roboto:100,300,400&subset=vietnamese");

body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background-color: #f8f8f8;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    min-height: 100vh;
    color: rgba(0, 0, 0, 0.653);
    background-image: url(./img/pc_bg_1.jpg);
    background-size: cover;
    background-position: center;
    text-shadow: 0 .2px .3px rgba(0, 0, 0, 0.353);
}

a {
    text-decoration: none;
    color: black;
}

a:hover {
    text-decoration: none;
}

img {
    max-width: 100%;
}

.box {
    background-color: pink;
    box-shadow: 2 3px 6px rgb(0 0 0 / 10%);
    padding: 1rem;
    width: 60%;
    border-radius: 26px;
    opacity: 70%;
}

.about {
    display: flex;
    align-items: center;
    padding: 0 1rem;
    margin-bottom: 3rem;
    margin-top: 10px;
    position: relative;
}

.info:first-child {
    flex-grow: 1;
}

.info {
    display: flex;
    align-items: center;
}

.info:last-child .avatar {
    order: 2;
}

.info:last-child .details {
    text-align: right;
}

.avatar {
    width: 70px;
    border-radius: 50%;
    height: 70px;
    object-fit: cover;
}

.info .details {
    margin: 0 1rem;
}

.info .details p {
    margin: 4px;
}

.name {
    font-size: 15px;
    text-transform: uppercase;
}

.born {
    font-weight: 300;
}

.time {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.time h2,
.time p {
    margin: 0;
    margin-bottom: 4px;
}

.time h2 {
    font-size: 2.8rem;
    background: #CF2D24;
    background: linear-gradient(to right, #CF2D24 0%, #CF2A95 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
}

.time p {
    font-size: 1.5rem;
    animation: neonRGB 4s linear infinite;
    padding: 2px 20px;
    background: white;
    border-radius: 15px;
    margin-top: 10px;
}

.ymd-cards {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    justify-content: center;
    align-items: center;
    margin: 10px 0 6px;
    width: 100%;
}

.ymd-card {
    background: rgba(140, 100, 200, 0.82);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 80px;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(120, 80, 180, 0.25);
}

.ymd-card span:first-child {
    font-size: 2rem;
    font-weight: 400;
    color: #fff;
    line-height: 1.1;
    -webkit-text-fill-color: #fff;
    text-shadow: none;
}

.ymd-label {
    background: rgba(255, 255, 255, 0.92);
    color: #7c4dbd;
    border-radius: 20px;
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 2px 7px;
    margin-top: 5px;
    white-space: nowrap;
    -webkit-text-fill-color: #7c4dbd;
    text-shadow: none;
}

.sup-time {
    font-weight: 300;
}

.say-thank {
    text-align: center;
    margin: 4rem 0 16px;
    font-weight: 100;
    animation: neonRGB 4s linear infinite;
}

@keyframes neonRGB {
    0% {
        color: #ff0055;
        text-shadow: 0 0 8px #ff0055, 0 0 20px #ff0055;
    }

    50% {
        color: #00ff88;
        text-shadow: 0 0 8px #00ff88, 0 0 20px #00ff88;
    }

    66% {
        color: #00cfff;
        text-shadow: 0 0 8px #00cfff, 0 0 20px #00cfff;
    }

    83% {
        color: #cc00ff;
        text-shadow: 0 0 8px #cc00ff, 0 0 20px #cc00ff;
    }

    100% {
        color: #ff0055;
        text-shadow: 0 0 8px #ff0055, 0 0 20px #ff0055;
    }
}

.viz-canvas {
    display: block;
    width: 100%;
    max-width: 250px;
    height: 30px;
    border-radius: 12px;
    margin: 0 auto 12px;
}

.title {
    opacity: 0.8;
    font-weight: bold;
}

.heart {
    position: absolute;
    top: calc(50% - 25px);
    left: calc(50% - 25px);
    width: 50px;
    transform-origin: 50% 50%;
    opacity: 0.8;
    animation: heartBeat 1s ease-in-out infinite;
}

#overlay {
    position: fixed;
    z-index: 99999;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.92);
    transition: opacity 0.8s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#progress {
    height: 2px;
    background: linear-gradient(to right, #CF2D24, #CF2A95);
    position: absolute;
    width: 0;
    top: 50%;
    left: 0;
    transition: width 0.3s ease;
    border-radius: 2px;
}

#progstat {
    font-size: 0.7em;
    letter-spacing: 3px;
    position: absolute;
    top: 50%;
    margin-top: -40px;
    width: 100%;
    text-align: center;
    color: #fff;
}

#getInBtn {
    display: none;
    margin-top: 30px;
    position: absolute;
    top: 55%;
    background: transparent;
    border: 1.5px solid rgba(255, 150, 180, 0.7);
    color: #ffb3cc;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    padding: 12px 36px;
    border-radius: 40px;
    cursor: pointer;
    transition: background 0.3s, color 0.3s, transform 0.2s;
    animation: pulseBtn 1.6s ease-in-out infinite;
}

#getInBtn:hover {
    background: rgba(255, 150, 180, 0.15);
    color: #fff;
    transform: scale(1.05);
}

.get-in-heart {
    color: #ff6b9d;
    margin-right: 6px;
    font-size: 1.1em;
}

@keyframes pulseBtn {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(255, 150, 180, 0.4);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(255, 150, 180, 0);
    }
}


#muteBtn {
    position: fixed;
    bottom: 16px;
    left: 16px;
    z-index: 9998;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    border: 1.5px solid rgba(200, 100, 150, 0.4);
    color: #d63e7a;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.15s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

#muteBtn:hover {
    background: #fff;
    transform: scale(1.1);
}

video {
    width: 100%;
    height: auto;
}

.modal-content {
    border-radius: 10px;
    background-color: #FFC0CB;
}

@keyframes heartBeat {
    0% {
        transform: scale(0.9);
    }

    45% {
        transform: scale(1.1);
    }

    70% {
        transform: scale(0.9);
    }

    100% {
        transform: scale(0.9);
    }
}

@media (max-width: 997px) {
    body {
        background-image: url(./img/sp_bg_1.JPEG);
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }

    .time h2 {
        font-size: 30px;
    }

    .box {
        width: 90%;
        margin-bottom: 2rem;
    }

    .title {
        margin: 10px 0 5px;
        font-size: 18px;
    }

    .about {
        flex-direction: column;
        padding: 0;
        margin-bottom: 0px;
    }

    .info {
        flex-direction: column;
    }

    .avatar {
        margin-bottom: 0.5rem;
    }

    .info p {
        text-align: center;
        margin: 10px 0 0 0;
        font-size: 13px;
    }

    .info:last-child .avatar {
        order: 0;
    }

    .heart {
        position: relative;
        margin: 1.4rem 0;
    }

    .say-thank {
        margin-top: 2rem;
    }

    .ymd-cards {
        gap: 6px;
    }

    .ymd-card {
        width: 60px;
        height: 68px;
        border-radius: 12px;
    }

    .ymd-card span:first-child {
        font-size: 1.6rem;
    }

    .ymd-label {
        font-size: 0.5rem;
        padding: 2px 5px;
    }
}

#englishBtn {
    position: fixed;
    bottom: 16px;
    right: 16px;
    z-index: 999;
    background: #ffffff;
    color: #ff6cab;
    border: 2px solid #ff9ecb;
    font-size: 16px;
    padding: 10px 16px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.25s;
}

@keyframes petals-fall {
    0% {
        top: -10%
    }

    100% {
        top: 110%
    }
}

@keyframes petals-shake {
    0% {
        transform: translateX(0) rotate(0deg)
    }

    25% {
        transform: translateX(50px) rotate(120deg)
    }

    50% {
        transform: translateX(15px) rotate(240deg)
    }

    75% {
        transform: translateX(70px) rotate(300deg)
    }

    100% {
        transform: translateX(0) rotate(360deg)
    }
}

.petal {
    position: fixed;
    top: -10%;
    z-index: 9999;
    user-select: none;
    cursor: default;
    width: 22px;
    height: 22px;
    animation-name: petals-fall, petals-shake;
    animation-duration: 7s, 4s;
    animation-timing-function: linear, ease-in-out;
    animation-iteration-count: infinite, infinite;
    opacity: 0.85;
}

.petal:nth-of-type(1) {
    left: 1%;
    animation-delay: 0s, 0s
}

.petal:nth-of-type(2) {
    left: 10%;
    animation-delay: 1.5s, 1s;
    width: 16px;
    height: 16px
}

.petal:nth-of-type(3) {
    left: 20%;
    animation-delay: 5s, .5s;
    width: 20px;
    height: 20px
}

.petal:nth-of-type(4) {
    left: 30%;
    animation-delay: 3s, 2s
}

.petal:nth-of-type(5) {
    left: 40%;
    animation-delay: 2s, 1.5s;
    width: 18px;
    height: 18px
}

.petal:nth-of-type(6) {
    left: 50%;
    animation-delay: 7s, 3s;
    width: 24px;
    height: 24px
}

.petal:nth-of-type(7) {
    left: 60%;
    animation-delay: 4s, 2s
}

.petal:nth-of-type(8) {
    left: 70%;
    animation-delay: 2s, 1s;
    width: 16px;
    height: 16px
}

.petal:nth-of-type(9) {
    left: 80%;
    animation-delay: 1s, 0s;
    width: 20px;
    height: 20px
}

.petal:nth-of-type(10) {
    left: 90%;
    animation-delay: 3.5s, 1.5s
}

.petal:nth-of-type(11) {
    left: 25%;
    animation-delay: 1s, 0.5s;
    width: 18px;
    height: 18px
}

.petal:nth-of-type(12) {
    left: 65%;
    animation-delay: 5s, 2.5s;
    width: 22px;
    height: 22px
}