@font-face {
    font-family: 'timer';
    src: url('/Unibody8Bold.woff2') format('woff2'),
    	 url('/Unibody8Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

*, *::before, *::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	font-family: "Roboto", sans-serif;
	font-optical-sizing: auto;
	font-weight: normal;
	font-style: normal;
	font-variation-settings:
		"wdth" 100;
}

:root {
	font-size: clamp(12px, 0.85vw, 16px);
}

body {
	background: #000000;
}

#tf2-event-notif-wrapper {
	width: 100%;
	height: 2em;
	padding: 0 1rem;
	background: #2eb82e;
	color: white;
	font-size: 1.25rem;
	text-shadow: 0 0 3px black;
	text-align: center;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
}

#image-top {
	width: 100%;
}

#timer {
	position: relative;
	background-image: url("/content/timer.jpg");
	width: 50%;
	aspect-ratio: 1024 / 518;
	margin: 0 25%;
	margin-top: 3rem;

	background-repeat: no-repeat;
	background-position: center;
	background-size: cover;
}

.segments-wrapper {
	position: absolute;
	left: 11.5%;
	top: 45%;
	width: 76%;
	height: 45%;

	display: flex;
	align-items: center;
	justify-content: space-around;
}

.timer-segment {
	color: #ffb1b1;
	text-shadow: 0 0 16px #ff2e2e;

	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1vw;
}

.timer-digits {
	font-family: "timer", sans-serif;
	font-weight: bold;
	font-size: 3vw;
}

.timer-text {
	font-family: "timer", sans-serif;
	font-size: 0.8vw;
}

#tv {
	margin-top: 31vw;
	position: relative;
	background-image: url("/content/tv.jpg");
	width: 100%;
	aspect-ratio: 1600 / 1506;
	overflow: show;

	background-repeat: no-repeat;
	background-position: center;
	background-size: cover;
}

svg.tv-clip {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

#map-img {
	position: absolute;
	top: -30vw;
	width: 30vw;
	margin: 0 35vw;
	border-radius: 2rem;
	display: block;
	border: 1px solid #4f4f4f;
	box-shadow: 0 0 5px #4f4f4f;
}

#tv-video {
	display: block;
	border: none;
	position: absolute;
	top: 37.75%;
	left: 35%;
	width: 30%;
	height: 21%;
	overflow: hidden;
	clip-path: url(#tv-clip-path);
}

#info1-wrapper {
	display: flex;
	align-items: flex-start;
	justify-content: space-around;
	padding-top: 6rem;
}

#info1-wrapper .info-box {
	max-width: 40vw;
}

#bottom-info {
	position: relative;
	margin-top: -25rem;
	z-index: 10;
}

.bottom-info-elem {
	margin: 0 25vw;
	margin-top: 2.5rem;
}

.info-box {
	position: relative;
	background-color: rgba(0, 0, 0, 0.5);
	box-shadow: 0 0 5px #4f4f4f;
	border-radius: 2rem;
	padding: 1.5rem;
	max-width: 50vw;
	overflow: hidden;
	transition: height 0.5s ease-in-out;
	pointer-events: none;
	--after-text: "Pokaż"
}

.info-box.collapsible.collapsed {
	height: calc(1.5rem * 2 + 3.25rem);
}

.info-box.collapsible::after {
	content: var(--after-text);
	position: absolute;
	top: 1.5rem;
	right: 1.5rem;
	padding: 0.75rem 0.75rem;
	border-radius: 1rem;
	box-shadow: 0 0 5px #4f4f4f;
	background-color: #1f1f1f;
	color: white;
	cursor: pointer;
	pointer-events: all;
}

.info-box > p {
	font-size: 3rem;
	font-weight: 900;
	color: #c86747;
	margin-bottom: 1rem;
}

.info-box > span {
	display: inline-block;
	font-size: 1.4rem;
	font-weight: normal;
	color: white;
	text-align: justify;
	margin-top: 2rem;
	word-break: break-word;
}

.info-box > span ul > li {
	margin-left: 2.5rem;
}

.info-box > span:first-of-type{
	margin-top: 0;
}

.info-box > img {
	width: 66%;
	aspect-ratio: 1024 / 243;
}

.info-box strong {
	font-weight: bold;
}

.info-box a {
	pointer-events: all;
	text-decoration: none;
	color: #cc3366;
	font-weight: bolder;
}

.info-box a:hover {
	color: #f76898;
}

footer {
	background-color: #2f2f2f;
	width: 100%;
	margin-top: 3rem;
	padding: 1rem 3rem;
	color: white;
	text-align: center;
}

footer > p {
	font-size: 1.25rem;
	width: 50%;
	margin: 0 auto;
}

.misc-image {
	position: absolute;
	width: 30vw;
	z-index: -1;
}

#kapelut {
	top: 10%;
	right: 10%;
}

#patelka {
	bottom: 10%;
	left: 10%;
}

@media screen and (max-width: 1280px) {
	#tv {
		margin-top: calc(30% + 41vw);
	}

	#map-img {
		width: 40vw;
		margin: 0 30vw;
		top: calc(-30% - 40vw);
	}

	#info1-wrapper {
		position: absolute;
		flex-direction: column;
		margin: 0 10vw;
		top: -30%;
		gap: 3rem;
	}

	#info1-wrapper .info-box {
		max-width: 80vw;
	}

	.bottom-info-elem {
		margin: 0 10vw;
		max-width: 80vw;
		margin-top: 2.5rem;
	}
}

@media screen and (max-width: 940px) {
	#tv {
		margin-top: calc(50% + 51vw);
	}

	#map-img {
		width: 50vw;
		margin: 0 25vw;
		top: calc(-50% - 50vw);
	}

	#info1-wrapper {
		top: -50%;
	}

	#bottom-info {
		margin-top: -10rem;
	}

	footer > p {
		width: 100%;
	}
}

@media screen and (max-width: 820px) {
	#tv {
		margin-top: calc((780px - 100vw) * 2 + 60% + 51vw);
	}

	#map-img {
		top: calc((780px - 100vw) * -2 - 60% - 50vw);
	}

	#info1-wrapper {
		top: calc((780px - 100vw) * -2 - 60%);
	}
}