*{
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

html {
  /* 10px */
  font-size: 62.5%;
  overflow-x: hidden;
}

:root {
  --secondary-color: #4a4a4a;
  --background-gradient: linear-gradient(to bottom, #e7ede6, #e7ede6);
  --font-family: 'Cormorant Garamond', serif;
}

body {
    font-family: 'Belleza', serif;
    font-style: normal;
    text-align: center;
    background: var(--background-gradient);
    color: var(--secondary-color);
    scroll-behavior: smooth;
}

nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: white;
    padding: 10px 0;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    font-family: var(--font-family);
    font-size:1.8rem;
    font-weight:500;
    font-style: normal;
}
a {
  /*text-decoration: none;*/
  color: var(--secondary-color); 
}
nav a {
    margin: 0 15px;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
}

section {
    background: url("images/back.jpg") repeat center center/cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
    padding: 1rem;
    width: 100%;
    max-width: 60rem;
    margin: 0 auto;
    scroll-margin-top: 6rem;
}

.section-image {
    max-width: 95%;
    height: auto;
    display: block;
    margin: 0 auto;
}

#intro {
    background: url("images/intro1.jpg") no-repeat center center/contain;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    animation: fadeIn 1.5s ease-in-out;
    height: 95vh;
}

#about-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    text-align: center;
    scroll-margin-top: 6rem;
}
ul {
  list-style-position: inside;
}
.about-date {
    font-size: 4.2rem;
    color: var(--secondary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 2rem;
}

.about-date::after {
    content: attr(data-date);
    display: flex;
    gap: 10px;
}

.about-date span {
    position: relative;
    padding: 0 10px;
}

.about-date span:not(:last-child)::after {
    content: "|";
    position: absolute;
    right: -10px;
    color: var(--secondary-color);
}

.countdown-title {
    font-family: var(--font-family);
    font-size:4.2rem;
    font-weight:500;
    font-style: normal;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.countdown {
    font-size:3.2rem;
    font-weight: bold;
    margin: 20px 0;
    color: var(--secondary-color);
}

#countdown {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

.time-box {
    width: 7rem;
    height: 7rem;
    font-size: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    background-color: #e1e7de;
    border: 2px solid var(--secondary-color);
    border-radius: 10px;
    text-align: center;
}

.time-box p {
    font-size: 1.4rem;
    margin: 0;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.container-map {
    max-width: 60rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
}

.container-map button {
    background: rgba(255, 255, 255, 0.5);
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    font-family: var(--font-family);
    font-size:1.8rem;
    font-weight:700;
    font-style: normal;
    color: var(--secondary-color);
    cursor: pointer;
    width: 50%;
    max-width: 30rem;
    margin: 1rem;
    border: 1px solid var(--secondary-color);
    transition: background-color 0.3s;
}

.magic p {
    display: none;
    color: var(--secondary-color); 
    font-family: var(--font-family);
    font-size:1.8rem;
    font-weight:700;
    font-style: normal;
}

.container-form {
    max-width: 600px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.5);
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

.rsvp-form {
    text-align: center;
}

.rsvp-form input, .rsvp-form button {
    display: block;
    margin: 10px auto;
    padding: 10px;
    font-family: var(--font-family);
    font-size:1.8rem;
    font-weight:500;
    font-style: normal;
    width: 100%;
    max-width: 30rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.rsvp-form button {
    background-color: white;
    font-family: var(--font-family);
    font-size:1.8rem;
    font-weight:700;
    font-style: normal;
    color: var(--secondary-color);
    border: none;
    cursor: pointer;
    width: 100%;
    max-width: 30rem;
    transition: background-color 0.3s;
}

.rsvp-form button:hover {
    background-color: #fce4e1;
}

.telegram-btn {
    display: inline-block;
    padding: 1rem;
    background-color: #e7ede6;
    font-family: var(--font-family);
    font-size:1.8rem;
    font-weight:700;
    font-style: normal;
    color: var(--secondary-color);
    text-decoration: none;
    border-radius: 5px;
    margin-top: 1rem;
    text-align: center;
    width: 100%;
    max-width: 30rem;
    transition: background-color 0.3s;
}

.telegram-btn:hover {
    background-color: #24A1DE;
}

.color-boxes {
    display: flex;
    justify-content: space-around;
    margin: 1rem;
}

.color-box {
    display: inline-block;
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    border: 1px solid ;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
}

.color-box:hover {
    transform: scale(1.1);
}

.color-box[title]:hover::after {
    content: attr(title);
    position: absolute;
    top: -30px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 1rem;
    padding: 0.5rem;
    border-radius: 5px;
}

.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 5rem;
    height: 5rem;
    background: linear-gradient(135deg, #cad8c7, #cad8c7);
    color: white;
    font-size: 2.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s, transform 0.3s, box-shadow 0.3s, background 0.3s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.scroll-top:hover {
    background: linear-gradient(135deg, #e1e7de, #e1e7de);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.scroll-top:active {
    transform: translateY(2px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.section-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 1.5rem;
}

.section-header hr {
    width: 100%;
    border: none;
    border-top: 1px solid black;
    margin-top: 1rem;
}

.section-header h3 {
    font-family: var(--font-family);
    font-size: 4.2rem;
    font-weight: 500;
    color: var(--secondary-color);
    margin: 0;
}
.description-sections {
    font-family: var(--font-family);
    font-size: 2.2rem;
    font-weight: 500;
    color: var(--secondary-color);
    margin: 0;
}
.description-sections p {
    margin-bottom: 1rem;
    text-align: center;
}
.footer {
    font-family: var(--font-family);
    font-size: 1.8rem;
    font-weight: 500;
    background-color: #333;
    color: #fff;
    padding: 20px 0;
}

.container-footer{
    max-width: 120rem;
    margin: 0 auto;
    padding: 0 20px;
}

.social-links {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-links li a {
    color: #fff;
    text-decoration: none;
}

.schedule-container {
  display: flex;
  justify-content: space-between;
  max-width: 60rem;
  margin: auto;
}

.left-column {
  flex: 3;
}

.event {
  margin-bottom: 3rem;
}

.time {
  font-weight: bold;
  font-size: 4rem;
  margin-bottom: 0.5rem;
}

.title {
  font-weight: bold;
  letter-spacing: 0.1rem;
  margin-bottom: 0.3rem;
}

.location {
  color: #555;
  font-size: 2rem;
}

.right-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  border-left: 0.1rem solid #ccc;
  padding-left: 3rem;
}

.date {
  font-family: 'Monsieur La Doulaise', cursive;
  font-size: 8rem;
  line-height: 1.5;
  font-weight: 500;
  color: #010101;
}

.collage {
    overflow-x: scroll;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: none;
    display: flex; 
    width: 100%; 
    margin: 2rem auto;
    white-space: nowrap;
}

.collage-track {
    display: flex;
    gap: 2rem;
    padding: 1rem;                          
    min-width: max-content;
    flex-wrap: nowrap;  
}

.collage img {
    flex: 0 0 auto;            
    height: 30rem;     
    max-width: 80%;                  
    object-fit: cover;                  
    display: block;
}


@media (max-width: 640px) {
  html {
    /* 8px */
    font-size: 50%;
  }
}