/* style.css */

body {
    margin: 0;
    padding: 0;
    font-family: "Lora", sans-serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
    background-color: #f8f6de;
    text-align: center;
    scroll-behavior: smooth; /* Enables smooth scrolling */
}

.program {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 50px; /* To accommodate fixed header */
    background-color: #ffffff;
}

.photo {
    max-width: 1080px;
    height: auto;
    display: inline-block;
    vertical-align: middle;
}

.program h1 {
    font-size: 3.5em;
    margin: 10px;
    color: #6b4e71;
}

.program p {
    font-size: 1.2em;
    color: #444;
}

.details {
    margin-top: 20px;
    padding: 20px;
    text-align: center;
}

.details h2 {
    font-size: 2em;
    color: #6b4e71;
}

.details p {
    font-size: 1.2em;
    color: #444;
    margin: 10px 0;
}

.nav-wedding {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 1080px;
    height: 55px;
    margin: 0;
    justify-content: space-around;
    align-items: center;
    background-color: #fff;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.2);
    font-family: "Prompt", sans-serif;
    overflow: hidden;
    z-index: 1000;
}

.nav__link {
    flex: 1;
    text-align: center;
    min-width: 50px;
    font-size: 12px;
    color: #333;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.1s ease-in-out;
    -webkit-tap-highlight-color: transparent;
}

.nav__link:hover {
    background-color: #eee;
}

.icon {
    font-weight: 600;
    font-size: 4.1vw;
    margin-top: 5%;
    margin-bottom: 0%;
}

.icon-detail {
    font-weight: 400;
    font-size: 3.7vw;
    margin-top: 0%;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    margin: 0% auto;
    width: 90%;
    max-width: 1080px;
}

.gallery-grid img {
    width: 100%;
    border-radius: 10px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s;
}

.gallery-grid img:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80%;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -30%;
    color: white;
    font-weight: bold;
    font-size: 30px;
    transition: 0.3s;
    transform: translateY(-50%);
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.responsive-img {
    width: 100%; /* Make the image responsive */
    height: auto; /* Maintain aspect ratio */
    display: block; /* Remove extra space below the image */
}

.map {
    width: 70%;
    height: 480px;
    border: 0;
}

.location-details {
    font-weight: 300;
    text-align: left;
    margin: 30px 20px;
    margin-left: 10%;
    margin-right: 10%;
}

.location-title {
    margin-bottom: 20px;
    font-weight: 500;
    font-size: 20px;
}

.location-address {
    margin-bottom: 15px;
    margin-left: 10%;
    margin-right: 10%;
    font-size: 16px;
}

.location-button-wrapper {
    text-align: center;
}

.button-mobile-wedding {
    color: #333;
    border: 2px solid #333;
    cursor: pointer;
    font-weight: 500;
    font-size: 18px;
    text-decoration: none;
    border-radius: 5px;
    text-align: center;
    padding: 5px 0;
    width: 65%;
    display: inline-block;
    margin: 30px 0;
    transition: background-color 0.3s ease;
}

.button-mobile-wedding:hover {
    background-color: #f0f0f0;
}

/* Timer */

.time-container{
    height: 100vh;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5),
    rgba(0, 0, 0, 0.5)), url(images/Special2-1463x2048.jpg);
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    padding: 20px;
    box-sizing: border-box;
}

.time-container h1{
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: 20px;
}

.timebox{
    display: flex;
    gap: 20px;
    flex-wrap: nowrap;
    justify-content: center;
}

.time{
    text-align: center;
    margin: 10px;
}

.time h2{
    font-size: 2rem;
    font-weight: 300;
    margin: 0;
}

.time p {
    font-size: 1rem; /* Set a font size for the labels */
    margin: 0;
}

/* Optional: Media Queries for Responsiveness */
@media (max-width: 768px) {
    .time-container h1 {
        font-size: 2rem; /* Further reduce heading size on small screens */
    }

    .time h2 {
        font-size: 3rem; /* Further reduce timer digits */
    }

    .timebox {
        gap: 15px; /* Reduce gap on small screens */
    }

    .time p {
        font-size: 1rem; /* Smaller labels */
    }
}

/* QR Code */
.qrcode {
    background-color: #d66a65;
    width: 300px;
    margin: 50px auto;
    padding: 20px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    color: #ffffff;
}

.qrcode #lineoa {
    color: #000;
}

/* Button styling */
.qrcode-popup-btn {
    margin-top: 10px;
    padding: 10px 20px;
    background-color: #ffdb6e;
    color: rgb(0, 0, 0);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.qrcode-popup-btn:hover {
    background-color: #afc1db;
}

/* Modal styling */
.qrcode-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.qrcode-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border: 3px solid #c6b06d;
    border-radius: 8px;
    padding: 20px;
    max-width: 90%;
    max-height: 90%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.qrcode-modal-content img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
}

/* Close button styling */
.qrcode-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff5c5c;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 16px;
    cursor: pointer;
}

.qrcode-close-btn:hover {
    background: #d9534f;
}
