/* === Elements ===  */

*{
    position: relative;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: whitesmoke;
}

/* Body */
body{
    background-color: #555;
    display: flex;
    flex-direction: column;
    background-image: url(/img/background.jpg);
    background-attachment: fixed;
    height: 100vh;
}

/* Header */
header{
    background-color: #222;
    border-bottom: 2px solid #ff1b14;
    padding: 20px 0;
    box-shadow: 0 3px 20px #111;
    position: fixed;
    width: 100%;
    z-index: 100;
}

#header-logo{
    position: absolute;
    left: 10px;
    top: 10px;
}

#desktop-nav{
    display: flex;
    justify-content: center;
    align-items: center;
}

#desktop-nav a{
    margin: 0 1%;
    box-sizing: border-box;
    transition-duration: 0.3s;
    font-size: 22px;
}

#desktop-nav a:hover, #desktop-nav a.current-page, 
#phone-nav a:hover, #phone-nav a.current-page{
    color: #ff1b14;
}

/* Header: Background Image Button */
#bg-img-btn{
    position: absolute;
    right: 10px;
    top: 10px;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
}

#bg-img-btn img{
    height: 30px;
}

#bg-img-btn img.flipped{
    transform: scaleX(-1);
}

/* Phone Nav */
#phone-nav-container{
    background-color: #222;
    height: 100vh;
    width: 500px;
    position: fixed;
    z-index: 300;
    right: 0;
    display: flex;
    box-shadow: -5px 0 20px #111;
    right: -550px;
    transition: 0.5s;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

#close-phone-nav{
    display: block;
    height: 40px;
    width: 40px;
    padding: 10px;
    transition-duration: 0.4s;
    margin: 20px 0 0 20px;
}

#close-phone-nav:hover{
    opacity: 0.6;
    cursor: pointer;
}

#phone-nav{
    display: flex;
    flex-direction: column;
    font-size: 34px;
    margin: 40px 40px 0;

}

#phone-nav a{
    padding: 10px 0;
    transition-duration: 0.4s;
}

/* Phone Nav Button */
#phone-nav-button{
    position: fixed;
    right: 10px;
    top: 10px;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 0 10px;
    z-index: 200;
    height: 50px;
}

#phone-nav-button img{
    height: 30px;
}

/* Main */
main{
    margin-top: 102px;
}

main section{
    margin-bottom: 15px;
}

/* Footer */
footer{
    background-color: #222;
    padding: 20px 0;
    border-top: 2px solid #ff1b14;
    box-shadow: 0 -3px 20px #111;
    margin-top: auto;
}

#copyright-msg{
    position: absolute;
    left: 30px;
    transform: translateY(-170%);
}

#footer-logos{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

#footer-logos img{
    margin: 0 10px;
    flex-grow: 0;
}

/* Headings */
h1{ font-size: 34px; }

h2{ font-size: 28px; }

h3{ font-size: 22px; }

/* Anchors */
a{
    text-decoration: none;
}

/* === Shared === */

/* Page Width */
#desktop-nav, main, #footer-logos{
    width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

/* Section Separation */
main, section:last-child{
    margin-bottom: 30px;
}

/* === Classes === */

/* MARGIN */

/* Left */
.ml-auto{ margin-left: auto; }

.ml-10{ margin-left: 10px; }

.ml-40{ margin-left: 40px; }

/* Right */
.mr-auto{ margin-right: auto; }

.mr-10{ margin-right: 10px; }

/* Bottom */
.mb-10{ margin-bottom: 10px; }

/* --- */

/* Title Area */
.title-area{
    border-right: 3px solid #ff1b14;
    margin: 0 auto 15px;
    text-align: left;
    background-color: #222;
    padding: 2%;
    box-shadow: 0 0 20px #111;
}

.title-area.flex{
    display: flex;
    align-items: flex-start;
}

.title-area.flex h1:not(.mr-auto){
    margin-right: 40px;
}

.title-area.flex .red-button{
    flex-shrink: 0;
}

/* Content Area */
.content-area{
    background-color: #222;
    color: whitesmoke;
    padding: 2%;
    box-shadow: 0 0 20px #111;
}

.content-area p{
    text-align: justify;
}

.content-area p:not(:last-child){
    margin-bottom: 15px;
}

/* Gallery Page */
.gallery-page #large-imgs{
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.gallery-page #large-imgs img{
    border: 6px solid #222;
    border-radius: 5px;
    max-width: 100%;
    box-sizing: border-box;
    margin-left: auto;
    margin-right: auto;
    background-color: #222;
}

/* Gallery page - Top buttons */
.gallery-page #top-buttons{
    justify-content: space-between;
    display: flex;
}

.gallery-page #top-buttons .button-group > *:not(:last-child){
    margin-right: 10px;
}

/* Gallery page - Img buttons */
.gallery-page .img-button *{
    vertical-align: middle;
}

.gallery-page .img-button .arrow{
    height: 100%;
}

.gallery-page .img-button#prev-img-button .arrow{
    transform: scaleX(-1);
}

/* Gallery */
.gallery{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    width: 100%;
    gap: 10px;
}

.gallery a, .gallery div{
    display: flex;
    flex-direction: column;
    background-color: #222;
    padding: 1.5%;
    border-radius: 3px;
    transition-duration: 0.3s;
    box-shadow: 0 0 20px #111;
}

.gallery a img, .gallery div img{
    transition-duration: 0.3s;
    object-position: center;
}

.gallery a:hover, .gallery div:hover{
    background-color: #333;
    /* filter: brightness(1.2); */
    cursor: pointer;
}

.gallery a:hover img, .gallery div:hover img{
    /* opacity: 0.9; */
    filter: brightness(1.15);
}

.gallery img{
    width: 100%;
    max-width: 600px;
    height: 250px;
    /* max-height: 390px; */
    object-fit: cover;
}

.gallery img.align-top{
    object-position: top;
}

.gallery .caption{
    padding: 2%;
    font-size: 20px;
    text-align: center;
}

/* Link */
.link{
    text-decoration: underline;
    color: #ff1b14;
    transition-duration: 0.2s;
}

.link:hover{
    color: #ff6b66;
}

/* Hidden */
.hidden{
    display: none !important;
}

/* Red Button */
.red-button{
    background-color: #ff1b14;
    padding: 10px 15px;
    border: none;
    font-size: 18px;
    font-weight: bold;
    transition-duration: 0.3s;
    border-radius: 5px;
    text-align: center;
}

.red-button:hover{
    background-color: #ff6b66;
    cursor: pointer;
}

/* Height of 45px */
.h45{
    height: 45px;
}