@font-face {
  font-family: 'Unifont';
  src: url('/Unifont-17.0.05.woff2') format('woff2');
  unicode-range: U+AC00-D7A3, U+1100-11FF, U+3130-318F, U+A960-A97F, U+D7B0-D7FF; /*Ignore the linter warning*/
}

body {
  background: #000;
  background: url("/solen_1916.jpg");
  background-position: center top;
  background-size: cover;
  background-attachment: fixed;
  background-repeat: no-repeat;

  padding: 0;
  margin: 0;
  color: #000;
  font-family: Nunito, Georgia, Unifont, "Times New Roman", serif;
  line-height: 150%;
  }
  
/*Accent color*/
a {
  color: #801818; 
  }
  
a:hover {
  background-color: silver;
  transition: background-color 0.5s ease-out
  }

a:has(img):hover {
  background-color: transparent;
  }
  
b, strong {
  color: #801818;
  }
  
h1, h2, h3, h4, h5, .nav {
  font-family: Georgia, Unifont, "Times New Roman", serif;
  }
  
h1, h2, h3, h4, h5 {
  line-height: 125%;
  }
  
blockquote {
  border-left: 2px solid #801818;
  padding: 0.1px 0.75em;
  margin-left: 1.25em;
  }
  
hr {
  margin: 1.75rem 0;
  height: 1px;
  border: 0;
  background: #801818;
  }

.header-gap {
  height: 500px;
  }
  
/*Contains everything that isn't the header*/
.page-wrapper {
  background: #f1f1f1;
  background: rgba(241,241,241,0.8);
  margin: 0 auto;
  padding: 0.1px 0;
  }
  
/*Limit the main page content to 900px column*/
.top-section, .main, .footer {
  width: 900px;
  margin: 0 auto;
  padding: 0.1px 0;
  }
  
/*Prevent image overflow*/
.main img, .top-section img, .footer img, .topleft img, .topright img {
  max-width: 100%;
  height: auto;  
  }

