@font-face {
    font-family: "Open Sans";
    src: url(./fonts/OpenSans-VariableFont_wdth\,wght.ttf) format('truetype');
}

@font-face {
    font-family: "GFS Neohellenic";
    src: url(./fonts/GFSNeohellenic-Regular.ttf) format('truetype');
}
@font-face {
    font-family: "GFS Neohellenic Custom";
    src: url(./fonts/GFSNeohellenic-Bold-Edited45.ttf) format('truetype');
}

:root{
    /* Variables here */
        
    --channel-values-orange: 221, 118, 34;
    --channel-values-black: 31, 32, 34;
    --channel-values-white: 255, 255, 255;

    --pallet-orange: rgb(var(--channel-values-orange));
    --pallet-black: rgb(var(--channel-values-black));
    --pallet-white: rgb(var(--channel-values-white));

    --color-header: var(--pallet-orange);
    --color-background: var(--pallet-black);
        --color-background-half-transparent: rgba(var(--channel-values-black), 0.5);
        --color-background-transparent: rgba(var(--channel-values-black), 0);
    --color-text: var(--pallet-white);
    --color-topMenu: var(--pallet-white);
    --color-bottomMenu: var(--pallet-white);
    --color-glow: var(--pallet-white);
    --color-hover: var(--pallet-orange);
    --color-hamburger: var(--pallet-orange);

    --side-spacing: 40px;
    --top-spacing-pc: 20px;
    --top-spacing-mobile: 80px;
    --small-spacing: 10px;
    --inbetween-spacing: 35px;
    --sidebar-spcaing: 5px;

    --top-fade-height: 28px;
    --bottom-glow-thickness: 2px;

    --home-image-height: 547px;

    --ham-top-spacing: 20px;
    --ham-bar-width: 70px;
    --ham-bar-height: 10px;
    --ham-gap: 6px;
    --ham-anim-timing: 200ms ease-in-out;
    --ham-height: calc(var(--ham-bar-height)*3 + var(--ham-gap)*2);
    --ham-x-width: calc(var(--ham-height) * 1.41421356237);

    --sidebar-width: 300px;
    --sidebar-fade-width: 100px;
}
body {
    padding: 0px;
    margin: 0px;
    background-color: var(--color-background);
    font-family: "Open Sans", sans-serif;
    color: var(--color-text);
}


header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    color: var(--color-topMenu);
    overflow-x:hidden;
    margin-bottom: -16; /*to remove gap between header and content*/
}
.mobile-header{
    padding-bottom: var(--small-spacing);
    padding-left: var(--side-spacing);
    padding-right: var(--side-spacing);
    padding-top: var(--top-spacing-mobile);
    box-shadow: 0px 0px 10px 0px var(--color-glow);
    display: none; /*gets set to flex on small screen*/
    justify-content: space-betewwen;
    align-items: last baseline;
    background-color: var(--color-background);
    position:relative;
}
.header-content{
    padding-bottom: var(--small-spacing);
    padding-left: var(--side-spacing);
    padding-right: var(--side-spacing);
    padding-top: var(--top-spacing-pc);
    box-shadow: 0px 0px 10px 0px var(--color-glow);
    display: flex;
    justify-content: space-between;
    align-items: last baseline;
    background-color: var(--color-background);
    position: relative;
}
@media screen and (max-width:600px) {
    .header-content{
        display:none;
    }
    .mobile-header{
        display:flex;
    }
}
.header-margin{
    position: relative;
    background: linear-gradient(var(--color-background) 10%, var(--color-background-transparent));
    height: var(--top-fade-height);
    z-index: -1;
}

footer {
    position: relative;
    bottom: 0;
    right: 0;
    left: 0;
    color: var(--color-bottomMenu);
    padding-top: var(--small-spacing);            
}
.footer-content{
    padding-left: var(--side-spacing);
    padding-right: var(--side-spacing);
    padding-bottom: var(--top-spacing-pc);
    padding-top: var(--small-spacing);
    box-shadow: 0px 0px var(--bottom-glow-thickness) 0px var(--color-glow);
    display: flex;
    justify-content: right;
    align-items: last baseline;
    background-color: var(--color-background);
}

.footer-margin{
    background-color:var(--color-background);
    height: 13px;
}



header h1{
    padding-bottom: 0px;
    margin: 0px;
    font-family: 'GFS Neohellenic Custom', sans-serif;
    font-weight: 300;
    font-size: 52pt;
    color: var(--color-header);
    line-height: 1.035;
}

header a, footer a{
    text-decoration: none;
    color:inherit;
}
header a:hover, footer a:hover
{
    color: var(--color-hover);
    text-decoration: underline;
}


@media screen and (min-width:1389px) and (max-width:1510px){
    .TextNearImage{
        padding-bottom: 45px;
    }
}
@media screen and (min-width:1469px) and (max-width:1510px){
    .TextNearImage{
        padding-bottom: 65px;
    }
}
@media screen and (min-width:1480px) and (max-width:1510px){
    .TextNearImage{
        padding-bottom: 80px;
    }
}
@media screen and (min-width:1504px) and (max-width:1510px){
    .TextNearImage{
        padding-bottom: 80px;
    }
}

