/* 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;
}
span {
    background-color: #ffffff;
}

/* grid layout */
.container {  
    display: grid;
    min-width: 100%;
    min-height: 100%;
    max-width: 100%;
    max-height: 100%;
    grid-template-columns: .07fr 1fr .7fr .1fr;
    grid-template-rows: .2fr .1fr .8fr .25fr .25fr .25fr .1fr;
    gap: 5px 20px;
    grid-auto-flow: row;
    grid-template-areas:
        "rand datum datum logo"
        "rand typ typ logo"
        "rand titel bild logo"
        "rand zeit bild logo"
        "rand ort bild logo"
        "rand veranstalter bildfuss logo"
        "rand fuss fuss logo";
}

/* section definitions */
div.rand { 
    grid-area: rand; 
    position: relative;
}
div.logo { 
    grid-area: logo; 
    position: relative;
}
div.fuss { 
    grid-area: fuss; 
    position: relative;
}
div.datum { 
    grid-area: datum; 
    border-bottom: 1px solid #808080;
    position: relative;
}
div.logo { 
    grid-area: logo; 
    position: relative;
}
div.typ { 
    grid-area: typ; 
    position: relative;
}
div.titel { 
    grid-area: titel; 
    position: relative;
}
div.zeit { 
    grid-area: zeit; 
    border-top: 1px solid #808080;
    position: relative;
}
div.ort { 
    grid-area: ort; 
    border-top: 1px solid #808080;
    position: relative;
}
div.veranstalter { 
    grid-area: veranstalter; 
    border-top: 1px solid #808080;
    position: relative;
}
div.bild { 
    grid-area: bild; 
    /* border: 2px dotted #a9a9a9; */
    position: relative;
}
div.bildfuss { 
    grid-area: bildfuss; 
    position: relative;
}

/* absolute sections */
div.qrcode { 
    position: absolute;
    top: 82%;
    left: 57%;
    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%;
}

/* 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%);
}
.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.aenderung { 
    position: absolute;
    display: block;
    white-space: nowrap; 
    width: auto;
    top: 70%;
    transform: translateY(-50%);
    left: 42ch;
    font-size: 1.8em;
    color: #ef3e34;
    text-transform: uppercase;
}
span.typ { 
    position: absolute;
    display: block;
    white-space: nowrap;
    width: 100%;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    font-size: 1.6em;
    color: #333333;
}
span.titel { 
    position: absolute;
    display: block;
    width: 100%;
    height: 70%;
    left: 0;
    font-size: 2.8em;
    font-weight: bold;
    overflow: hidden;
}
span.zeit, span.ort, span.veranstalter { 
    position: absolute;
    display: block;
    white-space: nowrap;
    width: 90%;
    height: 100%;
    left: 4.6em;
    font-size: 1.4em;
    color: #333333;
    z-index: -1;
    overflow: hidden;
}
span.seitenzahl {
    position: absolute;
    display: block;
    white-space: nowrap; 
    width: auto;
    bottom: 0;
    right: 0;
    font-size: 1.6em;
    color: #ffffff;
}
span.invert {
    color: #ffffff;
    background-color: #000000;
}

/* image placement */
span.bild { 
    position: absolute;
    height: 100%;
    width: 100%;
    z-index: -1;
}
img.bild {
    width: 100%;
    height: 100%; 
    object-fit: contain;
    object-position: right;
    background-color: #ffffff;
    z-index: -1;
}
span.symbol { 
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    font-size: 5.2em;
}

