
@font-face {
    font-family: 'Vazirmatn';
    src: url('WebFonts/Vazirmatn-Medium.woff2') format('woff2'),
         url('WebFonts/Vazirmatn-Medium.ttf') format('truetype');

    font-weight: normal;
    font-style: normal;
}   




/* Fullscreen overlay */
#intro {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, #ffffff 0%, #f7f3f0 60%, #eae3dc 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  cursor: pointer;
}

/* Soft blur behind content (premium feel) */
#intro::before {
  content: "";
  position: absolute;
  inset: 0;
  backdrop-filter: blur(8px);
}

/* Content */
.intro-content {
  position: relative;
  text-align: center;
}

/* Title */
.intro-title {
  font-size: 2.5rem;
  letter-spacing: 2px;
  margin-bottom: 10px;
  opacity: 1;
}

/* Subtitle */
.intro-sub {
  font-size: 1.2rem;
  opacity: 1;
  animation-delay: 0.5s;
}

/* Enter hint */
.intro-enter {
  margin-top: 30px;
  font-size: 0.9rem;
  opacity: 0.6;
}



















    .pre-enter * {
        animation-play-state: paused !important;
    }

    .entered * {
    animation-play-state: running !important;
    }

    .fade {
        opacity: 0;
        animation: fadeIn100 1.5s ease forwards;
    }

    .fadeY {
        opacity: 0;
        transform: translateY(20px);
        animation: fadeIn100 1.5s ease forwards;
    }


    .fadePoem {
        opacity: 0;
        transform: translateY(20px);
        animation: fadeIn80 1.5s ease forwards;
    }

    .fadeY30 {
        opacity: 0;
        transform: translateY(20px);
        animation: fadeIn30 1.5s ease forwards;
    }

    .fadeX {
        opacity: 0;
        transform: translateX(-20px);
        animation: fadeIn30 1.5s ease forwards;
    }

    
    .fadeTopFlower {
        opacity: 0;
        transform: translateX(-50px);
        animation: fadeIn302 1.5s ease forwards;
    }

    
        
    @keyframes fadeIn302 {
        to {
            opacity: 0.3;
            transform: translateX(-20px);
        }
    }
    @keyframes fadeIn100 {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    
    @keyframes fadeIn80 {
        to {
            opacity: 0.8;
            transform: translateY(0);
        }
    }
    
    @keyframes fadeIn30 {
        to {
            opacity: 0.3;
            transform: translateX(0);
        }
    }

    




    /* timed steps */
    .step1 { animation-delay: 1s; }
    .title-time { animation-delay: 2s; }
    .divider1-time { animation-delay: 2.5s; }
    .poem1-time { animation-delay: 4s; }
    .divider2-time { animation-delay: 6s; }
    .invite1-time { animation-delay: 7s; }
    .invite2-time { animation-delay: 8s; }
    .name1-time { animation-delay: 10s; }
    .and-time { animation-delay: 10.5s; }
    .name3-time { animation-delay: 11s; }
    .divider3-time { animation-delay: 12s; }
    .datetime-time { animation-delay: 12.5s; }
    .address-time { animation-delay: 13s; }
    .moreinfo-time { animation-delay: 13.5s; }
    .thanks-time { animation-delay: 14s; }


    body {
        background: linear-gradient(45deg, #d6d2cb, #c4bfbb);
        background-size: cover;
        font-family: 'Vazirmatn', sans-serif;
        overflow-x: hidden;
        margin: 0;
    }

    .card-wrapper {
        display: flex;
        justify-content: center;
        /*align-items: center;*/
        min-height: 100vh;
        background-image: url("images/fff.png");
    	background-attachment: fixed;
        background-size: contain;
        background-position: center;
        background-repeat: repeat-y;
    }

    .card-container {
        max-width: 500px;
        width: 100%;
        background: #fdfdfc;
        border-bottom-left-radius: 20px;
        border-bottom-right-radius: 20px;
        border-top-left-radius: 45vw;
        border-top-right-radius: 45vw;
        padding: 40px 30px;
        text-align: center;
        position: relative;
        box-shadow: 0 10px 30px rgba(0,0,0,0.08);
        margin: 25px;
        overflow: hidden;
    }

    .card-container::before {
        content: "";
        position: absolute;
        inset: 10px;
        border-radius: 15px;
        border-top-left-radius: 45vw;
        border-top-right-radius: 45vw;
        border: 1px solid #d6cbb2;
        pointer-events: none;
    }

    .card {
        max-width: 500px;
        width: 100%;
    }

    /* Decorative border effect */
    .card::before {
        background-image: url("images/bg12.jpg");
        background-size: cover;
		background-position: center;
        opacity: 0.25;
        content: "";
        position: absolute;
        inset: 0px;
        border-radius: 15px;
        border-top-left-radius: 45vw;
        border-top-right-radius: 45vw;
        pointer-events: none;
    }


    .title-small {
        font-size: 12px;
        letter-spacing: 2px;
        color: #888;
        margin-bottom: 10px;
    }

    .title-main {
        color: #b79b5f;
    }

    .title-svg{
        height: 50px;
    }
    .title-invite {
        display: flex;
        flex-direction: column;
        margin-top: 15px;
        font-size: 20px;
        font-weight: 600;
        color: #b79b5f;        -webkit-filter: drop-shadow(1px 1px 1px rgba(160, 131, 1, 0.3));
        filter: drop-shadow(1px 1px 1px rgba(160, 131, 1, 0.3));
    }

    .svg-invite-1{
        height: auto;
        min-height: 20px;
        max-height: 35px;
        margin-left: 30%;
        margin-right: 30%;
    }
    .svg-invite-2{
        height: auto;
        min-height: 10px;
        max-height: 80px;
    }

    .divider {
        width: 100px;
        height: 5px;
        background: #b79b5f;
        margin: 0 auto 25px;
    }

    .divider2 {
        width: 200px;
        height: 5px;
        color: #b79b5f;
        margin: 10px auto 10px auto;
    }

    .poem {
        color: #444;
        margin-top: 40px;
        margin-bottom: 30px;
    }

    .poem-svg{
        color: #444;
        width: 80%;
    }

    .highlight {
        font-weight: 700;
        color: #000;
    }

    .footer {
        margin-top: 20px;
        font-size: 13px;
        color: #777;
    }

    .info-container{
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 10px;
        justify-content: space-around;
        margin-top: 35px;
        font-size: 16px;
        color: #555;
    }

    .datetime{
       display: flex;
        justify-content: center;
        margin-top: 25px;
        color: #555;
        margin: auto;
        max-width: 300px; 
    }

    .dow{
        min-width: 10px;
        width: auto;
        max-width: 100px;
    }

    .date{
        min-width: 20px;
        width: auto;
        max-width: 200px;
        margin-left: 15px;
        margin-right: 15px;
    }
    .time{
        min-width: 10px;
        width: auto;
        max-width: 100px;
    }

    .address-links{
        display: flex !important;
        flex-direction: row-reverse !important;
        align-items: center;
        gap: 20px!important;
        margin-top: 10px!important;
    }

    .icon {
        font-size: 18px;
    }
    
    .footer-left{
        position: fixed;
        background-image: url("images/bottom-left.png");
        background-size: cover;
    
        width: 300px;
        height: 300px;
        bottom: 0px;
        left: 0px;
    }
    
    .footer-right{
        position: fixed;
        background-image: url("images/bottom-right.png");
        background-size: cover;
    
        width: 175px;
        height: 175px;
        bottom: 0px;
        right: 0px;
        z-index: 1;
    }

    .top-left-container {
        position: relative;
        overflow: hidden;
        z-index: 1;
    }

    .top-left{
        position: fixed;
        background-image: url("images/top-left.png");
        background-size: cover;
        opacity: 0.0;
    
        width: 150px;
        height: 150px;
        top: 0px;
        left: 0px;
        transform: translateX(-50px);
    }


    .names{
        display: flex;
        justify-content: center;
        color: #555;
        margin: -10px auto 10px auto;
        max-width: 300px;
    }
    

    .names-new{
        display: flex;
        justify-content: center;
        color: #555;
        margin: -10px auto 10px auto;
        max-width: 300px;
        -webkit-filter: drop-shadow(2px 2px 2px rgba(153, 119, 56, .4));
        filter: drop-shadow(2px 2px 2px rgba(153, 119, 56, 0.4));
    }
    
    

    .svg-names{
        min-width: 100px;
        width: auto;
        height: auto;
        /* max-width: 80%; */
        color: #bd7061;
    }



    .svg-name-1{
        min-width: 50px;
        min-height: 50px;
        width: auto;
        height: auto;
        max-width: 100px;
        max-height: 100px;
        margin-left: 30px;
        color: #a13924;
    }

    .svg-name-2{
        min-width: 10px;
        min-height: 10px;
        width: auto;
        height: auto;
        max-width: 25px;
        max-height: 25px;
        margin-top: 80px;
        color: #a13924;
    }

    .svg-name-3{
        min-width: 50px;
        min-height: 20px;
        height: auto;
        max-height: 45px;
        margin-right: 30px;
        margin-top: 80px;
        color: #a13924;

    }



    .more-info {
        color: #3b82f6;
        cursor: pointer;
        display: inline-block;
        transition: color 0.2s ease;
    }

    .more-info:hover {
        color: #1d4ed8;
        text-decoration: underline;
    }


    .modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }

  .modal.active {
    opacity: 1;
    pointer-events: auto;
  }

  /* Modal content */
  .modal-content {
    background: white;
    padding: 25px 30px;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);

    transform: translateY(20px) scale(0.95);
    transition: all 0.25s ease;
  }

  .modal.active .modal-content {
    transform: translateY(0) scale(1);
  }

    .info {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        margin-top: 35px;
        font-size: 13px;
        gap: 20px;

        color: #555;
    }

    .info div {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }

  .close {
    margin-top: 15px;
    cursor: pointer;
    color: #ef4444;
  }

  .music-player {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 30px;
  padding: 5px 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  z-index: 1;
}

.music-player button {
  border: none;
  background: none;
  font-size: 16px;
  cursor: pointer;
  margin: 0 5px;
}

.music-player button:hover {
  opacity: 0.7;
}