
@font-face {
    font-family: EBGaramondRegular;
    src: url('EBGaramond-Regular.ttf');
}

@font-face {
    font-family: EBGaramondItalic;
    src: url('EBGaramond-Italic.ttf');
}

@font-face {
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    src: format();
}

body {
    font-family: 'Times New Roman', serif;
    margin: 0;
    background-color: #000000;
}

* {
    box-sizing: border-box;
}

#container {
    max-width: 130vh;
    max-height: 130vh;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

a {
    color: #ffffff;
}

a:hover {
    color: #926f34;
}

/* the area below is for all links on your page
EXCEPT for the navigation */

#header {
    width: 100%;
    background-color: #5e4e8c;
    /* header color here! */
    height: 190px;
    /* background-image: url('FirstNames.png');
    background-size: 100%;
}

#mainImage {
    display: flex;
    justify-content: center;
    padding-top: 20px;
    width: 100%;
}

#mainImage img {
    width: 82%;
    max-width: 100%;
}

#date {
    display: flex;
    justify-content: center;
    margin-top: 5%;
    margin-bottom: 1%;
}

#place {
    display: flex;
    justify-content: center;
}

#date h1, #place h1 {
    font-size: 25px; /* Adjust the font size as needed */
    margin: 0;
    padding: 0;
}

#eventInfo {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

#address {
    margin-top: 1%;
}

#ceremonyHour {
    margin-top: -2%;
}

#cocktailTime {
    margin-top: -2%;
}

#receptionTime {
    margin-top: -2%;
}

#address h1, #ceremonyTitle h1, #cocktailTitle h1, #receptionTitle h1 {
    font-size: 25px;
}

#ceremonyHour h2, #cocktailTime h2, #receptionTime h2 {
    font-size: 20px;
}

#historySection {
    margin-top: 20px;
    padding-left: 9%;
    padding-right: 9%;
    overflow: hidden;
}

#historyCover {
    float:left;
    margin-right: 25%;
    margin-bottom: 0;
    width: 300px;
    height: auto;
}

#historySection p {
    text-align: justify;
    color: #ffffff;
    line-height: 1.6;
    font-size: 18px;
    margin-top: 0;
}

#travelInfo {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

/* navigation section!! */
#navbar {
    height: 40px;
    background-color: #000000;
    /* navbar color */
    width: 82%;
    position: relative;
    z-index: 1;
    border: 1px solid #ffffff;
    margin-left: 9%;
}

#navbar ul {
    display: flex;
    padding: 0;
    margin: 0;
    list-style-type: none;
    justify-content: space-evenly;
}

#navbar li {
    padding-top: 10px;
}

#navbar li a {
    color: #ffffff;
    /* navbar text color */
    font-weight: 600;
    text-decoration: none;
}

#navbar li a:hover {
    color: #926f34;
    text-decoration: none;
}

#body {
    display: flex;
    justify-content: center;
    align-items: center;
}

h1,
h2,
h3 {
    color: #ffffff;
}

h1 {
    font-size: 25px;
}

strong {
    /* this styles bold text */
    color: #ffffff;
}


/* CSS for extras */

#topBar {
    width: 100%;
    height: 30px;
    padding: 10px;
    font-size: smaller;
    background-color: #13092D;
}


/* BELOW THIS POINT IS MEDIA QUERY */

/* so you wanna change the width of your page? 
by default, the container width is 900px.
in order to keep things responsive, take your new height,
and then subtrack it by 100. use this new number as the 
"max-width" value below
*/

@media only screen and (max-width: 800px) {
    #flex {
        flex-wrap: wrap;
    }

    aside {
        width: 100%;
    }

    /* the order of the items is adjusted here for responsiveness!
since the sidebars would be too small on a mobile device.
feel free to play around with the order!
*/
    main {
        order: 1;
    }

    #leftSidebar {
        order: 2;
    }

    #rightSidebar {
        order: 3;
    }

    #navbar ul {
        flex-wrap: wrap;
    }
}