/* Basic reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Merienda', sans-serif;
    background-color: white;
}

.header-container {
    background-color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

/* Carousel container */
.carousel-container {
    width: 100%;
    max-width: 800px;
    overflow: hidden;
    position: relative;
    margin: auto;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    background-color: #d76851;
}

/* Carousel styling */
.carousel {
    display: flex;
    width: 200%;
    animation: slide 30s infinite;
}

.carousel-item {
    width: 50%; /* 100% divided by 8 images */
    display: flex;
    justify-content: center; /* Center the image */
    align-items: center;
}

.carousel img {
    width: 100%;  /* Make image width fit the container */
    height: auto; /* Maintain aspect ratio */
    object-fit: cover; /* Ensures the image covers the area without distortion */
}

/* Animation to slide the images */
@keyframes slide {
    0% { transform: translateX(0%); }
    50% { transform: translateX(-50%); }
    100% { transform: translateX(0%); }
}

.casal-container {
    font-family:'Merienda', sans-serif;
    color: #d76851;
    height: 60px
}

.casal-container .e {
    font-family: 'Mrs Saint Delafield', 'Merienda', sans-serif;
    color: #867d55; 
    font-weight: bold; 
}

.data-container {    
    font-family: 'Merienda', sans-serif;
    color: #867d55; 
    display: flex;
    align-items: center;
}

.data-container .ponto {
    line-height: 1;
    color: #d76851;
    vertical-align: middle;
    position: relative;
}

.countdown-container {    
    width: 100%;
    max-width: 800px;
    display: flex;
    justify-content: center;
    justify-content: space-between;
    text-align: center;
    font-family: 'Merienda', sans-serif;
    color: #fff;
}

/* Countdown boxes */
.countdown-container .item {
    padding: 5px;
    background: #d76851;
    width: 20%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}


/* Labels */
.countdown-container .item:nth-child(2),
.countdown-container .item:nth-child(4) {
    background: #d76751da;
}

.infos-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    max-width: 800px;
}

.info-button {
    font-family: 'Merienda', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #f1f1f1;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    transition: all 0.3s ease;
    width: 200px;
    margin: 10px 20px;
    height: 140px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    border: none; /* Remove default button border */
    cursor: pointer; /* This makes the pointer change to a hand when hovering */
}

.info-button img {
    width: 72px;
    height: 72px;
}

.info-button:hover {
    background-color: #f8c02c;
    color: white;
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.15);
}

.info-button:active {
    transform: scale(0.98);
}

/* Wedding Photos button */
.info-button[href*="photos"] {
    background-color: #E0A0B1;
    color: white;
}

.info-button[href*="photos"]:hover {
    background-color: #D05A74;
}

.info-button:disabled {
    background-color: #cccccc;
    color: #888888;
    cursor: not-allowed;
    opacity: 0.5;
}

.qrcode-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.qrcode {
    max-width: 100%;
    height: auto;
    display: block;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    padding-top: 60px;
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 500px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
    text-indent: 2em;
}

.modal-content h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.modal-close-btn {
    color: #aaa;
    float: right;
    font-weight: bold;
}

.modal-close-btn:hover,
.modal-close-btn:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.modal-content .highlight {
    font-weight: bold;
    color: #e85a4f;
}

.modal-content .footer {
    margin-top: 20px;
    font-weight: bold;
    color: #d77a61;
}


h1 { all: unset; font-size: 3.0rem; }
h2 { all: unset; font-size: 1.8rem; }
p { all: unset; font-size: 0.8rem; }

@media (max-width: 600px) {
    h1 { all: unset; font-size: 2.3rem; }
    h2 { all: unset; font-size: 1.2rem; }
    p { all: unset; font-size: .7rem; }
    .info-button img {width: 60px; height: 60px;}
    .info-button {width: 140px; height: 120px; margin: 25px;}    
    .casal-container {height: 42px; }
}

.hotel-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.hotel-name {
    font-weight: bold;
    color: #333;
}

.hotel-info {
    margin: 10px 0;
}
.hotel-info i {
    color: #007bff;
    margin-right: 10px;
}

#presenceForm {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#presenceContainer {    
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.presence-row {
    display: flex;
    gap: 10px;
}
.presence-row input[type="text"] {
    width: calc(50% - 10px);
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    transition: border-color 0.3s ease;
}
.presence-row input[type="text"]:focus {
    border-color: #4CAF50;
    outline: none;
}

.presence-checkbox {
    transform: scale(2); /* Increase checkbox size */
    align-self: center;
}

.remove-button {
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.2s ease, opacity 0.2s ease;
    background-color: transparent;
}

.remove-button img {
    width: 32px;
    height: 32px;
}

.remove-button:hover {
    opacity: 0.7;  /* Slightly fade the icon */
    transform: scale(1.1);  /* Slightly increase the size of the button */
}

.add-button {
    background-color: #4CAF50;
    color: white;
    padding: 1px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.add-button:hover {
    background-color: #45a049;
}

.add-button img {
    width: 32px;
    height: 32px;
}

.submit-button {
    background-color: #4CAF50;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-button:hover {
    background-color: #45a049;
}