body {
    background-color: #f9e7e7 !important;
}

body, html {
    overflow-x: hidden;
}

/** home */
.home {
    position: relative;
    background-image: url("images/BAM_0009.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 95vh;
    min-width: 100%;
}

.home::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(144, 144, 144, 0.4);
    z-index: 1;
}

.home * {
    position: relative;
    z-index: 2;
}

@font-face {
    font-family: 'Kapakana';
    src: url("fonts/Kapakana[wght].ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

.name {
    display: flex;
    justify-content: center;
    text-align: center;
    font-family: 'Kapakana', sans-serif;
    color: white;
    font-size: 8vw;
    text-shadow: 3px 3px 0 #909090;
    top: 100px;
}

.card-home {
    background-color: rgba(255, 255, 255, 0.5) !important;
    max-width: 50% !important;
    padding: 20px;
    margin: 0 auto;
    border-radius: 14px;
    text-align: center;
    float: left;
    margin-left: 100px;
    margin-top: 30vh;
}

.card-home p {
    font-family: 'Times New Roman', Times, serif;
    color: #4F4E4E;
    font-size: 1.2rem;
}

.btn {
    background-color: #FE828C !important;
    padding: 10px 20px;
    border-radius: 30px;
}

/** count-down */
.title{
    display: flex;
    justify-content: center;
    text-align: center;
    font-family: 'Kapakana', sans-serif;
    color: #4F4E4E;
    font-size: 98px;
    margin-top: 50px;
}

.save-the-date {
    margin-top: 150px;
}

.countdown{
    text-align: center;
    font-family:'Times New Roman', Times, serif;
    color: #D4AF37;
    font-size: 128px;
}

/** RSVP */
.RSVP {
    display: flex;
    align-items: center;
    justify-content: center;
}
.RSVP-bg {
    position: relative;
    background-image: url("images/BAM_9532.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 70%;
    width: 75%;
}

.RSVP-bg::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 192, 203, 0.5);
    z-index: 1;
}

.RSVP-bg * {
    position: relative;
    z-index: 2;
}

.RSVP-form {
    background-color: rgba(255, 255, 255, 0.5) !important;
    width: 70%;
    padding: 50px;
    margin: 50px;
}

.sub {
    text-align: center;
    font-family: 'Times New Roman', Times, serif;
    color: #4F4E4E;
    font-size: 24px;
}

label, .form-check-input {
    font-size: 18px;
    color: #4F4E4E;
}

input, select {
    border-color: #4F4E4E !important;
}

.form-check-input:checked {
    background-color: #FE828C !important;
    border-color:  #FE828C !important;
}

/** OLS */
.our-love-story {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.story-title {
    font-size: 24px;
}
.story-sub {
    font-size: 12px;
    font-weight:bold;
}
.story {
    font-size: 16px;
    width: 100%;
}
.ols-bg {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    border: 120px solid;
    border-image: url("images/Layer 11.jpg");
    border-image-slice: 600;
    background-color: white;
    width: 70%;
    height: 70%;
    margin: 0;
}

.ols-content {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    align-items: center;
    width: 100%;
    margin: 0;
}
.top, .bottom {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    align-items: center;    
}
.story1, .story2 {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.top img, .bottom img {
    width: 100%;
    height: 100%;
    border-radius: 14px;
}

.text {
    font-family: 'Times New Roman', Times, serif;
    color: #4F4E4E;
}

.sub-title {
    font-family: 'Kapakana', sans-serif;
    font-size: 48px;
}

/** the wedding */
.timeline{
    position: relative;
    max-width: 1200px;
    margin: 10px auto;
}

.content {
    padding: 50px 50px;
    position: relative;
    width: 50%;
}

.content-animate {
    animation: movedown 1s linear forwards;
    opacity: 0;
}

@keyframes movedown {
    0% {
        opacity: 1;
        transform: translateY(-30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0px)
    }
}

.content:nth-child(1) {
    animation-delay: 0s;
}
.content:nth-child(2) {
    animation-delay: 1s;
}
.content:nth-child(3) {
    animation-delay: 2s;
}
.content:nth-child(4) {
    animation-delay: 3s;
}

.text-box{
    padding: 20px 30px;
    background: #fff;
    position: relative;
    border-radius: 6px;
    color:#4F4E4E;
    text-align: center;
}

.text-box h2 {
    font-family: 'Kapakana', sans-serif;
    font-weight: 600;
    font-size: 48px;
}
.text-box small, .text-box a {
    font-family: 'Times New Roman', Times, serif;
    font-size: 16px;
    color:#4F4E4E !important;
    text-decoration: none !important;
}

.left-container {
    left: 0;
}

.right-container {
    left: 50%;
}

.content .circle {
    position: absolute;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    right: -63px;
    top: 0;
    z-index: 10;
    background-color: #FE828C;
}

.right-container .circle {
    left: -67px;
}
.timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    height: 100%;
    background: #4F4E4E;
    top: 0;
    left: 50%;
    margin-left: -3px;
    z-index: -1;
}

.line-animate::after {
    animation: moveline 4s linear forwards;
}

@keyframes moveline {
    0%{
        height: 0;
    }

    100% {
        height: 100%;
    }
}

.invitation-section{
    background-color: #fff;
    display: grid;
    grid-template-columns: auto auto;
    gap: 20px;
}
.invitation img {
    width: 70%;
    height: 70%;
    border-radius: 6px;
}
.invitation{
    display: flex;
    justify-content: center;
    align-items: center;
}
.card-5 {
    grid-column: span 2;
}

/** Gallery */
.images{
    display: grid;
    grid-template-columns: auto auto auto auto;
    
    gap: 6px;
    margin: 0 5% 0 5%;
}
.gallery {
    margin-right: 200px;
    margin-left: 200px;
}
.image img {
    border-radius: 14px;
    width: 100%;
    height: 100%;
}

.image1, .image10 {
    grid-column: span 3;
    grid-row: span 3;
}
.image2, .image3, .image4, .image11, .image12, .image13 {
    grid-column: span 1;
    grid-row: span 1;
}
.image5, .image9  {
    grid-column: span 4;
    grid-row: span 1;
}
.image7 {
    grid-column: span 3;
    grid-row: span 2;
}
.image6, .image8 {
    grid-column: span 1;
    grid-row: span 1;
}

.image14, .image15{
    grid-column: span 2;
}

/** Things to do */
.todo-text {
    font-size: 32px;
    margin-top: 200px;
    margin-bottom: 100px;
}
.container {
    margin: 200px 0 200px 0;
}
.container img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
}
.title-td{
    display: flex;
    justify-content: center;
    text-align: center;
    font-family: 'Kapakana', sans-serif;
    color: #4F4E4E;
    font-size: 98px;
    margin: 0;
}
.description {
    font-size: 24px;
}

/** FAQs */
details {
    position: relative;
    padding-right: 20px;
    cursor: pointer;
}
summary {
    margin-right: 20px;
    display: flex;
    justify-content: space-around; 
    list-style: none;
}

details summary::after {
    content: '\005E';
    font-size: 50px;
    transition: transform 0.3s;
    display: inline-block;
    margin-left: 10px;
    margin-bottom: 0;
    color: #4F4E4E;
}

details[open] summary::after {
    transform: rotate(180deg);  
}

/** Footer */
.footer hr {
    border: 0;
    border-top: 3px solid #4F4E4E;
    margin-bottom: 50px;
}

@media (max-width: 576px) {
    /* home */
    .name {
        font-size: 68px;
        top: 230px;
    }

    .card-home {
        width: 100%;
        padding: 15px;
        margin-left: 10px;
        margin-top: 100%;
    }
    .card-home p {
        font-size: 0.6rem;
    }

    .btn {
        font-size: 0.6rem;
        padding: 8px 16px;
    }
    /* countdown */
    .title{
        font-size: 68px;
        margin-top: 20px;
    }
    .save-the-date {
        margin: 0;
    }
    .countdown {
        font-size: 48px;
    }
    /* rsvp */
    .RSVP-bg {
        margin: 5px;
        max-height: 500px;
        margin: 20px !important;
    }
    .sub {
        font-size: 16px;
    }
    label, .form-check-input {
        font-size: 12px;
    }
    .RSVP-form{
        margin: 10px;
        padding: 10px;
    }
    /* our love story */
    .ols-bg {
        border: 40px solid;
        border-image: url("images/Layer 11.jpg");
        border-image-slice: 600;
        height: 80vh;
        width: 90%;
        padding: 0;
    }
    .ols-content {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 0;
    }
    .ols-content img {
        width: 100%;
        height: 80%;
    }
    .story-title {
        font-size: 12px;
    }
    .story-sub {
        font-size: 10px;
        font-weight:bold;
    }
    .story {
        font-size: 6.5px;
        width: 100%;
    }
    /* wedding details */
    .content .circle{
        width: 12px;
        height: 12px;
        right: -14px;
    }
    .right-container .circle {
        left: -16px;
    }
    .timeline::after {
        width: 1px;
    }
    .left-container {
        padding: 5px 10px 5px 5px;
    }
    .right-container {
        padding: 5px 5px 5px 8px;
    }
    .text-box{ 
        padding: 5px 6px;
    }
    .text-box h2 {
        font-weight: 600;
        font-size: 16px;
    }
    .text-box small {
        font-size: 8px;
    }
    
    .gallery{
        margin-left: 10px;
        margin-right: 10px;
    }

    /* to-do */
    .todo-text {
        font-size: 18px;
        margin-top: 50px;
        margin-bottom: 80px;
    }
    .container {
        margin: 20px 0 20px 0;
    }
    .container img {
        width: 120px;
        height: 120px;
    }
    .title-td{
        font-size: 32px;
    }
    .description{
        font-size: 12px;
    }
}

@media (min-width: 577px) and (max-width: 834px) {
.name {
    font-size: 64px;
    top: 80px;
}

.card-home {
    width: 30%;
    margin-top: 70px;
}
.card-home p {
    font-size: 0.7rem;
}
.btn {
    font-size: 0.3rem;
    padding: 8px 16px;
}

 /* countdown */
 .title{
    font-size: 68px;
}
.countdown {
        font-size: 48px;
        margin-bottom: 20px;
    }
.save-the-date {
    margin: 0;
}

/* ols */
.ols-bg {
    border: 40px solid;
    border-image: url("images/Layer 11.jpg");
    border-image-slice: 600;
    height: 100%;
    width: 90%;
    padding: 0;
}
.ols-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0;
}
.story-title {
    font-size: 24px;
}
.story-sub {
    font-size: 12px;
    font-weight:bold;
}
.story {
    font-size: 16px;
    width: 100%;
}
}

/* For large devices (desktops) */
@media (min-width: 835px) {
.name {
    font-size: 96px;
}

.card-home {
    width: 30%;
}
}
