@font-face {
    font-family: 'Franklin Gothic Heavy';
    src: local('Franklin Gothic Heavy'), url('https://res.merlindenker.de/fonts/franklin-gothic-heavy_normal.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Franklin Gothic Medium';
    src: local('Franklin Gothic Medium'), url('https://res.merlindenker.de/fonts/franklin-gothic-medium_normal.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
}

:root {
    --navbar-inner-height: 111px;
    --navbar-padding: 10px;
    --navbar-height: calc(var(--navbar-inner-height) + var(--navbar-padding));
    --banner-height: 400px;
    --header-height: calc(var(--navbar-height) + var(--banner-height));

    --image-modal-height: 600px;

    --color-beige: #e5c46a;
    --color-white: #fafafa;
    --color-dark-green: #1d4c1d;
    --color-light-green: #c5e63d;

    --shadow-thin: 
		-1px -1px 0 #000,
		1px -1px 0 #000,
		-1px 1px 0 #000,
		1px 1px 0 #000;
    --shadow-thick:
		-2px -2px 0 #000,
		2px -2px 0 #000,
		-2px 2px 0 #000,
		2px 2px 0 #000;
}

body {
    min-height: 100vh;
    background-color: #000;

    font-family: 'Nasalization', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--color-beige);
}

/** =============================================================
    HEADER
    ============================================================= */
header {
    background-image: url(../img/bg.jpg);
    background-position: top center;
    background-size: cover;
    background-repeat: no-repeat;

    margin-bottom: 20px;
}

/** =============================================================
    NAVIGATION
    ============================================================= */

#navbar {
    width: 100%;
    height: var(--navbar-height);

    background-color: rgba(0,0,0,.5);

    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

#logo {
    width: 111px;
    height: 111px;
    margin-right: 20px;
}

header nav {
    font-family: 'Franklin Gothic Heavy';
}

header nav a, .nav_divider {
    text-transform: uppercase;
    color: var(--color-beige);
    text-shadow: var(--shadow-thick);
    text-decoration: none;
}
header nav a {
    font-size: 30px;
    line-height: 30px;
}
.nav_divider {
    line-height: 30px;
    font-size: 30px;
    
    margin-left: 10px;
    margin-right: 10px;
}

header nav a:hover {
    color: var(--color-white);
}

/** =============================================================
    BANNER
    ============================================================= */
#banner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: var(--banner-height);
    
    background-image: linear-gradient(to bottom, transparent 0 80%, #000);
}
#banner h1 {
    font-size: 70px;
    text-transform: uppercase;
    font-family: 'Franklin Gothic Heavy';
    text-shadow: var(--shadow-thick);
}

#banner_sub {
    text-shadow: var(--shadow-thin);
    font-size: 16px;
}

/** =============================================================
    GENERAL
    ============================================================= */
.section_headline {
    text-align: center;
    font-size: 50px;
    margin: 30px;
    padding: 5px;
    border-top: 3px solid var(--color-beige);
    border-bottom: 3px solid var(--color-beige);
    font-family: 'Franklin Gothic Heavy';
}

/** =============================================================
    BIER
    ============================================================= */
#beers,
#up_next {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: center;
}
.beer {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 10px;
    padding-top: 20px;
    padding-bottom: 20px;
    width: 100%;
}
.beer_images {
    width: 300px;
    padding: 10px;
}
.beer_image_selector {
    text-align: center;
}
.beer_image_selector img {
    border: 1px solid var(--color-beige);
    background-color: white;
    margin: 1px;
    cursor: pointer;
}
.beer_image_selector img:hover {
    border-width: 2px;
    margin: 0px;
}
.beer_image_holder {
    height: 300px;
    width: 300px;
    text-align: center;
    margin-bottom: 15px;
}
.beer_image {
    cursor: zoom-in;
}
.beer_infos {
    width: 900px;
    padding: 10px;
}
.beer_infos h1 {
    font-size: 30px;
}
.beer_infos p {
    font-size: 17px;
}
.beer_infos a {
    color: var(--color-beige);
}

#rating1 {
    background-color: #334841;
    color: #fff;
}
/** =============================================================
    LINKS
    ============================================================= */
#links {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-content: center;
    max-width: 1200px;
    margin: 0 auto;
}
#links div {
    width: 280px;
    padding: 10px;
    height: 80px;
}
#links a {
    font-size: 20px;
    color: var(--color-beige);
}
#links a:hover {
    color: white;
}

/** =============================================================
    FOOTER
    ============================================================= */
footer {
    background-color: var(--color-beige);
    color: black;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    height: 100px;
    width: calc(100% - 40px);
    padding: 20px;
    gap: 20px;
}

footer div {
    display: flex;
    width: 300px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

footer a {
    color: #000;
}
footer a:hover {
    color: #fff;
}

/** =============================================================
    IMAGE MODAL
    ============================================================= */
#backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;

    background-color: rgba(0,0,0,.7);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    cursor: zoom-out;
}

#image_modal {
    background-color: #fff;
    text-align: center;
    padding: 20px;
    flex-grow: 0;
}

#image_modal_image {
    height: var(--image-modal-height);
    margin-bottom: 20px;
}

#image_modal_text {
    color: #000;
}

@keyframes fade_in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
@keyframes fade_out {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}
.fade_in {
    animation-name: fade_in;
    animation-duration: 1s;
}
.fade_out {
    animation-name: fade_out;
    animation-duration: 1s;
}