:root{
    --color-brown: #5a352a;
    --color-whiteSmoke: #f1edee;
    --color-airforceBlue: #628395;
    --color-tavern: #f5be51;
    --color-flame: #e4572e;
    --color-black-tr: rgba(0, 0, 0, 0.5);
    --font-main: 'Source Sans 3', Arial, sans-serif;
    --font-header: 'MedievalSharp';
    --font-about: 'Bellefair';
}

*{
    box-sizing: border-box;
    scroll-behavior: smooth;
}

html{
    font-size: 15px;
    font-family: var(--font-main);
    scroll-padding-top: 4rem;
}

body{
    margin: 0;
    padding: 0;
    background-color: var(--color-brown);
}

.container{
    display: flex;
    align-items: center;
    align-content: center;
    justify-content: center;
    text-align: center;
}


/*   Header   */
header{
    background-image: url("./resources/imgs/tavern.webp");
    background-size: cover;
    background-position: center;
    color: var(--color-tavern);
    font-family: var(--font-header);
    font-size: 2rem;
    padding: 2rem 0;
}
header h1{filter: drop-shadow(0px 0px .5rem black)}
nav.container{
    background-color: var(--color-black-tr);
    --webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);  /* sandblasted glass efect */
    justify-content: space-between;
    flex-wrap: wrap;
    width: 90%;
    margin: 1rem auto;
    color: var(--color-whiteSmoke);
    border-radius: 1rem;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: -2px 2px 3px black;
}
@media only screen and (max-width: 734px) {
    nav.container{justify-content: center;}
    nav ul.container{flex-wrap: wrap; margin: .5rem 0; padding: 0;}
}
nav a.logo{
    display: flex;
    width: min-content;
    padding: 0;
    margin: .5rem 1rem;
}
nav a.logo img{
    height: 2.5rem;
    --webkit-filter: drop-shadow(-1px 1px 1px black);
    filter: drop-shadow(-1px 1px 1px black);

}
nav img:hover{transform: scale(1.1);}
nav ul{list-style: none;}
nav a{
    position: relative;
    color: inherit;
    text-decoration: none;
    font-family: var(--font-header);
    font-size: 1.5rem;
    margin: 0 1rem;
    letter-spacing: .1rem;
    --webkit-filter: drop-shadow(-1px 1px 1px black);
    filter: drop-shadow(-1px 1px 1px black);
    border-bottom: 3px solid transparent;
    padding-top: 3px;
    transition: border-color .6s ease;
}
nav a:hover{border-bottom: 3px solid var(--color-airforceBlue);}
nav a::before{  /*pseudo-element created to animate the linear-gradient background*/
    content: '';
    position: absolute;
    top: 0;
    left: 0; /*top and left let it at the beginning of each container*/
    width: 100%; /*the same with as the a parent*/
    height: 100%; /*the same height as the a parent*/
    background: linear-gradient(transparent, 85%, hsla(201, 21%, 48%, .8));
    opacity: 0; /*background is invisible to the eye*/
    transition: opacity .6s ease; /*animates opacity*/
    z-index: -1; /*positions itself behind*/
}
nav a:hover::before{opacity: 1;} /*not essential anymore, but cool*/
ul.dropdown{
    text-align: left;
    display: list-item;
    position: absolute;
    padding: 0;
    padding-top: 1rem;
    visibility: hidden;
}
li:hover>ul.dropdown {visibility: visible;}
ul.dropdown:hover{visibility: visible;}
ul.dropdown li{
    background-color: var(--color-black-tr);
    padding: .2rem 0;
}

/*   About Us   */
#about .container{
    flex-flow: column;
    background-image: url('./resources/imgs/OIG4.jfif');
    background-size: cover;
    background-position: bottom;
    background-repeat: no-repeat;
    min-height: 600px;
}
#about h2{
    font-family: var(--font-about);
    color: var(--color-tavern);
    font-size: 5rem;
    filter: drop-shadow(-2px 2px black);
}
#about h2 span{
    font-family: var(--font-header);
}

/*   Club   */
#club {
    width: 80%;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 0  auto;
    color: lightgrey;
}
#club h2{
    display: block;
    font-size: 2rem;
    width: 100%;
    margin: 2rem 0;
}
#club h3{font-size: 1.5rem;}
#club div.container{
    width: 30%;
    min-width: 240px;
    height: 550px;
    flex-direction: column;
    align-content: flex-start;
    justify-content: flex-start;
    margin: 0 .5rem;
}
@media only screen and (max-width: 974px) {
    #club{justify-content: center;}
    #club div.container{ margin: 0 2rem;}
}
#club img{width: 100%; height: 300px;}
#club h4{height: 3.5rem; margin-bottom: 0; font-size: 1.1rem;}
#club a{color: inherit;}

/*   Promo   */
#promo{
    min-height: 600px;
    margin-top: 4rem;
    background-color: var(--color-flame);
    padding: 0 4rem;
    flex-wrap: wrap;
}
#promo div.container{
    max-width: 600px;
    flex-direction: column;
    align-content: flex-start;
    justify-content: flex-start;
    height: 80%;
    padding: 0 3rem;
}
#promo img{ width: 100%; max-width: 400px; min-width: 260px; margin-top: 2rem;}
#promo h2{
    font-family: var(--font-header);
    font-size: 3rem;
    margin-top: 2rem;
}
#promo h3{font-size: 2rem; min-width: 260px;}


/*   Promo   */
footer div.container{
    justify-content: space-between;
    padding: 1rem 2rem;
    color: var(--color-whiteSmoke);
}

/*   Footer   */
#location{margin: 3rem 0 1rem 0; flex-wrap: wrap;}
#location img{width: 40%; max-width: 600px; min-width: 260px; height: auto; margin: 1rem;}
#location iframe{width: 40%; margin: 1rem; min-width: 260px;}

/*   Footer   */
footer a{color: inherit; text-decoration: none;}
footer a:hover{display: inline-block;transform: scale(1.1);}