/*----------------------------
GENERAL
------------------------------*/

@font-face {
    font-family: ubuntu;
    src: url(../font/ubuntu/Ubuntu-R.ttf);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: ubuntu, sans-serif;
}

p {
    font-size: 1.1rem;
    text-align: justify;
    line-height: 2.5rem;
    padding: 0.4rem 0.6rem;
}

/* General Flex */

.flex-container {
    display: flex;
    flex-flow: row nowrap;
    gap: 4rem;
	justify-content: space-evenly;
    align-items: center;
}

.flex-main {
    flex: 2 1 80%;
}

.flex-sidebar {
    flex: 1 1 20%;
}

/*----------------------------
MAIN HEADER
----------------------------*/

header {
    display: flex;
    flex-flow: column nowrap;
    background-color: #004d40;
    color: white;
    padding: 15px 0 10px 0;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

header img {
    animation: from-left 0.3s linear;
}

/* Navigation */

#main-menu {
    background-color: #00695c;
    margin: 0.7rem 0;
}

#nav-list {
    display: flex;
    padding-left: 0;
    flex-flow: row wrap;
    justify-content: center;
    list-style: none;
}

#nav-toggle {
	display: none;
}

#nav-list li {
    font-weight: bold;
    border-radius: 4px;
    transition: background 0.5s ease;
}

#nav-list li:hover {
    background-color: #00796b;
}

#nav-list a {
    display: inline-block;
	color: white;
    padding: 10px 20px;
	text-decoration: none;
}

#nav-list a:hover {
	text-decoration: underline;
}


/*-----------------------------------
MAIN CONTENT
------------------------------------*/

main {
    display: flex;
    margin-left: auto;
    margin-right: auto;
    max-width: 100rem;
    flex-flow: column nowrap;
    gap: 20px;
    padding: 1rem 3rem;
}

.welcome-text {
    padding: 0 3rem;
    text-align: justify;
}

.hidden {
    display: none;
}

.author {
    text-align: center;
    font-style: italic;
}

/* Gallery */

#thumbnail-div, #existing-thumbnails, .gallery {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
    padding: 0.4rem 0.6rem;
}

.thumbnail-image {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 0.5rem;
}

.thumbnail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.thumbnail-image:hover img {
    transform: scale(1.05);
}

.delete-btn, .thumbnail-image button, .thumbnail-image .hover-btn {
    position: absolute;
    width: auto;
    padding: 0.5rem;
    top: 0.7rem;
    right: 0.7rem;
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-weight: bold;
    font-size: 1.3rem;
    border-radius: 0.5rem;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.2s ease, transform 0.2s ease;

}

.docdel-btn {
    width: auto;
    background-color: white;
    color: #004D40;
    padding: 0;
    font-size: 1.4rem;
    border-radius: 0.5rem;
}

.docdel-btn:hover {
    color: red;
}

.thumbnail-image:hover .delete-btn, .thumbnail-image:hover button, .thumbnail-image:hover a {
    opacity: 1;
    transform: scale(1);
}



/* Address */

address {
    display: flex;
    flex-flow: column nowrap;
    text-align: center;
}

/* File list */
.selectable-list {
    list-style: none;
    margin: 2rem 1rem;
    padding: 0;
    border-left: 3px solid #004d4022;
}

.selectable-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 1.05rem;
    line-height: 1.6;
}

.selectable-list li:hover {
  background-color: #e0f2f1;
  transform: scale(1.01);
  box-shadow: 1px 1px 1px 1;
}


.selectable-list li::before, .icon-wrapper::before {
  flex-shrink: 0;
  display: inline;
  font-size: 1.4rem;
  line-height: 1.6;
  margin-top: 2px;
}

.icon-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.selectable-list li a {
  color: #004d40;
  text-decoration: none;
  font-weight: 600;
  word-break: break-word;
  transition: color 0.2s ease;
}

.selectable-list li a:hover {
  color: #00796b;
  text-decoration: underline;
}

