

.parent {
    display: grid;
    grid-template-rows: auto;
    grid-row-gap: 20px;
    margin-top: 10vh;
    margin-left: 10%;
    margin-right: 10%;


    
    }
    
    .div1 { grid-area: 1 / 1 / 2 / 2; }
    .div2 { grid-area: 1 / 2 / 2 / 3; }
    .div3 { grid-area: 2 / 1 / 3 / 2; }
    .div4 { grid-area: 2 / 2 / 3 / 3; }



    
.div1 {
    justify-content: center;
    text-align: center;
    align-items: center;
}
.div1 h2, p {
    margin-top: 20px; 
    text-decoration: none;
    
}


.div1 h2 {
    font-size: 7vh;
    font-family:"Madimi One", sans-serif; 
    -webkit-text-stroke: .1px #c29aff; 
    color: #faf3ff;
    filter: drop-shadow(0.35rem 0.35rem 0.4rem rgba(172, 101, 177, 0.5));
}
.div1 p {
    display: flex;
    flex-direction: column;
    text-align: center;
    color: hsl(260, 2%, 67%);
    font-size: 2vh;
    font-family: "Salsa", cursive;
}
.button-container {
    filter: contrast(120%);
    border: none;
    background: none;
    margin-top: 10px;
}
.button-container img:hover {
    filter: contrast(120%);
    cursor: pointer;
    scale: 1.04;
}

.div2 img {
    position: relative; /* Ensure proper positioning */
    overflow: hidden;
    max-width: 30vh;
    max-height: 100%;
}
.div2   {
    position: relative; /* Position video/image on top of each other */
    top: 0;
    left: 0;
    right: 0;
    max-height: 100%;
    object-fit: cover; 
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin-bottom: 10vh;

}




.div2 p {
position: relative;
display: flex;
justify-content: center;
text-align: center;
color: hsl(260, 2%, 67%);
font-size: 2vh;
font-family: "Salsa", cursive;
}

@media screen and (max-width: 768px) {
    .div2 img {
        max-width: 60%;
        max-height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;

    }
    .parent{
        display: flex;
        justify-content: center;
        flex-direction: column;
        margin-top: 50px;
    }
    .div2 {
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .div3 img {
        max-width: 100%; 
        max-height: 70%; 
        width: auto;
        height: auto;
        display: flex;
        justify-content: center;
        align-items: center;
    }
}

@media screen and (max-width: 768px) {
    .parent p {
        margin: 5%;
    }
}


.parent div {
    filter: drop-shadow(0.35rem 0.35rem 0.4rem rgba(0, 0, 0, 0.1));
    font-family:"Madimi One", sans-serif; 
    text-decoration: none; 
}
.parent h3 {
    font-size: 3vh;
    -webkit-text-stroke: 1px #aa7cc0; 
    color: #f0d8fc;
}
.parent p{
    filter: drop-shadow(0.35rem 0.35rem 0.4rem rgba(0, 0, 0, 0.1));
    font-family:"Madimi One", sans-serif; 
    text-decoration: none; 
    
}


.div3 {
    position: relative;
    width: 400px; 
    height: 500px; 
    overflow: hidden;
    display: flex; 
    justify-content: center;
    align-items: center; 
    margin-left: 20%;
    margin-bottom: 10%;
}

.original-image img,
.hover-image img {
    max-width: 100%;
    max-height: 100%; 
    width: auto;
    height: auto;

}

.original-image,
.hover-image {
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.5s;
    width: 100%;
    height: 100%;
}

.hover-image {
    opacity: 0;
}

.div3:hover .original-image {
    opacity: 0;
}

.div3:hover .hover-image {
    opacity: 1;
}


.div4  {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    margin-bottom: 5vh;

}
.div4 p {
    position: relative;
    display: flex;
    justify-content: center;
    text-align: center;
    color: hsl(240, 0%, 43%);
    font-size: 1.7vh;
    font-family: "Salsa", cursive;
    max-width: 50vh;
}



.button {
    cursor: pointer;
    padding: 10px 20px;
    font-size: 18px;
}

.button-container:hover {
    filter: contrast(110%);
    cursor: pointer;
    scale: 1.05;
}

.button span {
    font-weight: bold;
}
.button-container {
    display: flex;
    flex-direction: column;
    border: none;
    align-items: center;
    position: relative;
    background: none;
    margin-top: 10px;
}

.button-container img {
    max-width: 70%;
    height: auto;
    background: none;
    border: none;
}

.button-container span {
    position: absolute;
    top: 35px;
    text-align: center;
    font-family: "Madimi One", sans-serif;
    font-weight: 400;
    font-size: 1.8em;
    -webkit-text-stroke: 0.3px #A33FD2;
    color: #b196c4;
}