@import url('https://fonts.googleapis.com/css2?family=BBH+Sans+Bartle&family=Bebas+Neue&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
}

/*- HEADER -*/
header, #title, nav, button {
    font-family: 'BBH Sans Bartle', Verdana, Tahoma, sans-serif;
}
header {
    background-image: url(images/canadianflag.jpg);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    text-align: center;
    padding: 3vw;
    color: white;
    text-shadow: 5px 5px 15px rgba(0, 0, 0, 0.7);
    filter: grayscale(50%);
}
header sup {
    font-size: small;
}
header h1{
    text-transform: uppercase;
    letter-spacing: 5px;
    font-size: 5rem;
}

/*- NAV MENU-*/
nav {
    display: flex;
    gap: 10px;
    background-color: #660000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}
nav a {
    text-decoration: none;
    color: white;
    font-size: smaller;
}
button {
    background-color: transparent;
    color: white;
    border: 2px solid transparent;
    border-radius: 25px;
    padding: .5rem;
}
button:hover {
    background-color: white;
    color: #660000;
    margin: auto;
}
nav div {
    margin: auto;
}

/*- DROPDOWN MENU-*/
nav .dropdown {
    position: relative;
    margin: auto;
}
nav .dropmenu {
    display: none;
    position: absolute;
    background-color: #660000;
    color: white;
    min-width: 180px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    margin: auto;
}
nav .dropmenu button{
    display: block;
    padding: 10px 15px;
    justify-content: center;
    align-items: center;
    margin: 10px auto;
}
nav .dropdown:hover .dropmenu {
    display: block;
    padding: 20px;
    margin: auto;
}

/*- PAGE TITLE -*/
#title {
    text-align: center;
    font-size: 1rem;
    margin: 20px;
}

/*- GALLERY-*/
#gallery {
    font-family: "Bebas Neue", Arial, Helvetica, sans-serif;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin: auto 80px;
    margin-top: -30px;
    max-width: 100%;
    height: auto;
    padding: 2rem;
    gap: 20px;
    object-position: fixed;
}
img {
    max-width: 100%;
    height: 100%;
}
div #card {
    width: 100%;
    height: 100%;
    object-fit: fill;
    background-color: #f9f9f9;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    padding: 20px;
    padding-bottom: 50px;
    text-align: center;
}

/*- FOOTER -*/
footer {
    font-family: "Bebas Neue", Arial, Helvetica, sans-serif;
    background-color: #660000;
    color: white;
    text-align: center;
    padding: 1.5rem;
    letter-spacing: 2px;
    margin-top: 20px;
}

/*- RESPONSIVE -*/
@media all and (max-width:1028px) {
    div #card {
        width: 100%;
        height: auto;   
    }
}
@media all and (max-width:999px) {
    header h1 {
        font-size: 5vw;
    }
}

@media all and (max-width: 860px) {
    header {
        padding: 3rem;
    }
    header h1{
        font-size: 5vw;
    }
    header sup {
        font-size: x-small;
    }
    nav {
        flex-direction: column;
        padding: 1.2rem;    
    }
    nav a {
        font-size: smaller;
    }
    #title {
        font-size: 3vw;
    }
    #gallery {
        display: grid;
        grid-template-columns: 1fr;
        margin: -20px auto;
        width: 100%;
        height: auto;
    }
    div #card {
        width: 100%;
        height: 100%;
        object-fit: fill;
        padding: 20px;
        padding-bottom: 30px;
        background-color: #f9f9f9;
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    }
    div #card img {
        width: 100%;
        height: auto;
        margin-bottom: 20px;
    }
}