.file-list li::before {
  content: "📄";
}

.informative-list li::before {
    content: "🌦️";
}

.event-wrapper::before {
  content: "📊";
}

.action-wrapper::before {
  content: "📅";
}

.action-list li::before, .event-list li::before {
    display: none;
    content: "️";
}

.separated-list {
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
}

/* Map section */

#map-section {
    margin-top: 3rem;
	width: 100%;
	max-width: 900px;
	min-width: 400px;
}

#map-section iframe {
	display: block;
	border: none;
	border-radius: 10px 10px 0 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
	animation: reveal .7s ease-in;
}

#map-section a {
	color: white;
	display: block;
	border-radius: 0 0 10px 10px;
	font-size: 0.8rem;
	font-weight: bold;
	padding: 0.5rem 0;
	text-align: center;
    background-color: #00695c;
	text-decoration: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: background 1s ease;
}

#map-section a:hover {
    background-color: #00796b;
	text-decoration: underline;
}

/* Headings */

h1 {
	margin: 0;
}

h2, h3, hgroup {
	color: #004d40;
	text-align: center;
	margin: 1rem 0;
	animation: from-top .5s linear;
}

h2, h3 {
	padding-botton: 10px;
	text-decoration: 2px underline;
}

h2 {
	font-size: 1.8rem;
}

h3 {
	font-size: 1.4rem;
}

hgroup {
	margin: 1rem 0;
	font-weight: bold;
	display: flex;
	flex-flow: column nowrap;
	gap: 15px;
}

hgroup p {
	text-align: center;
}

hgroup * {
	padding: 0;
	margin: 0;
}

figcaption {
	font-weight: bold;
	text-align: center;
}

.order-image {
	border-radius: 20px;
}	

.order-figure {
	margin-bottom: 50px;
}

/* Table */

caption {
	caption-side: bottom;
	padding: 10px;
	font-style: italic;
}

table {
	border-collapse: collapse;
	width: 100%;
	text-align: center;
}

th, td {
	border-bottom: 1px solid #ddd;
	padding: 1rem;
}

th {
	background-color: #004D40;
	color: white;
}

td:first-child {
	text-align: left;
	font-weight: bold;
}

th:first-child {
	text-align: left;
	border-top-left-radius: 10px;
}

th:last-child {
	border-top-right-radius: 10px;
}

.table-container {
	flex-grow: 2;
	overflow-x: auto;
}

/* Informační seznam */

.informative-list {
	list-style-position: inside;
}

/* Form elements */

.form-section {
}

form div {
	margin-bottom: 1rem;
}

label {
	display: block;
	margin-bottom: 0.5rem;
}

input, select, textarea {
    background-color: #e0f2f1;
	width: 100%;
    border: 1px solid #004d40;
	border-radius: 5px;
	font-size: 1rem;
	padding: 0.8rem;
}

input:focus, select:focus, textarea:focus {
    border-color: #00796b;
	outline: none;
    box-shadow: 0 0 5px rgba(0, 121, 107, 0.5);
}

form button {
	width: 100%;
    background-color: #00695c;
	border: none;
	border-radius: 5px;
	color: white;
	font-size: 1rem;
	cursor: pointer;
	font-weight: bold;
	padding: 0.8rem;
    transition: background 1s ease;
}

form button:hover {
    background-color: #00796b;
    text-decoration: solid white underline;
}

