@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Noto+Sans+Mono:wght@100..900&family=Noto+Serif:ital,wght@0,100..900;1,100..900&display=swap');

body {
	font-family: "Noto Serif", serif;
	color: hsl(0, 0%, 20%);
	background-color: hsl(0, 0%, 100%);
	font-size: 1rem;
	font-style: normal;
	text-decoration: none;
	text-align: left;
	line-height: 1.6;
	padding-top: 8rem; }

#obsah,
#top-panel,
#pata {
	width: clamp(840px, 90vw, 1100px);
	margin: 1rem auto 3rem auto;
	position: relative; }

#obsah {
	border: 1px solid hsl(0, 0%, 93%);
	background-color: hsl(0, 0%, 97%);
	padding: 2em;
	border-radius: 18px; }

header {
	width: 100%;
	margin: 0;
	padding: 0;
	text-align: center; }
header span {
	display: block;
	font-family: "Inter", "Noto Sans", sans-serif;
	font-size: 160%;
	color: hsl(0, 0%, 60%);
	margin-top: 0;
	margin-bottom: 10px; }

#hero p {
	display: block;
	font-size: 1.125rem;
	color: hsl(0, 0%, 33%);
	width: 70%;
	margin: 0 auto;
	padding: 0;
	text-align: center; }
.hero-akce {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 1.5rem;
	flex-wrap: nowrap;
	text-align: center;
	width: 100%;
	margin: 2rem 0 6rem 0;
	padding: 0; }


#hlavni-sekce {
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: stretch;
	gap: 1.25rem;
	flex-wrap: nowrap;
	margin: 1.25rem 0 0.625rem;
	padding-left: 0.625rem;
	padding-right: 0.625rem;
}

.box {
	width: auto;
	flex: 1 1 0;
	min-width: 0;
	min-height: 170px;
	display: flex;
	flex-direction: column;
	gap: 1rem;
	padding: 70px 1rem 1rem 1rem;
	border: 1px solid hsl(0, 0%, 85%);
	border-radius: 6px;
	background-color: hsl(0, 0%, 100%);
	float: left;
	position: relative;
}


.box h2 {
	font-family: "Inter", "Noto Sans", sans-serif;
	font-weight: 300;
	text-align: center;
	font-size: 1.4rem;
	line-height: 1.2;
}
.box p {
	font-size: 1rem;
	line-height: 1.6;
	margin-top: 0.5em;
	margin-bottom: 0;
	flex: 1 1 auto;
	hyphens: auto;
	overflow-wrap: anywhere; }
.box ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.box li {
	margin: 1em 0;
	line-height: 130%;
}

#top-panel {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: stretch;
	gap: 0.25rem;
	margin: 0;
	position: absolute;
	top: 1.5rem;
	left: 50%;
	transform: translateX(-50%);
	z-index: 5;
}

#top-panel #global {
	align-self: flex-start;
}

#top-panel #cse-search-box {
	align-self: flex-end;
}

#global,
#pata {
	font-family: "Inter", "Noto Sans", sans-serif;
	color: hsl(0, 0%, 80%);
	background-color: transparent;
	letter-spacing: 0.04em;
	word-spacing: 0.2em; }
#global {
	width: 100%;
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	justify-content: flex-end;
	border: none;
	text-align: right;
	padding: 0;
	font-size: 1rem; }
#pata {
	text-align: center; }

/* Vyhledávací formulář */
#cse-search-box {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 0.5rem;
	width: 100%;
	margin-top: .75rem;
	text-align: right; }
#cse-search-box label {
	display: none; }
#search {
	padding: .1em 1em 0;
	width: 12rem;
	height: 2em;
	border: none;
	border: 1px solid hsl(0, 0%, 80%);
	border-radius: 1em; }
#cse-search-box input[type="submit"] {
	width: 2rem;
	height: 2rem;
	border-radius: 15%;
	cursor: pointer;
	text-indent: -999px;
	border: none;
	background: hsl(0, 0%, 90%) url('images/bg-search-button.svg') no-repeat top right;
	background-size: cover; }
#cse-search-box input[type="submit"]:hover {
	background-position: bottom right; }

.searchtxt {
	color: hsl(0, 0%, 20%);
	background-color: hsl(0, 0%, 100%);
	font-size: small;
	padding: 3px 8px;
	margin-right: 0;
	border: 1px solid hsl(0, 0%, 80%);
	border-radius: 10px;
	outline: none; }