/*Contains the top section*/
.top-section-wrapper {
  background: linear-gradient(0deg, #f1f1f100 0%, #f1f1f1bf 50%, #f1f1f1bf 100%);
  padding: 1rem 0 2rem 0;
  }
  
/*Area with links, title & bio, below the header*/
.top-section {
  border-bottom: 2px solid #801818;
  padding-bottom: 0.5rem;
  display: flex;
  flex-direction: column;
  }

.topright {
  float: none;
  width: 100%;
  }

.topright .nav {
  max-width: 100%;
  text-align: right;
  }

.topleft h1 {
  font-size: 1.4rem;
  }

.topleft h1, .topright {
  padding-top: 1.35rem;
  margin-top: 0;
  }
  
.topleft p {
  font-size: 0.95rem;
  }
  
/*Nav links. Used in top section and footer.*/
.nav {
  font-size: 1.075em;
  }
  
/*Nav link styling*/
.nav a {
  padding: 0.3em 0.5em;
  display: inline-block;
  text-decoration: none;
  font-weight: bold;
  }
  
/*Main content div*/
.main {
  padding: 1rem 0;
  }

.footer {
  text-align: center;
  font-size: 0.85rem;
  padding: 1.5rem 0 1.75rem 0;
  border-top: 2px solid #801818;
  }  
  
.footer .nav a {
  padding: 0.3em 0.5em;
  }



/*-----Gallery-----*/



.gallery-section {
  position: relative;
}

.gallery-container {
  display: flex;
  width: 100%;
  min-height: 30vh;
  max-height: 100%;
  align-items: flex-start;
  box-sizing: border-box;
  position: relative;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: auto;
  width: auto;
  background: rgba(0,0,0,0);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s linear;
  z-index: 0;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
  width: 100%;
}

.panel:not(.open) ~ .overlay.active {
  width: 100%;
}

.galleries {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0; /* prevents flex item from overflowing when panel opens */
}

.galleries h2 {
  padding: 0 1rem;
  margin: 1.5rem 0 0.5rem;
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-content: stretch;
  gap: 1rem;
  padding: 1rem;
  flex: none;
  transition: all 0.3s linear;
  box-sizing: border-box;
}

.card {
  width: 200px;
  height: 275px;
  background: #fff;
  overflow: hidden;
  flex: none;
  cursor: pointer;
  z-index: 1;
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.panel {
  z-index: 2;
  width: 0;
  height: 0;
  flex: none;
  background: white;
  overflow: hidden;
  transition: width 0.3s ease;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
}

.panel.open {
  width: 70%;
  height: 100%;
  padding: 2rem;
}

.panel img {
  width: 100%;
  height: auto;
  margin-bottom: 1rem;
}

#closePanel {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

.column {
  float: left;
  padding: 10px;
}

.left {
  width: 31%;
  display: grid;
  justify-content: center;
}

.right {
  width: 25%;
  padding: 10px 30px;    
}

.middle {
  width: 44%;   
  padding: 10px 15px;
}

.row:after {
  content: "";
  display: table;
  clear: both;
}

.panel-body {
  display: flex;
  flex: 1;
  gap: 1rem;
}

.panelleft {
  width: 35%;
  object-fit: cover;
  flex: none;
}

.panelmiddle {
  width: 45%;
  padding: 10px 30px;
  flex: none;
}

.panelright {
  width: 20%;
  flex: none;
}

.right a, .panelright a {
  background-color: #d9d9d8;
  border-radius: 5px;
  max-width: 100%;
  color: black;
  padding: 10px 20px;
  margin: 4px auto;
  text-align: center;
  text-decoration: none;
  display: flex;
  justify-content: center;
}

.right a:hover, .right a:active, .panelright a:hover, .panelright a:active {
  background-color: #91ae91;
  color: white;
}



/*-----Screen layouts----*/



@media (max-width: 1564px) {
  .left {
    width: 100%;
  }

  .right {
    width: 30%;
  }

  .middle {
    width: 70%;   
    padding: 10px 15px;
  }
    
  .card {
    width: 23%;
    height: 275px;
  }
    
  .panel.open {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    overflow-y: auto;
  }
}


@media(max-width: 920px) {
  .top-section, .main, .footer {
    width: 800px;
    width: calc(100vw - 2rem);
    }
  
  .panel.open {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    overflow-y: auto;
  }
    
  .right a, .panelright a {
    width: 100%;
    max-width: 100%;
  }    
    
  .column {
    width: 100%;
  }
  
  .card {
    width: calc((100% - 2rem) / 3);
    height: 275px;
  }
  
  .left, .right, .middle, .panelleft, .panelright, .panelmiddle {
    width: 100%;
  }
  
  .gallery img {
    max-width: 100%;
  }  
  
  .footerdeco {
    flex-wrap: wrap;
  }
  
  .deco_middle {
    order: 1;  
    flex: 1 1 100%; 
  }
  
  .deco_left,
  .deco_right {
    flex: 1 1 50%; 
  }
}
  
/*Mobile*/
@media(orientation:portrait), (max-width: 575px) {
  .header-gap {
    height: 60vh;
  }
  
  .top-section, .left, .right .nav, .main, .footer {
    margin: 0 auto;
    width: auto;
    padding:0;
  }
    
  .main, .top-section, .footer {
    margin: 0.1px 1em;
  }
    
  .topleft, .topright, .topright .nav {
    display: block;
    text-align: center;
  }
    
  .topleft, .topright, .topright .nav {
    float: none;
    width: 100%;
  }
    
  .topright .nav {
    max-width: 100%;
    width: 100%;
  }
  
  .panel.open {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    overflow-y: auto;
  }
    
  .right a, .panelright a {
    width: 100%;
    max-width: 100%;
  }    
    
  .column {
    width: 100%;
  }
  
  .card {
    width: calc((100% - 2rem) / 3);
    height: 165px;
  }
  
  .left, .right, .middle, .panelleft, .panelright, .panelmiddle {
    width: 100%;
  }
  
  .gallery img {
    max-width: 100%;
  }
  
  .footerdeco {
    flex-wrap: wrap;
  }
  
  .deco_middle {
    order: 1;  
    flex: 1 1 100%; 
  }
  
  .deco_left,
  .deco_right {
    flex: 1 1 50%; 
  }
}



/*-----Decorations-----*/



/*Current page indicator*/  
.top-section .active {
  color: #f1f1f1;
  background-color: #801818;
}
  
.footer .active {
  color: #f1f1f1;
  background-color: #801818;
}

/*Time-based greeting*/
.joreggelt {
  color: #f1f1f1;
  text-shadow: 3px 3px 4px rgba(240,128,128,0.7), -3px -3px 4px rgba(100,149,237,0.7), 0px 0px 8px rgba(255,165,0,0.9);
}

.jonapot {
  color: #f1f1f1;
  text-shadow: 3px 3px 4px rgba(0,191,255,0.7), -3px -3px 4px rgba(0,0,255,0.7), 0px 0px 8px rgba(225,215,0,0.9);
}

.joestet {
  color: #f1f1f1;
  text-shadow: 3px 3px 4px rgba(255,140,0,0.7), -3px -3px 4px rgba(25,25,112,0.7), 0px 0px 8px rgba(220,20,60,0.9);
}

.joejszakat {
  color: #f1f1f1;
  text-shadow: 3px 3px 4px rgba(75,0,130,0.7), -3px -3px 4px rgba(25,25,112,0.7), 0px 0px 8px rgba(70,130,180,0.9);
}

/*Footer images*/
.footerdeco {
  text-align: center;
  padding: 0.5rem 0 0 0;
  display: flex;
  justify-content: center;
}

.footerdeco img {
  max-width: none;
  flex: 0 0 auto;
  width: 52px;
  height: 59px;
  object-fit: cover;
}

.deco_middle img {
  max-width: 547px;
  flex: 0 0 auto;
  width: 100%;
  height: 100%;
  object-fit: fill;
}