* {
    --background-gradient: linear-gradient(70deg, rgba(245,245,245,0.8) 0%, rgba(255,255,255,0) 100%);
}

#header {
    z-index:500;
    color: black;
    font-weight: bold;
    flex: 3;
    display: flex;
    flex-direction: row;
    height: fit-content;
    justify-content: space-between;
    align-items: center;
    background: var(--background-gradient);
    top: 0;
    width: calc(100% - calc(30px * 2));
    padding: 0 30px;
}

#moving-header {
    z-index:500;
    position: -webkit-fixed;
    position: fixed;
    visibility: hidden;
    display: flex;
    flex-direction: row;
    height: fit-content;
    justify-content: space-between;
    align-items: center;
    background: var(--background-gradient);
    top: 0;
    width: calc(100% - calc(20px * 2));
    padding: 0 20px;
}

#overlay {
    background-color: rgba(0,0,0,0.5);
    position:fixed;
    left:0;
    top: 0;
    width:100%;
    height:100%;
    z-index:999;
}

.logo {
    -webkit-transition: max-height var(--animation-duration), min-height var(--animation-duration); 
    -moz-transition: max-height var(--animation-duration), min-height var(--animation-duration); 
    -ms-transition: max-height var(--animation-duration), min-height var(--animation-duration); 
    -o-transition: max-height var(--animation-duration), min-height var(--animation-duration);
    transition: max-height var(--animation-duration),  min-height var(--animation-duration);
    max-height: var(--logo-height);
    max-width: var(--logo-width);
    min-height: var(--logo-height);
    min-width: var(--logo-width);
    float: left;
    cursor: pointer;
    --animation-duration: 0.3s;
}

.big_logo {
    --logo-height:150px;
    --logo-width:300px;
}

.small_logo {
    --logo-height:60px;
    --logo-width:120px;
}

.flag {
    height:30px;
    width:50px;
    cursor: pointer;
    float: right;
}

.main {
    width:96%;
    padding: 10px 2% 10px 2%;
    display: flex;
    flex-direction: column;
}

.box {
    background: var(--main-color);
    border-radius: 8px;
    /*box-shadow: 0px 0px 15px 15px var(--main-color);*/
    margin: 30px;
}

.case {
    border: 1px solid #eaeaea;
    border-radius: 3px;
    background-color:#D1D8E1
}

/*email scrapping protection*/
span.liame { unicode-bidi:bidi-override; direction:rtl }
span.liame:before { content:"moc.noitamotua" }
span.liame:after { content:"@tcatnoc" }

@media screen and (max-width: 1200px) {
    #header {
        flex-direction: column;
        flex: 1;
    }
    #header > * {
        padding: 10px;
    }
}