@media screen and (min-width:1255px) and (max-width:1349px){
    .HomeImage{
        max-width:563px !important;
    }
}
@media screen and (min-width:1275px) and (max-width:1300px){
    .HomeImage{
        padding-bottom: 20px;
    }
}
@media screen and (min-width:1288px) and (max-width:1300px){
    .HomeImage{
        padding-bottom:20px;
    }
}
@media screen and (min-width:1324px) and (max-width:1349px){
    .HomeImage{
        padding-bottom:20px;
    }
}

content a{
    text-decoration: underline;
    color: var(--color-header)
}


content h2
{
    color: var(--color-header);
}
content div
{
    text-align: justify;
}
content h3
{
    color: var(--color-header);
    margin-bottom: 0px;
    margin-top: 20px;
}

.Page{
    margin-left: var(--side-spacing);
    margin-right: var(--side-spacing);
    /*margin-top: var(--top-fade-height);*/
    margin-bottom: var(--small-spacing);
}

.hamburger-menu {
    display: flex;
    flex-direction:column;
    gap: var(--ham-gap);
    
    width: var(--ham-bar-width);
    position: absolute;
    top: var(--ham-top-spacing);
    right: var(--side-spacing);
    z-index: 2;
    cursor: pointer;
    transition: width var(--ham-anim-timing);
}

.hamburger-menu::before,
.hamburger-menu::after,
.hamburger-menu input{
    content: "";
    width: var(--ham-bar-width);
    height: var(--ham-bar-height);
    background-color: var(--color-hamburger);
    border-radius: 9999px;
    transform-origin: right center;
    transition: opacity var(--ham-anim-timing), width var(--ham-anim-timing), rotate var(--ham-anim-timing), translate var(--ham-anim-timing);
}

.hamburger-menu input{
    appearance: none;
    padding: 0;
    margin: 0;
    outline: none;
    pointer-events: none;
}
.hamburger-menu:has(input:checked)::before{
    rotate: -45deg;
    width: var(--ham-x-width);
    translate: calc(var(--ham-height)* -0.5 + var(--ham-bar-height) * 0.25) calc(var(--ham-bar-height) * -0.5);        
}
.hamburger-menu:has(input:checked)::after{
    rotate: 45deg;
    width: var(--ham-x-width);
    translate: calc(var(--ham-height)* -0.5 + var(--ham-bar-height) * 0.25) calc(var(--ham-bar-height) * 0.5);        
}
.hamburger-menu:has(input:checked){
    width: var(--ham-height);
}

.hamburger-menu input:checked {
    opacity: 0;
    width: 0;
    translate: var(--ham-height) 0;
}

.Menu {
    display: flex;
    justify-content: space-between;
    gap: var(--inbetween-spacing);
}
@media screen and (max-width:800px) {
     header .Menu.slim{
         flex-direction: column;
         justify-content: right;
    }
    header h2{
         margin: 0px;
         text-align: right;
    }
}
@media screen and (max-width:900px){
    header .Menu.wide{
        flex-direction: column;
        justify-content: right;
    }
    header h2{
        margin: 0px;
        text-align: right;
    }
}
@media screen and (max-height:721px) {
    header{
        position: relative;
    }
}

.DoNotUnderline:hover{
    text-decoration: none;
}

.Indent{
    margin-left: 40pt;
}

.Home{
    min-height: var(--home-image-height);
}

.HomeImage{
    max-width: 48%;
    max-height: var(--home-image-height);
    object-fit:unset;
    float:left;
    margin-right: 20px;
    margin-bottom: 10px;
}


@media screen and (max-width:900px) {
    .HomeImage{
        width: 100%;
        max-width: 100%;
        max-height: none;
        object-fit: scale-down;
        margin-bottom: var(--top-spacing-pc);
    }
}

.hamburger-sidebar{
    position: absolute;
    top: calc( var(--ham-top-spacing) + var(--sidebar-spacing) );
    right: var(--side-spacing);
    translate: calc(var(--sidebar-width) + var(--side-spacing)) 0;
    height: calc(100% - var(--ham-top-spacing) * 3 - var(--ham-bar-height) * 3 - var(--ham-gap) * 2 );
    width: var(--sidebar-width);    
    background: linear-gradient(to right, var(--color-background-transparent), var(--color-background) 40%);
    padding-bottom: 10px;
    transition: translate var(--ham-anim-timing);
}
.hamburger-menu:has(input:checked) + .hamburger-sidebar {
    translate: 0;
}
.hamburger-nav{
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.ham-entry{
    text-align: right;
}

@media screen and (max-width: 500px){
    p{
        hyphens: manuel;
        line-break: loose;
    }
}
@media screen and (max-width: 430px){
    .normal-email-row{
        display:none;
    }
    .slim-email-row{
        display:inline;
    }
}
@media screen and (min-width: 501px){
    .nowrap{
        white-space: nowrap;
    }
}
@media screen and (min-width: 431px){
    .slim-email-row{
        display:none;
    }
    .normal-email-row{
        display:table-row;
    }
}
ul {
    padding-left: 1em;
}

