@import "main.css";

/* Overlay loader */
#overlay {
	position: fixed;
	z-index: -1;
	height: 100vh;
	width: 100vw;
	color: #FFF;
	background-color: rgba(0,0,0,0.8);
	opacity: 0;
	transition: opacity .4s ease-in-out;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}
#overlay > * {
    display: none;
    text-align: center;
}
#loading {
    display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}
#loader {
	height: 100px;
	width: 100px;
	border: 10px solid rgba(0,0,0,0);
	border-top: 10px solid var(--primary-color);
	border-bottom: 10px solid var(--primary-color);
	border-radius: 50%;
	animation: spin 3s linear infinite;
}
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
img.overlay-icon {
    height: 48px;
    width: 48px;
}
#close-overlay {
    margin-top: 16px;
    font-size: larger;
}

/* Form */
.input-section {
    margin: 16px 0;
}

/* Group box */
fieldset {
    border-radius: 4px;
    padding: 8px;
}
fieldset:not(:first-child) {
    margin-top: 16px;
}
fieldset legend {
    font-weight: bolder;
}
fieldset .input-section:first-child {
    margin-top: 0px;
}
fieldset .input-section:last-child {
    margin-bottom: 0px;
}

/* Label */
label:not(.radio-label) {
    font-weight: bolder;
}
label > span {
    color: var(--primary-color);
}

/* Textbox */
input[type=text], input[type=email], input[type=number] {
    width: 100%;
    padding: 4px;
}

/* Textarea */
textarea {
    width: 100%;
    min-height: 4em;
    resize: vertical;
    padding: 4px;
}

/* Select */
select {
    width: 100%;
    padding: 4px;
}

/* Radio button */
.radio-button {
    display: flex;
    align-items: center;
}
.radio-button input[type=radio]:disabled ~ label {
    color: var(--disabled-color);
}
input[type=radio] {
    margin: .4rem;
}

/* Checkbox */
input[type=checkbox] {
    margin: .4rem;
}

/* Button */
button {
    padding: 8px 16px;
    background-color: var(--primary-color);
    border: none;
    border-radius: 6px;
    color: #fff;
    text-align: center;
    font-size: 14px;
    cursor: pointer;
}

/* Remove button */
.remove-participant {
    margin-top: -6px;
    margin-bottom: -8px;
    display: flex;
    justify-content: right;
}
.icon-button {
    font-weight: bolder;
    font-size: smaller;
    cursor: pointer;
    display: flex;
    align-items: center;
}
.icon-button:hover {
    color: var(--primary-color);
    transition: color 0.3s;
}
.cross-button {
    margin-left: 4px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.cross-button div {
    height: 2px;
    width: 16px;
    border-radius: 1px;
    background-color: black;
    transition: .25s ease;
}
.cross-button div:first-child {
    transform: translate(0px, 1px) rotate(-45deg);
}
.cross-button div:last-child {
    transform: translate(0px, -1px) rotate(45deg);
}
.icon-button:hover .cross-button div {
    background-color: var(--primary-color);
}

/* Banners */
.banner {
	margin: 8px 12px;
	padding: 10px 14px;;
    background-color: #FFDDDD;
    border-left: 6px solid #F44336;
	transition: 0.25s ease-in-out;
	display: flex;
}
.banner div {
    padding-left: 6px;
}

/* Show more text */
.show-more {
    font-weight: bold;
    cursor: pointer;
}
.show-more::before, .show-more::after {
    content: '-';
    padding: 0 8px;
  }
.show-more:hover {
    color: var(--primary-color);
}
.details {
    display: none;
    font-family: monospace;
}