/* D-Arch Digital Signage - CSS 
    Version 3.0 - Thomas Gemperli <gemperli@ethz.ch> */

/* ETH font */
@font-face {
    font-family: 'DINPro';
    font-weight: normal;
    font-style: normal;
    src: url("/css/fonts/dinpro-regular.woff2") format("woff2");
}
@font-face {
    font-family: 'DINPro';
    font-weight: bold;
    font-style: normal;
    src: url("/css/fonts/dinpro-bold.woff2") format("woff2");
}
@font-face {
    font-family: 'DINPro';
    font-weight: normal;
    font-style: italic;
    src: url("/css/fonts/dinpro-italic.woff2") format("woff2");
}

/* reset defaults */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

/* basics */
body {
    font-family: 'DINPro', sans-serif;
    font-size: .9vw;
    background-color: #ffffff;
    color: #000000;
}
a {
    color: #000000;
    text-decoration: none;
}

/* grid layout */
.container {  
    display: grid;
    min-width: 100%;
    min-height: 100%;
    max-width: 100%;
    max-height: 100%;
    grid-template-columns: .07fr 1fr .1fr;
    grid-template-rows: .2fr .1fr .3fr 1fr .1fr;
    gap: 5px 20px;
    grid-auto-flow: row;
    grid-template-areas:
        "rand datum logo"
        "rand autor logo"
        "rand titel logo"
        "rand inhalt logo"
        "rand fuss logo";
}

/* section definitions */
div.rand { 
    grid-area: rand; 
    position: relative;
    /* border: 1px dotted #808080; */
}
div.datum { 
    grid-area: datum; 
    position: relative;
    /* border-bottom: 1px solid #808080; */
}
div.logo { 
    grid-area: logo; 
    position: relative;
}
div.autor { 
    grid-area: autor; 
    position: relative;
}
div.titel { 
    grid-area: titel; 
    position: relative;
}
div.inhalt { 
    grid-area: inhalt; 
    position: relative;
}
div.fuss { 
    grid-area: fuss; 
    position: relative;
}

/* absolute sections */
div.qrcode { 
    position: absolute;
    top: 82%;
    left: 82%;
    transform: translate(-50%, -50%);
    border: 40px solid #000000;
    border-radius: 120px;
}
img.qrcode {
    width: 160px;
    height: 160px; 
    object-fit: contain;
    background-color: #000000;
    filter: invert(100%);
}

/* logo */
img.logo { 
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(270deg) scale(5.0);
    max-width: 40%;
}
img.ethlogo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(270deg) scale(6.2);
    max-width: 40%;
}

/* image */
span.bild { 
    position: absolute;
    height: 100%;
    width: 100%;
    opacity: 0.3;
    z-index: -1; 
}
img.bild {
    width: 100%;
    height: 100%; 
    object-fit: cover;
    object-position: center;
}

/* color conversations */
.ethblau {
    filter: invert(8%) sepia(53%) saturate(1930%) hue-rotate(199deg) brightness(99%) contrast(109%);
}
.ethhellblau {
    filter: invert(16%) sepia(98%) saturate(6935%) hue-rotate(252deg) brightness(53%) contrast(126%);
}
.ethpink {
    filter: invert(75%) sepia(62%) saturate(125%) hue-rotate(294deg) brightness(102%) contrast(98%);
}
.darchrot {
    filter: invert(32%) sepia(91%) saturate(2941%) hue-rotate(344deg) brightness(97%) contrast(92%);
}

/* text formating and placement */
span.datum { 
    position: absolute;
    display: block;
    white-space: nowrap; 
    width: auto;
    top: 70%;
    transform: translateY(-50%);
    left: 0;
    font-size: 1.8em;
    color: #ffffff;
}
span.autor { 
    position: absolute;
    display: block;
    white-space: nowrap;
    width: 100%;
    height: 100%;
    left: 0;
    font-size: 1.6em;
    color: #333333;
}
span.titel { 
    position: absolute;
    display: block;
    width: 100%;
    height: 100%;
    left: 0;
    margin-top: .4em;
    font-size: 3.2em;
    font-weight: bold;
    /* border-bottom: 1px solid #808080; */
}
span.inhalt { 
    position: absolute;
    display: block;
    width: 80%;
    left: 0;
    font-size: 2.6em;
    /* text-align: justify; */
}
span.seitenzahl {
    position: absolute;
    display: block;
    white-space: nowrap; 
    width: auto;
    bottom: 0;
    left: 0;
    font-size: 1.6em;
    color: #ffffff;
}
span.invert, a.invert {
    color: #ffffff;
    background-color: #000000;
}
a.regular {
    color: #ffffff;
    background-color: #a62222;
    /* color: #000000; */
    /* background-color: transparent; */
}
