﻿@import url('fonts.css');


/* General layout ----------------------------------------------------------------------------------------------------*/

:root {
    --main-font: 'Noto Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --bs-body-font-size: min(max(11px, 0.8vw), 14px);

    --content-width: 1600px;
    --sidebar-width: min(max(250px, 25%), 300px);
    --bs-danger-rgb: 205, 46, 10;

    --color-cosin: #e75c12;
    --color-border: #ced4da;
}

body, html {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    font-family: var(--main-font);
    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
}

body:before {
    content: ' ';
    position: fixed;
    top: 5rem;
    left: 0;
    width: min(55%, 900px);
    height: max(100%, 50vw);
    background-image: url('/image/wireframe.png');
    opacity: 0.1;
    background-size: cover;
    background-position: top right;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index:10;
}

.top-bar {
    background-image: linear-gradient(160deg, #111 0%, #222 70%, #000);
    height: 4rem;
    align-items: center;
}

.top-bar-container {
    max-width: var(--content-width);
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
    height: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

@media (max-width: 540px) {
    .top-bar-container {
        padding: 0 0.5rem;
    }
}

.top-bar-container > div {
    flex: 1 0 0;
    width: 100%;
    max-width: 100%;
    white-space: nowrap;
}

a.logo img {
    height: 50px;
    margin-left: -3px;
}

@media (max-width: 540px) {
    a.logo img {
        height: 26px;
        margin-left: 0;
    }
}

nav {
    background: #f0f0f0;
    height: 3rem;
    box-shadow: 0 3px 20px rgba(0, 0, 0, 0.25);
}

nav .nav-container {
    max-width: var(--content-width);
    margin-left: auto;
    margin-right: auto;
    padding: 0 1.5rem 0 1rem;
    height: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

@media (max-width: 540px) {
    nav .nav-container {
        padding: 0 0.5rem 0 0;
    }
}

nav .nav-container > div {
    flex: 1 0 0;
    width: 100%;
    max-width: 100%;
    white-space: nowrap;
}

nav .nav-link {
    display: inline-block;
    padding: 0.4rem 1rem;
    color: black !important;
    text-decoration: none;
    font-size: 1.1em;
}

@media (max-width: 540px) {
    nav .nav-link {
        padding: 0.4rem 0.5rem;
    }
}

nav .nav-link:focus, nav .nav-link:hover {
    color: var(--color-cosin);
}

nav .nav-link.active {
    color: var(--color-cosin) !important;
}

nav .nav-link.disabled {
    opacity: 0.3;
}

main {
    position: absolute;
    top: 7rem;
    bottom: calc(1.5em + 1rem);
    width: 100%;
    overflow: auto;
}

main .main-container {
    max-width: var(--content-width);
    margin-left: auto;
    margin-right: auto;
    padding: 3rem 2rem;
    display: flex;
    align-items: stretch;
    height: 100%;
    justify-content: center;
    text-align: center;
}

main .main-container div {
    margin-top: auto;
    margin-bottom: auto;
    font-size: 1.3em;
}

footer {
    position: absolute;
    text-align: center;
    color: #919191;
    bottom: 0;
    height: calc(1.5em + 1rem);
    line-height: 1.5em;
    padding-top: 0.5rem;
    width: 100%;
    background: white;
    box-shadow: 0 3px 20px rgba(0, 0, 0, 0.25);
    font-size: max(0.7em, 10px);
}

footer footer.block1, footer .block2, footer .block1-1, footer .block1-2, footer .block2-1, footer .block2-2 {
    white-space: nowrap;
    display: inline;
}

footer .linkedin {
    height: 15px;
    vertical-align: middle;
    filter: grayscale(1);
    -webkit-filter: grayscale(1);
    opacity: 0.6;
}


footer .linkedin:hover {
    opacity: 1;
    filter: none;
    -webkit-filter: none;
}

a,
.btn-link {
    cursor: pointer;
    text-decoration: none;
}

a:not(.btn):not(.nav-link), a:not(.btn):not(.nav-link):hover,
.btn-link, .btn-link:hover {
    color: var(--color-cosin);
}

a:hover, .btn:hover span:not(.material-icons-sharp):first-child {
    text-decoration: underline;
}

a:not(.logo):focus-visible, .btn:not(.logo):focus-visible {
    box-shadow: 0 0 4px var(--color-cosin) !important;
    outline: none !important;
}

a:active, a:focus,
.btn:active, .btn:focus {
    outline: none !important;
}

.text-cosin {
    color: var(--color-cosin);
}

a:hover,
.btn-link:hover {
    text-decoration: underline;
}