.button-list {
    list-style-type: none;
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.button-list li {
    background-color: #00695c;
    width: 100%;
    text-align: center;
    border-radius: 5px;
    transition: background 1s ease;
}

.button-list li a {
    display: block;
    padding: 0.8rem;
    color: white;
    font-weight: bold;
    text-decoration: none;
}

.button-list li:hover {
    background-color: #00796b;
    text-decoration: solid white underline;

}

.type-selection-div {
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.6rem;
    border-radius: 6px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.1s ease;
    display: black;
}

.type-selection-div div {
    margin: 0;
}

.type-selection-div label {
    cursor: pointer;
    display: inline-block;
    padding: 1rem 2rem;
    width: 100%;
    height: 100%;
    margin: auto;

}

.type-selection-div label:hover {
  background-color: #26a69a;
  color: white;
}

.type-selection-div input[type="radio"]:checked + label {
  background-color: #00796b;
  color: white;
  text-decoration: underline;
}

.warning {
    text-align: center;
    padding: 1rem;
    font-weight: bold;
    font-size: 1.4rem;
    border: none;
    color: black;
}

fieldset {
    border: none;
}

.type-selection-div div {
    width: 100%;
    text-align: center;
    background-color: #E0F2F1;
    border-radius: 5px;
    border: 1px solid #004D40;
}



textarea {
	height: 200px;
	resize: vertical;
}

.valid {
    color: #00796b;
    border-left: 2px solid #00796b;
    border-right: 2px solid #00796b;
}

.invalid {
	color: red;
	border-left: 2px solid red;
	border-right: 2px solid red;
}

form p {
	text-align: center;
	border-right: 2px solid #777;
	border-left: 2px solid #777;
	margin: 1rem 0;
	color: #444;
}


/*-----------------------------------
MAIN FOOTER
----------------------------------*/

footer {
	border-top: 1rem solid #004D40;
	margin-top: 3rem;
}

footer p {
	text-align: center;
	font-weight: bold;
}


#logo-list {
	display: flex;
	align-items: center;
	justify-content: space-around;
	flex-flow: row nowrap;
	list-style: none;
	padding: 0;
}

#logo-list img {
    border-radius: 8px;
	height: 80px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#logo-list img:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transform: scale(1.05);
}

#logo-section {
	padding: 20px 20px;
}

#copyright-section {
    background-color: #004d40;
    color: white;
    text-align: center;
    padding: 20px 0;
}


/*------------------------------
VERTICAL LAYOUT
----------------------------------*/

@media screen and (max-width: 60rem) {

	/* Main content */

	main {
		padding: 0.5rem 2rem;
	}

    .welcome-text {
        padding: 0 0.5rem;
    }

	p {
		font-size: 1.06rem;
		text-align: left;
		line-height: 1.6rem;
	}

	figure {
		margin: 0;
	}

	/* File list */

	.selectable-list {
		margin: 2rem 0;
	}

    .button-list {
        flex-flow: column nowrap;

    }

	/* General flexbox */

	.flex-container {
		flex-flow: column nowrap;
		gap: 1rem;
	}

	/* Map section */

	#map-section {
	    min-width: 0;
	}

	/* Main navigation */

	#main-menu {
		background-color: #004d40;
		border-radius: 10px;
		position: fixed;
		right: 1rem;
		top: 4rem;
		z-index: 1000;
		box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
	}

	#nav-list {
		display: none;
		flex-flow: column nowrap;
	}

	#nav-toggle {
		box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
		cursor: pointer;
		box-sizing: content-box;
		display: block;
		position: fixed;
		top: 1rem;
		right: 1rem;
		z-index: 1000;
		color: white;
		background-color: #004d40;
		border: none;
		border-radius: 10px;
		font-size: 1.4rem;
		font-weight: bold;
		padding: 10px 7px;
	}

	#nav-list.visible {
		display: flex;
	}

	/* Main Footer */

	#logo-list {
		flex-flow: column nowrap;
		gap: 1rem;
	}

	#logo-list img {
		width: 100%;
		height: 100%;
	}
		
}

@keyframes reveal {

	0% {
		opacity: 0;
	}

	100% {
		opacity: 1;
	}

}

@keyframes from-top {

	0% {
		opacity: 0.7;
		transform: translateY(-0.2rem);
	}

	100% {
		opacity: 1;
	}

}

@keyframes from-left {

	0% {
		transform: translateX(-1rem);
	}

	100% {
	}

}
