@font-face {
    font-family: title;
    src: url(resource/font/title.otf);
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: subtitle;
    src: url(resource/font/subtitle.ttf);
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: text1;
    src: url(resource/font/card.ttf);
    font-weight: normal;
    font-style: normal;
}

html{
    scroll-behavior: smooth;
}

body{
    overflow: hidden;
}

a{
    color: #601c8c;
}

/* ---------------------kontener--------------------- */
.container{
    max-width: 100%;
    width: 100vw;
    height: 1000vh;
}

.intro{
    display: flex;
    justify-content: center;
}

.title{
    position: absolute;
    height: fit-content;
    margin-top: 2rem;
}

.text{
    font-size: 75px;
    font-family: title;
    color: rgb(233, 196, 128);
}

.subtext{
    font-size: 15px;
    font-family: subtitle;
    text-align: right;
    margin-top: -5.8rem;
    margin-right: -2.9rem;
    rotate: 15deg;
    color: rgb(233, 196, 128);
    /* text-decoration: underline; */
    font-weight: 200;
}

.dino1{
    z-index: 1;
    margin-top: 3rem;
    margin-left: 2rem;
    display: flex;
    justify-content: center;
}

.dino1 img{
    width: 300px;
    height: 370px;
}

.opening{
    margin-top: -2.5rem;
    display: flex;
    justify-content: center;
}

.opening p{
    width: 60rem;
    text-align: center;
    color: rgb(228, 164, 45);
    font-size: 18px;
    font-family: 'Comic Sans MS', 'Comic Sans', cursive;
}

.card-container {
    perspective: 1000px; /* Add depth for 3D effect */
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20rem;
}

.tutor-container{
    margin-left: -50rem;
    position: absolute;
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.dino-card{
    width: 300px;
    height: 300px;
    margin-left: 3.5rem;
    margin-top: -8rem;
}

.tutor{
    text-align: center;
    font-family: 'Comic Sans MS', 'Comic Sans', cursive;
    font-size: 20px;
    margin-top: 1rem;
    color: #601c8c;
}

.card {
    width: 300px;
    height: 400px;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateY(0deg);
    transition: transform 0.6s;
}

.card:hover {
    transform: rotateY(180deg); /* Flip the card */
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden; /* Prevent back content from showing */
}

.card-front {
    background-color: #484454; /* Card front color */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: white;
    font-size: 24px;
    border: 1px solid #484454;
    border-radius: 20px;
}

.cake-card{
    width: 150px;
    height: 150px;
    margin-top: -1rem;
}

.card-back {
    background-color: #f5b70c; /* Card back color */
    display: flex;
    justify-content: center;
    align-items: center;
    color: #601c8c;
    font-size: 18px;
    transform: rotateY(180deg); /* Initially hide the back of the card */
    border: 1px solid #f5b70c;
    border-radius: 20px;
}

.card-back h3{
    font-size: 15px;
    text-align: center;
    font-family: text1;
    width: 15rem;
}

.card-next{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100vw;
    max-width: 100%;
    position: absolute;
    margin-top: 2rem;
    z-index: 10;
}

.card-next h2{
    font-size: 50px;
    font-family: text1;
    color: #f5b70c;
}

.galeri{
    margin-top: 40rem;
    max-width: 100%;
    width: 100vw;
}

.gal1{
    display: flex;
    perspective: 1000px; /* Add depth for 3D effect */
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20rem;
}

.gal1 img{
    width: 150px;
    height: 250px;
}

.img1{
    width: 150px;
    height: 250px;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateY(0deg);
    transition: transform 0.6s;
    rotate: -20deg;
}

.img1:hover {
    transform: rotateY(180deg); /* Flip the card */
}

.img1 img{
    border: 1px solid white;
    border-radius: 20px;
}

.source1, .back1{
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden; 
}

.back1{
    background-color: #f5b70c; /* Card back color */
    display: flex;
    justify-content: center;
    align-items: center;
    color: #601c8c;
    font-size: 18px;
    transform: rotateY(180deg); /* Initially hide the back of the card */
    border: 1px solid #ffffff;
    border-radius: 20px;
}

.img2{
    width: 150px;
    height: 250px;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateY(0deg);
    transition: transform 0.6s;
    rotate: 20deg;
}

.img2:hover {
    transform: rotateY(180deg); /* Flip the card */
}

.img2 img{
    border: 1px solid white;
    border-radius: 20px;
}

.source2, .back2{
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden; 
}

.back2{
    background-color: #f5b70c; /* Card back color */
    display: flex;
    align-items: center;
    color: #601c8c;
    font-size: 18px;
    transform: rotateY(180deg); /* Initially hide the back of the card */
    border: 1px solid #ffffff;
    border-radius: 20px;
}

.gal1 h2{
    font-size: 30px;
    font-family: text1;
    text-align: center;
}

.text-galeri{
    display: flex;
    justify-content: center;
    margin-top: -4rem;
    font-size: 70px;
    font-family: text1;
    color: #601c8c;
    text-align: center;
}
.text-galeri p{
    font-size: 15px;
}

.galeri-next{
    font-size: 20px;
    font-family: text1;
    color: #f5b70c;
    margin-top: 10px;
}

.komen{
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20rem;
}

.komen iframe{
    border: 5px solid #601c8c;
    border-radius: 20px;
}

.komen h2{
    font-size: 30px;
    margin-left: 3rem;
    font-family: text1;
    text-align: center;
    color: #601c8c;
}

.komen p{
    margin-top: 1rem;
    color: #f5b70c;
    position: relative;
    z-index: 10;
}

.dino-joget{
    margin-top: -5rem;
}

.hadiah{
    display: flex;
    justify-content: center;
    font-size: 20px;
    color: #601c8c;
    margin-top: 25rem;
}

.hadiah h2{
    text-align: center;
    font-family: text1;
}

.hadiah p{
    margin-top: 1rem;
    color: #f5b70c;
}

.pdf{
    margin-top: 1rem;
    width: 250px;
}

.pdf-next{
    font-size: 30px;
    position: relative;
    z-index: 10;
}

.countdown-container {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    margin-top: 25rem;
}

.countdown-container h1{
    font-size: 20px;
    margin-top: 6px;
    font-family: 'Comic Sans MS', 'Comic Sans', cursive;
}

#countdown {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-family: 'Comic Sans MS', 'Comic Sans', cursive;
}

