/*
    web-calendar to display multiple ics-calendars in a browser
    source code available at https://github.com/cbz20/Web-Calendar/
    Copyright (C) 2025 Claudius Zibrowius

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU Affero General Public License as published
    by the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU Affero General Public License for more details.

    You should have received a copy of the GNU Affero General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>.
*/

:root {
	--rub-blue: #17365c;
	--rub-green: #8dae10;
	--rub-grey: #e7e7e7;
}

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

.calendar-container {
	max-width: 1000px;
	margin: 0 auto;
	padding: 20px;
	min-width: 900px;
}


.calendar-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	color: var(--rub-blue);
}

#calendar-title {
	font-size: 24px;
	text-align: center;
	font-weight: bold;
	padding: 10px;
	cursor: pointer;
}

#calendar-title:hover {
	color: var(--rub-green);
}

.eventsummary{	
	font-weight: bold;
	font-size: 24px;
	color: var(--rub-blue);
	justify-content: left;
}

.eventlocation{	
	margin-top: 5px;
	margin-bottom: 10px;
}

.eventabstract{	
	margin-top: 10px;
}

.helpsection{	
	font-size: 20px;
	font-weight: bold;
	color: var(--rub-blue);
	margin-bottom: 5px;
}

b {
	color: var(--rub-blue);
}

/* Modal */

.modal {
	display: none;
	position: fixed;
	z-index: 1;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(255, 255, 255, 0.75);
	justify-content: center;
	align-items: center;
}

.modal-content {
	background-color: white;
	border: 2px solid var(--rub-blue);
	padding: 10px;
	margin-top: 0px;
	border-radius: 8px;
	display: inline-block;
	overflow-y: initial !important;
	word-wrap: break-word;
	max-width: 730px;
	max-height: 90vh;
}

.modal-header {
	font-size: 18px;
	margin-bottom: 5px;
	padding: 10px 10px 0px 10px;
}

.modal-body {
	font-size: 14px;
	padding: 0px 10px 0px 10px;
	margin-top: 0px;
	margin-bottom: 5px;
	max-height: 60vh;
	overflow-y: auto;
}

.modal-body h2 {
	color: var(--rub-blue);
}

.modal-center-container {
	width: 100%;
	text-align: center;

}

.modal-content p {
	text-align: justify;
}

.no-scroll {
	/* avoid scrolling when overlay is displayed */
	overflow: hidden;
}

.linkInAbstract {
	font-weight: 550;
}

/* buttons */

img {
	height: 100%;
}

label {
	color: #999;
	cursor: pointer;
	padding-left: 3px;
}
input{
	cursor: pointer;
}

.dummy-checkbox{
	color: var(--rub-green);
	accent-color: var(--rub-green);
	cursor: default;
}

button:hover:not(.setting-buttons, .dummy-button):hover {
	background-image: linear-gradient(rgba(0, 0, 0, 0.2) 0 0);
}

.setting-buttons {
	background-color: var(--rub-blue);
}

.setting-buttons:hover {
	background-color: var(--rub-green);
}

.dummy-button {
	background-color: var(--rub-blue);
}

.dummy-button:hover {
	background-image: none;
	background-color: var(--rub-blue);
	cursor: default;
}

.toggle-buttons-header {
	max-width: fit-content;
	margin-left: auto;
	margin-right: auto;
}

.toggle-buttons,
.calendar-header button {
	padding: 6px 8px;
	margin: 2px 2px;
	font-size: 16px;
	color: white;
	border: none;
	border-radius: 4px;
	cursor: pointer;
}

#dummy-category-button {
	background-color: var(--rub-green);
}

.svg-icon {
	width: 15px;
	user-select: none;
}

#help {
	font-size: 16px;
	padding: 10px 10px;
	color: var(--rub-blue);
	cursor: pointer;
}

#error-message {
	color: red;
	font-weight: 600;
	text-align: center;
	width: 100%;
	display: block;
}

.hide-me {
	display: none;
}

/* accordion */

.accordion {
            width: 100%;
            width: 670px;
            margin: 5px auto;
            border: 0px solid var(--rub-grey);
            border-radius: 5px;
            overflow: hidden;
}

.accordion-header {
            background: var(--rub-grey);
            color: var(--rub-blue);
            padding: 10px;
            font-weight: bold;
            cursor: pointer;
            border-bottom: 0px solid var(--rub-grey);
            display: flex;
            justify-content: space-between;
            align-items: center;
}

.accordion-content {
            max-height: 0;
            overflow: hidden;
            padding: 5px 10px;
            border-bottom: 0px solid var(--rub-grey);
            background: #f9f9f9;
            transition: max-height 0.3s ease-out;
}

.accordion-content p{
	margin-top: 1em;
	margin-bottom: 1em;
}

.arrow {
            font-family: FontAwesome;
            transition: transform 0.3s ease;
}

.arrow::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f054";
}


.active .arrow {
            transform: rotate(90deg);
}

.active + .accordion-content {
            max-height: 2000px;
            padding: 0px 10px;
}