/* Standardní styly */
h1, h2 {
	background-color: transparent;
	letter-spacing: .02em;
	font-family: "Inter", "Noto Sans", sans-serif;
	color: hsl(0, 0%, 33%); }
h1 {
	font-size: clamp(2.2rem, 4vw, 3rem);
	font-weight: 400;
	margin-top: 2rem;
	margin-bottom: 1rem;
	text-align: center;
	line-height: 1.2; }
h2 {
	font-size: clamp(1.5rem, 2.6vw, 2rem);
	font-weight: 400;
	margin-top: 0.3em;
	margin-bottom: 0.5em; }
p {
	font-size: 1rem;
	line-height: 1.65;
	margin: 0.4em 0 0.2em 0 }

img {
	border: none; }

/* Odkazy */
a {
	background-color: transparent;
	text-decoration: none;
	border-bottom: 1px solid hsl(218, 10%, 80%); }
a:link {
	color: hsl(218, 10%, 44%); }
a:visited {
	color: hsl(357, 10%, 44%); }
a:hover,
a:active {
	color: hsl(357, 10%, 60%); }

#global a,
#pata a {
	color: hsl(0, 0%, 53%);
	text-decoration: none;
	border-bottom: 1px solid hsl(0, 0%, 87%);
	word-spacing: -0.1em; }
#global a {
	margin-left: 1rem;
}
#pata a {
	margin: 0 .5em;
}
#global a:hover,
#pata a:hover {
	color: hsl(14, 88%, 40%);
	border-bottom: 2px solid hsl(14, 88%, 80%); }

#top-panel #global a {
	border-bottom: 2px solid transparent;
	padding-bottom: 0.05rem;
}

#top-panel #global a:hover,
#top-panel #global a:focus {
	color: hsl(14, 88%, 40%);
	border-bottom-color: hsl(14, 88%, 80%);
}

a.btn,
a.btn-secondary {
	background-color:hsl(212, 97%, 46%);
	border:1px solid hsl(212, 97%, 43%);
	border-radius: 3px;
	color:hsl(0, 0%, 100%) !important;
	display:inline-block;
	padding: .75rem 1.75rem;
	font-family: "Inter", "Noto Sans", sans-serif;
	font-size: 1.4rem;
	font-weight: 300;
	line-height: 1.3;
	text-align:center;
	text-decoration:none !important;
	text-shadow: 1px 1px 1px hsl(212, 97%, 43%); }
a.btn:hover {
	background-color:hsl(212, 97%, 55%);
	cursor:pointer; }

a.btn-secondary {
	background-color:hsl(160, 97%, 36%);
	border:1px solid hsl(160, 97%, 33%);
	text-shadow: 1px 1px 1px hsl(160, 97%, 33%);}
a.btn-secondary:hover {
	background-color:hsl(160, 97%, 40%);
	cursor:pointer; }



#prevody-tabulky { --box-icon: url(images/bg-i-tabulka.webp); }
#fyzici-nobel { --box-icon: url(images/bg-i-osoba.webp); }
#programy-dalsi { --box-icon: url(images/bg-i-program.webp); }

.box::before {
	content: "";
	position: absolute;
	top: -40px;
	left: 50%;
	transform: translateX(-50%);
	width: 80px;
	height: 80px;
	border-radius: 50%;
	background: var(--box-icon) no-repeat center/contain;
}


/* Mobilizace */
@media screen and (max-device-width: 480px) {
/* { border: 1px solid red; } */

body, #obsah, #obsah h1, .box, #pata
{ position: relative; width: 100%; height: auto; margin: 0; padding: 0; border: none; background-color: hsl(0, 0%, 100%); }

body { padding: 0 .5em; }
a { white-space: nowrap; }

#top-panel {
	position: static;
	transform: none;
	width: 100%;
	margin: 0 0 1rem;
	align-items: stretch;
	gap: 0.25rem;
}
#global {
	justify-content: flex-start;
	gap: 0.5rem;
}
#global a {
	margin: 0;
}

h1 { background-image: none; font-size: medium; }

#cse-search-box {
	justify-content: flex-start;
	flex-wrap: wrap;
}

.box { background-image: none; }
.box h2 { margin-top: 2em; }
.box p { line-height: 180%; }

#pata { margin: 2em 0; }
#pata p:first-child { display: none; }

}
















