h1 {
    font-family: "Dancing Script", cursive;
}

p , input, label, legend{
    font-family: "Karla", sans-serif;
 
}

.top-div h1{
    font-size: 1.8em;
}
.top-div {
    display:grid;
    width:100%;
    grid-template-columns: 50% 50%;
    background-color: #f1f1f1;
    padding: 20px 0px;
    text-align: center;
    justify-content: center;
    margin:20px auto;
}

#maggie-img {
   height: 300px;
   border-radius: 15px;
   box-shadow: 2px 2px 8px 2px rgba(14, 14, 14, 0.877);

}   

.top-left-grid {
    display:flex;
    flex-direction: column;
    justify-content: center;
    
}

.div-line {
    background-color:  black;
    height: 1px;
    width:70%;
    margin:0 auto;
}
.btn-container {
    display: flex;
    width:95%;
    justify-content: center;
    margin: 10px auto;
    column-gap: 15px;

}
.btn-1 {
    display:flex;
    background-color: purple;
    color: white;
    border-radius: 5px;
    padding: 20px;
    margin: 8px auto;
    border: none;
    cursor: pointer;
    width: 50%;
    height:80px;
    text-decoration: none;
    font-size: 1.6em;
    justify-content: center;
}

.pic-button {
    display:flex;
    background-color: purple;
    color: white;
    column-gap: 2%;
    border-radius: 5px;
    margin: 8px auto;
    border: none;
    cursor: pointer;
    width: 100%;
    height:80px;
    text-decoration: none;
    font-size: 1.6em;
    justify-content: center;
}

.btn-1 p, .pic-button p{
    margin:auto 0;
}


.btn-1:hover, .pic-button:hover {
    background-color: rgb(94, 4, 94)    ;
    color: white;
}

.btn-1:active {
    background-color:white;
    width:calc(50% - 4px);
    height:calc( 80px - 4px);
    color:  rgb(94, 4, 94);
    border: 2px solid  rgb(94, 4, 94);

}

.pic-button:active  {
    background-color:white;
    width:100%;
    height:calc( 80px - 4px);
    color:  rgb(94, 4, 94);
    border: 2px solid  rgb(94, 4, 94);

}

.main-write-up {
    display:flex; 
    background-color:purple;
    color:white;
    width:90%;
    margin-top: 40px;
    margin-bottom: 20px;
    padding:5%;
    column-gap: 50px;
}

#gallery-1 {
    width:95%;
    margin:0 auto;
    border-radius: 15px;
}

.moon-white {
    display:block;
    height:60px;
    margin: 15px auto;
    opacity: 50%;
}

.div-line-white {
display:inline-block;
    background-color:  white;
    height: 2px;
    width:100%;
    margin:0 auto;
}

#white-cam {
    margin:auto 0;
    height:50%;
}

.desc-flex {
    display:flex;
    flex-direction: column;
    width:100%;
    row-gap: 1%;

}

.desc-flex p {
    margin: 5px auto;
    width:90%;
    font-size:0.9em;
}

.modal-1 {   
    display: none;
    flex-direction: column;
    background-color: purple;
    color:white;
    position: absolute;
    z-index: 5;
    border-radius: 10px;
    padding:2% 5%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    overflow: auto;
    text-align: center;
    box-shadow: 0px 0px 200px 200px rgba(255, 255, 255, 0.8);

}

.modal-2 {
    display: none;
    flex-direction: column;
    background-color: purple;
    color:white;
    position: absolute;
    z-index: 5;
    border-radius: 10px;
    padding:2% 5%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    overflow: auto;
    text-align: center;
    box-shadow: 0px 0px 200px 200px rgba(255, 255, 255, 0.8);
}
.modal-3 {
    display: none;
    flex-direction: column;
    background-color: purple;
    color:white;
    position: absolute;
    z-index: 5;
    border-radius: 10px;
    padding:2% 5%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    overflow: auto;
    box-shadow: 0px 0px 200px 200px rgba(255, 255, 255, 0.8);
}


.modal-1-exit {
    display: flex;
    flex-direction: column;
    color:white;
    position: absolute;
    z-index: 2;
    padding:2% 5%;
    top: 0;
    right:0;
    cursor:pointer;
}

.modal-2-exit {
    display: flex;
    flex-direction: column;
    color:white;
    position: absolute;
    z-index: 2;
    padding:2% 5%;
    top: 0;
    right:0;
    cursor:pointer;
}

