@font-face {
    font-family: myModern;
    src: url('/Fonts/Sk-Modernist-Regular.otf');
}

@font-face {
    font-family: myCursive;
    src: url('/Fonts/hethany-signature/Hethany\ Signature.otf');
}

/* reset to 0, being used to have consistency across the different browsers */
/* border-box, being used to make it easier to manage element sizes,
the padding and border are included when width and height are declared*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    width: 100vw;
    height: 100vh;
}

/* Top section of the page */
.top {
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    flex-direction: column;
    height: 50rem;
    font-family: myCursive;
    font-size: 2rem;
    letter-spacing: 0.2rem;
    color: rgb(250, 180, 3);
    background-image: url(images/hphotos/Hugh-13\ \(1\).jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.title {
    font-size: 5rem;
    text-align: center;
}

/* Middle of the page: photo of parents with a few words,
carousel of Gabe's senior photos, RSVP for grad party, words from 
family and friends, image carousel */
.middle {
    width: 100vw;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.quote {
    font-size: 2rem;
    font-family: myModern;
    text-align: center;
    color: rgb(250, 180, 3);
}

.qauthor {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    font-family: myCursive;
}

h5 {
    font-family: myModern;
    font-size: 2.2rem;
    text-align: center;
    letter-spacing: 0.2rem;
    margin: 0 0 1rem 0;
}

.section1, .section2, .section3 {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Section with note from parents and their family picture */
.section1 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hp {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;

}

.hptitle {
    margin-bottom: 2rem;
}

.hpimage {
    width: 430px;
    height: 315px;
    margin: 0 2rem 0 1rem;
}

.hptext {
    font-family: myModern;
    font-size: 1rem;
    text-align: justify;
    margin: 0 2rem 0 0;
    letter-spacing: 0.2rem;
}

.morehp {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.sometext {
    font-family: myModern;
    letter-spacing: 0.1rem;
}

.sometext, .st, .stsize {
    font-family: myModern;
    font-size: 1rem;
    text-align: justify;
    margin: 1rem 0;
    letter-spacing: 0.21rem;
}

.stsize {
    width: 400px;
}

/* Graduation section, rsvp */
.section3 {
    height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: myModern;
}

.closeBtn {
    justify-content: right;
}

.rsvpBtn {
    font-size: 2.5rem;
    letter-spacing: 0.2rem;
    background-color: rgb(250, 180, 3);
    border-style: none;
    font-weight: bold;
    font-family: myModern;
    color: black;
    border-radius: 10px;
    width: 400px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-bottom: 5rem;
}

.rsvpBtn:hover {
    background-color: black;
    color: rgb(250, 180, 3);
}


.popup {
    display: none;
    position: fixed;
    left: center;
    top: 8%;
    width: 700px;
    height: 800px;
    overflow: auto;
    background-color: rgb(250, 180, 3);
    background-color: (0, 0, 0, 0.4);
    animation-name: animatetop;
    animation-duration: 0.4s;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.5), 0 6px 20px 0 rgba(0, 0, 0, 0.5);
    border-radius: 10px;
}

.popupBox {
    display: none;
    position: fixed;
    flex-direction: column;
    top: 12%;
    left: center;
    margin-left: 2.5rem;
    color: black;
    background-repeat: no-repeat;
    background-size: 150px;
    background-color: white;
    background-position: bottom;
    padding: 1rem;
    width: 620px;
    height: 720px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.5), 0 6px 20px 0 rgba(0, 0, 0, 0.5);
    animation-name: animatetop;
    animation-duration: 0.4s;
    border-radius: 10px;
}

@keyframes animatetop {
    from {
        top: -300px;
        opacity: 0
    }
    to {
        top: 0;
        opacity: 1;
    }
}

.thedetails {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    letter-spacing: 0.2rem;
}

.popuptitle {
    font-size: 4rem;
    margin: 0 0 1rem 0;
}

.respond {
    font-size: 1rem;
}

.gradpartyperson {
    font-family: myCursive;
}

.deets {
    font-size: 3rem;
    text-align: justify;
    margin-top: 3rem;
}

.dt {
    text-align: center;
    margin-bottom: 1rem;
}

.gdate, .gtime, .glocation {
    font-size: 1.5rem;
    margin-left: 2.5rem;
}

.rsvpemail {
    font-size: 1rem;
    text-align: center;
    line-height: 2rem;
}

/* Section with Hugh's high school achievements */
.section2 {
    margin-bottom: 3rem;
}

.hsatitle {
    margin-bottom: 2rem;
}

.qacontainer {
    display: flex;
    flex-direction: row;
    margin-left: 8rem;
}

.hsq {
    width: 300px;
    font-size: 1.5rem;
    font-family: myModern;
    text-align: justify;
    color: rgb(250, 180, 3);
}

.alist {
    display: flex;
    align-items: center;
    margin-left: 2rem;
}

.list {
    font-family: myModern;
    font-size: 1rem;
}

.item {
    list-style-type: none;
    letter-spacing: 0.2rem;
    margin-left: 2rem;
    font-weight: 900;
    line-height: 2rem;
}

/* Image carousel */
.carousel {
    margin: 0 1rem 0 1rem;
    padding: 1rem;
    text-align: center;
    border-radius: 10px;
}

.myslides {
    display: none;
}

img {
    height: 500px;
}

.cursor {
    cursor: pointer;
}

.prev, .next {
    cursor: pointer;
    padding: 16px;
    color: rgb(250, 180, 3);
    background-color: white;
    font-weight: bold;
    font-size: 20px;
    border-radius: 5px;
    user-select: none;
}

.prev:hover, .next:hover {
    background-color: black;
}


/* Bottom of the page */
.bq2 {
    font-size: 1.2rem;
    font-family: myModern;
    text-align: center;
    color: rgb(250, 180, 3);
    width: 100vw;
    height: 4rem;
    font-weight: bold;
    margin: 1rem 0 3rem 0;
}



@media only screen and (max-width: 700px) {
    body {
        overflow-x: hidden;
    }
    .top {
        font-size: 2.5rem;
        max-width: 700;
    }

    .hp {
        flex-direction: column;
    }

    .hpimage {
        margin-bottom: 1.5rem;
        margin-left: 2rem;
    }

    .hptitle, .hptext, .sometext, .st {
        width: 400px;
    }

    .hptext {
        margin-left: 2.3rem;
        margin-bottom: 0;
    }
    
    .sometext, .st {
        text-align: justify;
    }

    .sometext {
        margin-bottom: 2rem;
        width: 60vw;
    }

    .st {
        margin-top: 0;
        text-align: center;
    }

    .st2 {
        text-align: center;
    }
    
    .stsize {
        font-size: 1rem;
    }

    .qacontainer {
        flex-direction: column;
        width: 50rem;
    }

    .popup {
        max-width: 300px;
    }
    .popupBox {
        max-width: 280px;
    }   
    
    .popuptitle {
        font-size: 1.5rem;
        margin: 0 0 1rem 0;
    }
    
    .respond {
        font-size: 1rem;
    }
    
    .gradpartyperson {
        font-family: myCursive;
        margin-bottom: 0;
        margin-left: 1rem;
        font-size: 2rem;
    }
    
    .deets {
        font-size: 1rem;
        text-align: justify;
    }
    
    .dt {
        text-align: center;
    }
    
    .gdate, .gtime, .glocation, .rsvpemail {
        font-size: 0.8rem;
        margin-left: 1rem;
    }
    

    .section2 {
        max-width: 300px;
    }

    .alist {
        margin-left: 0;
        margin-top: 1rem;
    }
    .item {
        margin-bottom: 0.2rem;
    }

}

@media only screen and (max-width: 300px) {
    .top {
        font-size: 2.5rem;
    }

    .hp {
        flex-direction: column;
    }

    .hpimage {
        margin-bottom: 1.5rem;
        margin-left: 2rem;
    }

    .hptext, .sometext, .st {
        width: 450px;
    }

    .hptext {
        margin-left: 2.3rem;
        margin-bottom: 0;
    }
    
    .sometext, .st {
        margin-left: 3rem;
        text-align: justify;
    }

    .sometext {
        margin-bottom: 2rem;
    }

    .st {
        margin-top: 0;
        text-align: center;
    }

    .stsize {
        font-size: 1rem;
    }

    .alist {
        flex-direction: column;
        align-items: center;
    }

    .list {
        margin: 0;
    }

    .item {
        margin-bottom: 0.2rem;
    }
}