#countdown div {
    font-size: 20px;
    text-align: center;
    font-family: 'Comic Sans MS', 'Comic Sans', cursive;
}

#countdown span {
    font-weight: bold;
    font-size: 28px;
    color: #ff6f61;
    font-family: 'Comic Sans MS', 'Comic Sans', cursive;
}

.final{
    display: flex;
    justify-content: center;
}

.final-text{
    margin-top: 5rem;
    height: fit-content;
    font-family: text1;
    color: #601c8c;
}

/* ---------------------Kontener 1--------------------- */



/* ---------------------Legger--------------------- */
.legger{
    position: sticky;
    bottom: 0;
    max-width: 100%;
    width: 100vw;  
    display: flex;
    justify-content: end;
}

.text-music{
    text-align: center;
    margin-right: 1rem;
    margin-top: rem;
    font-family:'Comic Sans MS', 'Comic Sans', cursive;
}

.text-music.fade{
    animation: fadeOut 2s ease-in-out forwards;
}

.text-music.trans{
    display: none;
}

.legger button{
    border: 1px solid wheat;
    border-radius: 100rem;
    background: wheat;
    padding: 10px 10px 10px 0 ;
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-bottom: 2rem;
    margin-right: 5rem;
}

.legger img{
    width: 25px;
    height: 25px;   
}

/* ---------------------Legger--------------------- */

@keyframes spin {
    from {
      transform: rotate(0deg);
    }
    to {
      transform: rotate(360deg);
    }
}

@keyframes fadeOut {
    from {
      opacity: 1; /* Awalnya elemen sepenuhnya terlihat */
    }
    to {
      opacity: 0; /* Elemen menjadi transparan sepenuhnya */
    }
}

/* @media (max-width: 768px) {
    .container {
        
    }
    .menu {
        display: block;
    }
} */