.modal-3-exit {
    display: flex;
    flex-direction: column;
    color:white;
    position: absolute;
    z-index: 2;
    padding:2% 5%;
    top: 0;
    right:0;
    cursor:pointer;
}


form {
    width:80%;
    margin: 0 auto;
    padding: 20px;
    height:auto;
    border: 1px solid #ccc;
    border-radius: 5px;
}


fieldset {
    border: none;  /* Remove default fieldset border */
    padding: 0;
}

label {
    display: block;
    margin-bottom: 5px;
}

input[type="text"], textarea { 
    width: 100%; 
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 3px;
    box-sizing: border-box; 
}

button[type="submit"] {
    background-color: #4CAF50; /* Example color */
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

#img_submit_btn {
    background-color: #4CAF50; /* Example color */
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.smooth-transition {
    transition: color 0.3s ease-in-out, transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
    position: relative; /* Ensures that transform properties work correctly */
}



.rsvp-flex {
    display:flex;
    flex-direction: row;
    width:100%;
    margin: 0 auto;
    column-gap: 25px;
    align-content: space-evenly;

}
.rsvp-left {
    display:flex;
    flex-direction: column;
    width: 50%;
    margin: 0 auto;

}
.rsvp-right {
    width: 50%;
    margin: 0 auto;
    align-content: center;
}

.rsvp-info {
display:flex;
flex-direction: column;
justify-content: center;
row-gap: 10px;

}

#gallery-2 {
    margin:0 auto;
    border-radius: 15px;

}
.rsvp-data {
    display:flex;
    flex-direction: row;
    width: 100%;
    column-gap: 20px;
   margin:auto 0;
    justify-content: flex-start; /* Align items to the start (left) of the flex container */
    align-items: flex-end; /* Align items to the end (bottom) of the flex container */

}

.rsvp-data h1 {
    margin: auto 0;
}

.rsvp-data p {
    margin: 5px;
}


.gallery {
    max-width: 100%;
    max-height: 400px;
    overflow: hidden;
  }
  
  .gallery-strip {
    display: flex;
    overflow-x: auto;
  }
  
  .gallery-strip img {
    flex: 0 0 auto;
    max-height: 100%;
    margin: 0 5px;
    transition: transform 0.3s;
  }
  
  .gallery-strip img:hover {
    transform: scale(1.1);
  }
  
  .full-gallery {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    text-align: center;
  }
  
  .full-gallery img {
    max-height: 100vh;
    max-width: 100vw;
    margin-top: 50px;
  }
  
  .full-gallery button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
  }
  
  .prev-btn {
    left: 10px;
  }
  
  .next-btn {
    right: 10px;
  }
  


@media screen and (max-width: 768px) {
    .top-div {
        grid-template-columns: 100%;
    }
    .top-left-grid {
        order: 1;
    }
    .top-right-grid {
        order: 2;
    }

    .main-write-up {
        flex-direction: column;
        row-gap: 30px;
    }

#maggie-img {
   width:100%;
   height: auto;
   margin:auto;
    
}
.btn-container{
    flex-direction: column;
    row-gap: 20px;
    margin:10px auto;
    width:90%;

}
.btn-1 {
    font-size: 1.0em;
    width:85%;
    margin: 0 auto;
}

.pic-button {
    font-size: 1.0em;
    width:100%;
    margin: 0 auto;
}

.rsvp-flex {
    flex-direction: column;
    row-gap: 20px;
    margin: 0 auto;
    width: 100%;
}

.rsvp-info {
    flex-direction: column;
    row-gap: 20px;
    margin: 0 auto;
    width: 100%;
}

.rsvp-left {
    width: 100%;
    margin: 0 auto;
}

.rsvp-right {
    width: 100%;
    margin: 0;
}

#rsvp-form {
    width: 100%;
    margin: 10px auto;
    padding:5px;
    padding:10px 0px;;
}

.modal-3 {
    width: 80%;
    height:90vh;

}

.rsvp-data {
    row-gap: 20px;
    margin: 0 auto;
    width: 100%;
}

.form-inner {
    width:90%;
    margin:auto;
}

.modal-3-exit, .modal-2-exit, .modal-1-exit {
margin:0;
}

.modal-3-exit p, .modal-2-exit p, .modal-1-exit p {
    margin:0;
}
.choose_file {
    width: 100%;
    margin: 15px auto;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
    box-sizing: border-box; 
}

}



