@import url('https://fonts.googleapis.com/css2?family=Dancing+Script&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@200&display=swap');

html{
    background-image: url('../img/bg.png') !important;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-position: center center;
    background-attachment: fixed;
}

body{
    margin: 0 auto;
    padding: 0 auto;
    background-color: transparent;
}

.card{
    width: 25%;
    height: 100%;
    background-color: transparent;
    position: absolute;
    left:50%;
    transform: translateX(-50%);
}

.image-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
  }
  
  .image {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    top: 0;
    left: 0;
    opacity: 0;
    animation: fadeLoop 15s infinite;
    animation: fadeZoom 15s infinite ease-in-out;
  }
  
  .image1 {
    animation-delay: 0s;
  }
  
  .image2 {
    animation-delay: 3s;
  }
  
  @keyframes fadeLoop {
    0%, 100% {
      opacity: 1;
    }
    50% {
      opacity: 0;
    }
  }

  @keyframes fadeZoom {
    0% {
      opacity: 1;
      transform: scale(1);
    }
    25% {
      opacity: 1;
      transform: scale(1.05);
    }
    50% {
      opacity: 0;
      transform: scale(1.1);
    }
    75% {
      opacity: 0;
      transform: scale(1.05);
    }
    100% {
      opacity: 1;
      transform: scale(1);
    }
  }

#title{
    font-family: Dancing Script;
    color: white;
    font-size: 5vh;
    font-weight: bold;
    position: absolute;
    top: 15%;
    right: 07%;
}

#desc{
    font-family: Raleway;
    color: white;
    font-weight: bold;
    font-size: 3vh;
    position: absolute;
    top: 20%;
    right: 12%;
}

#playbutton{
    width: 40px;
    position: absolute;
    top: 03%;
    right: 05%;
}

#logo{
    width: 100%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 50%;
}

#arrowdown{
    width: 07%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 45%;
}

.information{
    text-align: center;
    padding-top: 15px;
    padding-bottom: 40px;
    background-color: transparent;
}

.subtitle{
    font-family: Dancing Script;
    font-size: 3vh;
    font-weight: bold;
    text-align: center;
    color: #de8f7f;
}

.date{
    width: 60px;
    height: 60px;
    background-color: #de8f7f;
    color: white;
    border-radius: 50%;
    font-family: montserrat;
    font-weight: bold;
    display: table-cell;
    vertical-align: middle;
    text-align: center;
}

.datespacer{
    margin-left: 10px;
    margin-right: 10px
}

#days, #hours, #minutes, #seconds{
    display: inline-block;
}

.mydate{
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 25px;
}

.datetxt{
    font-family: montserrat; 
    font-size: 1.4vh; 
    color: #de8f7f;
    margin-top: 10px;
}

#church{
    width: 70px;
    margin-top: 25px;
    margin-bottom: -10px;
}

h1, h2, h3, h4, h5{
    font-family: montserrat;
    font-weight: bold;
    color: #de8f7f;
}

.mybutton{
    text-decoration: none;
    background-color: #de8f7f;
    width: 90%;
    height: 35px;
    color: white;
    font-size: 2vh;
    border: none;
    font-family: montserrat;
    margin-top: 25px;
    cursor: pointer;
    border-radius: 05px;
}

#cups{
    width: 60px;
    margin-top: 25px;
}

#dresscode{
    width: 60px;
    margin-top: 25px;
}

.photosquare{
    margin-top: 25px;
    height: 290px;
    background-color: #de8f7f;
}

#camera{
    width: 70px;
    margin-top: 25px;
}

.mybutton2{
    text-decoration: none;
    background-color: transparent;
    border: none;
    width: 75%;
    height: 40px;
    color: white;
    font-size: 3vh;
    font-family: montserrat;
    margin-top: 25px;
    cursor: default;
}

.smallpic{
    width: 40%;
    height: 150px;
    object-fit: cover;
    margin: 05px;
}

.bigpic{
    width: 83%;
    height: 200px;
    object-fit: cover;
}

#gift{
    width: 60px;
    margin-top: 25px;
}

.overlay{
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    position: fixed;
    top: 0;
    left: 0;
}

.popup{
    width: 250px;
    height: 170px;
    border-radius: 05px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    text-align: center;
}

.fadeInTop{
    -webkit-animation: fadeInTop 1.2s both;
    -moz-animation: fadeInTop 1.2s both;
    -o-animation: fadeInTop 1.2s both;
    animation: fadeInTop 1.2s both;
  }
  
  @-webkit-keyframes fadeInTop{
    0%{
      opacity: 0;
      -webkit-transform: translateY(-50px);
    }
    100%{
      opacity: 1;
      -webkit-transform: translateY(0);
    }
  }
  @-moz-keyframes fadeInTop{
    0%{
      opacity: 0;
      -webkit-transform: translateY(-50px);
    }
    100%{
      opacity: 1;
      -webkit-transform: translateY(0);
    }
  }
  @-o-keyframes fadeInTop{
    0%{
      opacity: 0;
      -webkit-transform: translateY(-50px);
    }
    100%{
      opacity: 1;
      -webkit-transform: translateY(0);
    }
  }
  @keyframes fadeInTop{
    0%{
      opacity: 0;
      -webkit-transform: translateY(-50px);
    }
    100%{
      opacity: 1;
      -webkit-transform: translateY(0);
    }
  }

  /* For Mobile */
@media screen and (max-width: 540px) {
    .card {
        width: 100% !important;
        height: 100% !important;
        border-radius: 0;
    }

    .header{
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        margin: 0;
        padding: 0;
    }

    #logo{
        top: 75% !important;
    }

    #arrowdown{
        left: 50% !important;
        transform: translateX(-27%) !important;
        top: 95% !important;
    }

    #information{
        top: 35% !important;
    }
}

/* For Tablets */
@media screen and (min-width: 540px) and (max-width: 780px) {
    .card {
        width: 100% !important;
        height: 100% !important;
        border-radius: 0;
    }

    .header{
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        margin: 0;
        padding: 0;
    }

    #arrowdown{
        left: 50% !important;
        transform: translateX(-27%) !important;
        top: 95% !important;
    }
}
  

