forked from cal/tdf-2023-webseite
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
517 lines
8.0 KiB
517 lines
8.0 KiB
/**
|
|
* Tage der digitalen Freiheit
|
|
* Handcrafted with ♥ by x~alotl
|
|
*/
|
|
|
|
/**
|
|
* Font Faces
|
|
*/
|
|
|
|
@font-face {
|
|
font-family: 'TitilliumWeb-Regular';
|
|
src: url('font/TitilliumWeb-Regular.ttf');
|
|
}
|
|
|
|
@font-face {
|
|
font-family: 'TitilliumWeb-Bold';
|
|
src: url('font/TitilliumWeb-Bold.ttf');
|
|
}
|
|
|
|
@font-face {
|
|
font-family: "aglet-mono-variable";
|
|
src: url('font/aglet-mono-variable.woff2') format("woff");
|
|
font-display: auto;
|
|
font-weight: 200 900;
|
|
font-stretch: normal;
|
|
}
|
|
|
|
@font-face {
|
|
font-family: "p22-cusp-square";
|
|
src: url('font/p22-cusp-square.woff2');
|
|
font-display: auto;
|
|
font-style: normal;
|
|
font-weight: 400;
|
|
font-stretch: normal;
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
* Global Variables
|
|
**/
|
|
|
|
:root {
|
|
--light: #ecf2eb;
|
|
--shadow: #7d707a;
|
|
--electric: #d9fbff;
|
|
--highlight: #8ae6e1;
|
|
--link: #cc30a8;
|
|
--shadow-rgb: 125, 112, 122;
|
|
--box-shadow: 0 0 12px rgba(var(--shadow-rgb), 0.3);
|
|
|
|
/* Animated Title Variables */
|
|
--wght-min: 200;
|
|
--wght-max: 900;
|
|
--dur: 2200ms;
|
|
--step: 70ms;
|
|
}
|
|
|
|
|
|
/**
|
|
* Base
|
|
**/
|
|
|
|
body {
|
|
background: #c6d0c8;
|
|
padding: 0;
|
|
margin: 0;
|
|
}
|
|
|
|
.background {
|
|
background-image: url("image/head.png");
|
|
background-repeat: no-repeat;
|
|
background-position: center top;
|
|
background-attachment: fixed;
|
|
background-size: auto;
|
|
min-height: 100vh;
|
|
padding-top: 20px;
|
|
margin: 0;
|
|
}
|
|
|
|
/* Enhance background size for very large screens */
|
|
@media (min-width: 1921px) {
|
|
.background {
|
|
background-size: 100% auto;
|
|
}
|
|
}
|
|
|
|
/* The main content area is 1000px wide, unless the screen is smaller than 1150px */
|
|
#content {
|
|
max-width: 1000px;
|
|
margin: 0 auto;
|
|
padding: 0 75px;
|
|
position: relative;
|
|
/* Important for the animated title width calculation */
|
|
container-type: inline-size;
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
* Text Styles
|
|
**/
|
|
|
|
p,
|
|
h2,
|
|
h3,
|
|
a,
|
|
li {
|
|
font-family: "TitilliumWeb-Regular";
|
|
font-size: 1.2em;
|
|
color: var(--shadow);
|
|
}
|
|
|
|
h2 {
|
|
font-family: "TitilliumWeb-Bold";
|
|
text-transform: uppercase;
|
|
font-size: 2.5em;
|
|
margin-top: 0.5em;
|
|
margin-block-end: 0em;
|
|
line-height: 1;
|
|
}
|
|
|
|
h3,
|
|
.big {
|
|
font-family: "TitilliumWeb-Bold";
|
|
font-size: 1.5em;
|
|
}
|
|
|
|
a {
|
|
color: var(--link);
|
|
text-decoration: none;
|
|
font-size: 1em;
|
|
}
|
|
|
|
a:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
ul {
|
|
list-style-type: none;
|
|
padding-left: 0;
|
|
}
|
|
|
|
ul li {
|
|
padding-left: 20px;
|
|
margin-top: 0px;
|
|
margin-bottom: 0px;
|
|
position: relative;
|
|
}
|
|
|
|
ul li:before {
|
|
content: "";
|
|
width: 8px;
|
|
height: 8px;
|
|
background-color: var(--shadow);
|
|
position: absolute;
|
|
left: 0;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
}
|
|
|
|
b {
|
|
font-family: "TitilliumWeb-Bold";
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
* Boxes
|
|
**/
|
|
|
|
.box {
|
|
background: var(--light);
|
|
margin-bottom: 2em;
|
|
padding: 0.5em 2em 1.4em 2em;
|
|
border: none;
|
|
box-shadow: var(--box-shadow);
|
|
}
|
|
|
|
.box-grid {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 2em;
|
|
}
|
|
|
|
.box-grid .box {
|
|
margin-bottom: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.box-grid .box .button-container {
|
|
margin-top: auto;
|
|
}
|
|
|
|
@media (max-width: 800px) {
|
|
.box-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
|
|
#map {
|
|
background-image: url("image/map.png");
|
|
}
|
|
|
|
#sponsor {
|
|
margin-top: 2em;
|
|
}
|
|
|
|
#imprint {
|
|
margin-bottom: 4em;
|
|
text-align: center;
|
|
}
|
|
|
|
/**
|
|
* Button
|
|
**/
|
|
|
|
.button-container {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
|
|
.button {
|
|
display: inline-block;
|
|
padding: 20px 40px;
|
|
font-size: 24px;
|
|
font-weight: bold;
|
|
text-decoration: none;
|
|
color: #000;
|
|
background-color: var(--electric);
|
|
border: none;
|
|
cursor: pointer;
|
|
transition: background-color 0.3s ease;
|
|
border-radius: 0;
|
|
margin: 0 auto;
|
|
box-shadow: var(--box-shadow);
|
|
}
|
|
|
|
.button:hover {
|
|
background-color: var(--highlight);
|
|
text-decoration: none;
|
|
}
|
|
|
|
.button.disabled {
|
|
background-color: #cccccc;
|
|
color: #666666;
|
|
cursor: not-allowed;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.buttons-wrapper {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
gap: 20px;
|
|
margin: 20px auto;
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
* Sponsor Logos
|
|
**/
|
|
.sponsor-logos {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 4em;
|
|
list-style: none;
|
|
padding: 2em;
|
|
margin: 0;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background-color: #f8f8f8;
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.sponsor-logos li {
|
|
list-style: none !important;
|
|
flex: 0 0 calc(33.333% - 10em);
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
|
|
.sponsor-logos img {
|
|
height: 60px;
|
|
}
|
|
|
|
|
|
/**
|
|
* Navigation Bar
|
|
**/
|
|
|
|
.navigationbar {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
display: flex;
|
|
justify-content: flex-start;
|
|
align-items: center;
|
|
width: 100%;
|
|
max-width: 1000px;
|
|
z-index: 1000;
|
|
padding: 0;
|
|
background-color: transparent;
|
|
}
|
|
|
|
.navigationbar>div {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
width: 100%;
|
|
}
|
|
|
|
.navigationbar img {
|
|
height: 16px;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.navigationbar a {
|
|
display: inline-block;
|
|
padding: 5px 10px;
|
|
font-size: 14px;
|
|
font-weight: bold;
|
|
text-decoration: none;
|
|
color: #000;
|
|
background-color: var(--electric);
|
|
cursor: pointer;
|
|
transition: background-color 0.3s ease, color 0.3s ease;
|
|
text-align: center;
|
|
margin: 0 5px;
|
|
box-shadow: var(--box-shadow);
|
|
}
|
|
|
|
.navigationbar a:hover {
|
|
transform: scale(1.1);
|
|
box-shadow: 0 0 16px rgba(var(--shadow-rgb), 0.5);
|
|
}
|
|
|
|
.navigationbar a.active {
|
|
background-color: var(--highlight);
|
|
cursor: not-allowed;
|
|
pointer-events: none;
|
|
}
|
|
|
|
#languages {
|
|
position: fixed;
|
|
top: 19px;
|
|
right: 10%;
|
|
transform: translateY(-50%);
|
|
background-color: #401E13;
|
|
padding: 10px;
|
|
padding-bottom: 3px;
|
|
z-index: 9999;
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
* Animated Title
|
|
**/
|
|
|
|
.title {
|
|
font-family: "aglet-mono-variable";
|
|
text-transform: uppercase;
|
|
font-size: 6cqw;
|
|
text-align: center;
|
|
white-space: nowrap;
|
|
color: var(--light);
|
|
text-shadow: 0 0 8px rgba(var(--shadow-rgb), 1);
|
|
width: 100%;
|
|
margin-top: 410px;
|
|
margin-bottom: 1cqw;
|
|
}
|
|
|
|
.title.en {
|
|
font-size: 7cqw;
|
|
}
|
|
|
|
/* Animates the weight of each character with the offset of their index */
|
|
.title .ch {
|
|
display: inline-block;
|
|
will-change: font-variation-settings;
|
|
font-variation-settings: "wght" var(--wght-min);
|
|
animation: wghtWave var(--dur) cubic-bezier(.45, 0, .1, 1) infinite alternate;
|
|
animation-delay: calc(var(--i) * var(--step));
|
|
}
|
|
|
|
/* Fix the width of spaces */
|
|
.title .sp {
|
|
width: 1ch;
|
|
}
|
|
|
|
@keyframes wghtWave {
|
|
from {
|
|
font-variation-settings: "wght" var(--wght-min);
|
|
}
|
|
|
|
to {
|
|
font-variation-settings: "wght" var(--wght-max);
|
|
}
|
|
}
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.title .ch {
|
|
animation: none;
|
|
font-variation-settings: "wght" 600;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
* Images Gallery
|
|
**/
|
|
|
|
.gallery {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
|
|
gap: 20px;
|
|
padding: 20px 0;
|
|
}
|
|
|
|
.gallery img {
|
|
width: 100%;
|
|
height: auto;
|
|
border-radius: 10px;
|
|
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
|
|
transition: transform 0.3s, box-shadow 0.3s;
|
|
}
|
|
|
|
.gallery img:hover {
|
|
transform: scale(1.10);
|
|
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
|
|
}
|
|
|
|
.lightbox {
|
|
display: none;
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: rgba(0, 0, 0, 0.8);
|
|
justify-content: center;
|
|
align-items: center;
|
|
z-index: 1000;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.lightbox img {
|
|
max-width: 90%;
|
|
max-height: 90%;
|
|
border-radius: 10px;
|
|
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
|
|
}
|
|
|
|
|
|
/**
|
|
* Floor Plan
|
|
**/
|
|
|
|
.floor-plan {
|
|
padding: 0;
|
|
overflow: hidden;
|
|
position: relative;
|
|
}
|
|
|
|
.floor-plan-image {
|
|
width: 100%;
|
|
height: 100%;
|
|
display: block;
|
|
margin: 0;
|
|
object-fit: cover;
|
|
object-position: center;
|
|
}
|
|
|
|
.location-marker {
|
|
position: absolute;
|
|
width: 40px;
|
|
height: 40px;
|
|
border: 6px solid #00ff66;
|
|
border-radius: 50%;
|
|
background: rgba(0, 255, 102, 0.6);
|
|
display: none;
|
|
z-index: 10;
|
|
animation: pulse 2s infinite;
|
|
transform: translate(-50%, -50%);
|
|
box-shadow: 0 0 20px #00ff66, 0 0 40px #00ff66, 0 0 60px #00ff66;
|
|
}
|
|
|
|
.location-marker.active {
|
|
display: block;
|
|
}
|
|
|
|
@keyframes pulse {
|
|
0% {
|
|
transform: translate(-50%, -50%) scale(1);
|
|
opacity: 1;
|
|
box-shadow: 0 0 20px #00ff66, 0 0 40px #00ff66, 0 0 60px #00ff66;
|
|
}
|
|
|
|
50% {
|
|
transform: translate(-50%, -50%) scale(1.3);
|
|
opacity: 0.8;
|
|
box-shadow: 0 0 30px #00ff66, 0 0 60px #00ff66, 0 0 90px #00ff66;
|
|
}
|
|
|
|
100% {
|
|
transform: translate(-50%, -50%) scale(1);
|
|
opacity: 1;
|
|
box-shadow: 0 0 20px #00ff66, 0 0 40px #00ff66, 0 0 60px #00ff66;
|
|
}
|
|
} |