:root {
    --copperplate: "Copperplate", sans-serif;
    --skia: "Skia", sans-serif;
    --fc-border-color: gray;
    --fc-today-bg-color: #fdd76e;
}

body {
    background-image: url(src/img/bg_01.jpg);
    backdrop-filter: blur(2px);
}

h1,h2,h3,h4,h5 {
    font-family : var(--copperplate);
    color: purple;
}

/*p, a, select, textarea, input{
    font-family: var(--skia);
    font-size: 12px;
}*/


pre {
    white-space: pre-line;
}

label.prize.col-form-label{
    width: 100%;
}

.logo {
    max-width: 6%;
    margin-left: 25px;
    position: absolute;
    top: 0;
}
.logo {
    max-width: 9%;
}

.navbar-expand-lg .navbar-collapse {
    justify-content: center;
}

nav.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-link {
    margin-left: 25px;
}

/** Custom stuff**/

.container-search,
.container-map,
.container-events{
    background-color : rgba(242, 228, 196, 0.78);
    border: 2px solid purple;
    border-radius : 20px ;
    margin-top: 60px;
    padding: 20px;
    max-width: 80%;
    min-width: 40%;
    box-shadow: 0 17px 50px 0 rgba(11,20,26,.19),
    0 12px 15px 0 rgba(11,20,26,.24);
}


.container-map {
    color: purple;
}
.container-map a {
    color: purple;
    text-decoration: none;
}

#calendar {
    background-color: white;
    padding: 10px;
    border-radius: 20px;
}

div.event-border {
    display : flex;
    height : 100px;
}

.event-border > .category,
.event-border > .date,
.event-border > .flyer
{
    flex-grow : 1;
}

.event-border > .info
{
    flex-grow : 4;
}

div.event-info {
    flex-grow: 5;
}

.event-border > .category {
    display: grid;
    background-color : red;
    color : white;
    font-family: Copperplate, serif;
    place-content: center center;
}

.container-category {
    display : grid;
    place-content : center center;
}


label.col-form-label, span.input-group-text {
    display: inline-block;
    background-color: orange;
    text-align: center;
    border-radius: 5px;
    border: 1px solid purple;
    font-weight: bold;
    font-size: 16px;
    color: purple;
    font-family: var(--copperplate);
}

label.col-form-label {
   width: 140px;
}

.fc-day-other {
    background-color: #D8CCAF;
}

.fc-event-title{
    font-family: var(--skia);
    font-size: 0.7rem;
}

#calendar {
    background-color: rgba(242, 228, 196, 0);
}

.fc-event-title-container {
    text-align: center;
}

#fc-dom-1, .fc .fc-col-header-cell-cushion {
    font-family: var(--copperplate);
}



#container-events {
    margin-bottom: 4rem;
}

.container-events {
    display: flex;
    height: 150px;
    padding : 0 0 0 0;
    border-radius : 36px;
    background-color: #fff;
}

div.style-square, div.date-square {
    text-align: center;
    padding: 10px;
    display: flex;
    align-items: center;
    border-right: 2px solid black;
    max-width: 200px;
    flex: 1 1 0px;
}

.style-square {
    width: 180px !important; /* Force width to 200px */
    min-width: 180px; /* Ensure minimum width is also 200px */
    flex-shrink: 0; /* Prevent the square from shrinking */
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.style-square h1 {
    margin: 0;
    text-align: center;
    word-wrap: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.2;
    padding: 2px;
    font-size: 14px;
    width: 100%;
}

div.row > label.add-more {
    font-family: var(--copperplate), serif;
    background-color: #ffffffa8;
}

div.event-info {
    display: grid;
    grid: 1fr 1fr 1fr / 3fr .25fr 150px ;
    grid-template-areas:
        "title-event . flyer"
        "categories . flyer"
        "socials . flyer"
;
    padding: 5px;
}

div.event-info > div.title-event {
    grid-area: title-event;
    max-height: 25px;
    font-weight: bold;
}

div.event-info > div.categories-event {
    grid-area: categories;
    max-height: 65px;
    line-height: normal;
}

div.event-info > div.socials {
    grid-area: socials;
    display: flex;
    justify-content: space-around;
}

div.event-info > img {
    grid-area: flyer;
    max-width: 100%;
    max-height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
/* Popout effect on hover */
div.event-info > img:hover {
    transform: translateY(-10px) scale(2.05); /* Moves and scales up the image */
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2); /* Adds a deeper shadow */
}

.w-100 {
    margin: 0
}
.style-square > h1 {
    font-family: var(--copperplate);
    font-size: 2rem;
}

.date-square > h1 {
    font-family: var(--copperplate);
}

.categories-event > p {
    padding-left: 5%;
    padding-right: 5%;
}


/* Event page */
div.container.event-title {
    display:flex;
    padding: 0;
    border-radius: 0;
}

div.container.event-title > div {
    padding: 10px;
}

div.container.event-title > div.event-title {
    flex: 2;
    font-family: var(--copperplate);
    font-size: 2rem;

}

div.container.event-title > div.event-dancestyle {
    flex: 1;
    font-family: var(--copperplate);
    font-size: 2rem;
    text-align: center;
}



div.container.main-information {
    display: grid;
    gap: 15px;
    grid-template-columns: 2fr 1fr;
    border-radius: 0;
}

div.container.secondary-information {
    display: grid;
    gap: 15px;
    grid-template-columns: minmax(1fr, 150px) minmax(600px,4fr);
    border-radius: 0;
}

div.container.desc-information {
    border-radius: 0;
    margin-bottom: 4em;
}

div.container.desc-information h1 {
    font-family: var(--copperplate);
    color: purple;

}

div.container.main-information h1 {
    font-family: var(--copperplate);
}

.dates {
    grid-column: span 3;
    background-color: #d9c4a0;
    text-align: center;
    padding: 10px;
    min-width: 150px;
}

.styles > ul {
    list-style-type: none;
    padding-left: 0;
}

/*
TEST
 */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(12, 1fr); /* 12-column grid */
    grid-template-rows: auto auto auto;
    gap: 10px;
    padding: 20px;
}

/* Header Section */
.header {
    grid-column: span 12;
    text-align: center;
    background-color: #7e1e6a;
    color: white;
    padding: 10px 0;
}

.title-box {
    grid-column: span 12;
    text-align: right;
    background-color: #7e1e6a;
    color: white;
    padding: 10px;
}



.styles {
    background-color: #f5e6d3;
    padding: 10px;
}

div.event-photo {
    text-align: center;
}
div.event-photo img {
    max-height: 600px;
}

.flyer {
    grid-column: span 3;
    text-align: center;
    background-color: #000;
    color: white;
    padding: 20px;
    font-size: 1.2rem;
}

.day-schedule {
    background-color: #fbe0a5;
    padding: 15px;
    display: grid;
    grid: auto auto / 1fr 1fr 1fr;
    grid-auto-flow: column;
    text-align: center;
}

.day-schedule .main-schedule {
    border-left: 2px solid;
    border-right: 2px solid;
    margin: 0;
}

.day-schedule h2, h3, h4 {
    font-family: var(--copperplate);
    color: purple;
}

 .checkbox-wrapper-10 .tgl {
     display: none;
 }
.checkbox-wrapper-10 .tgl,
.checkbox-wrapper-10 .tgl:after,
.checkbox-wrapper-10 .tgl:before,
.checkbox-wrapper-10 .tgl *,
.checkbox-wrapper-10 .tgl *:after,
.checkbox-wrapper-10 .tgl *:before,
.checkbox-wrapper-10 .tgl + .tgl-btn {
    box-sizing: border-box;
}
.checkbox-wrapper-10 .tgl::-moz-selection,
.checkbox-wrapper-10 .tgl:after::-moz-selection,
.checkbox-wrapper-10 .tgl:before::-moz-selection,
.checkbox-wrapper-10 .tgl *::-moz-selection,
.checkbox-wrapper-10 .tgl *:after::-moz-selection,
.checkbox-wrapper-10 .tgl *:before::-moz-selection,
.checkbox-wrapper-10 .tgl + .tgl-btn::-moz-selection,
.checkbox-wrapper-10 .tgl::selection,
.checkbox-wrapper-10 .tgl:after::selection,
.checkbox-wrapper-10 .tgl:before::selection,
.checkbox-wrapper-10 .tgl *::selection,
.checkbox-wrapper-10 .tgl *:after::selection,
.checkbox-wrapper-10 .tgl *:before::selection,
.checkbox-wrapper-10 .tgl + .tgl-btn::selection {
    background: none;
}
.checkbox-wrapper-10 .tgl + .tgl-btn {
    outline: 0;
    display: block;
    width: 4em;
    height: 2em;
    position: relative;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
.checkbox-wrapper-10 .tgl + .tgl-btn:after,
.checkbox-wrapper-10 .tgl + .tgl-btn:before {
    position: relative;
    display: block;
    content: "";
    width: 50%;
    height: 100%;
}
.checkbox-wrapper-10 .tgl + .tgl-btn:after {
    left: 0;
}
.checkbox-wrapper-10 .tgl + .tgl-btn:before {
    display: none;
}
.checkbox-wrapper-10 .tgl:checked + .tgl-btn:after {
    left: 50%;
}

.checkbox-wrapper-10 .tgl-flip + .tgl-btn {
    padding: 2px;
    transition: all 0.2s ease;
    font-family: sans-serif;
    perspective: 100px;
}
.checkbox-wrapper-10 .tgl-flip + .tgl-btn:after,
.checkbox-wrapper-10 .tgl-flip + .tgl-btn:before {
    display: inline-block;
    transition: all 0.4s ease;
    width: 100%;
    text-align: center;
    position: absolute;
    line-height: 2em;
    font-weight: bold;
    color: #fff;
    position: absolute;
    top: 0;
    left: 0;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 4px;
}
.checkbox-wrapper-10 .tgl-flip + .tgl-btn:after {
    content: attr(data-tg-on);
    background: #02C66F;
    transform: rotateY(-180deg);
}
.checkbox-wrapper-10 .tgl-flip + .tgl-btn:before {
    background: #FF3A19;
    content: attr(data-tg-off);
}
.checkbox-wrapper-10 .tgl-flip + .tgl-btn:active:before {
    transform: rotateY(-20deg);
}
.checkbox-wrapper-10 .tgl-flip:checked + .tgl-btn:before {
    transform: rotateY(180deg);
}
.checkbox-wrapper-10 .tgl-flip:checked + .tgl-btn:after {
    transform: rotateY(0);
    left: 0;
    background: #7FC6A6;
}
.checkbox-wrapper-10 .tgl-flip:checked + .tgl-btn:active:after {
    transform: rotateY(20deg);
}

.message {
    padding: 10px;
    margin: 15px 0;
    border-radius: 5px;
    color: white;
    font-weight: bold;
}
.success { background-color: #28a745; }
.error { background-color: #dc3545; }

#map {
    width: 80%;
    height: 30em;
    margin: 2em auto;
}





/* Adjust font size and cell height for smaller screens */
@media (max-width: 768px) {
    .fc-daygrid-day-number {
        font-size: 12px; /* Smaller font for day numbers */
    }

    .fc-daygrid-day {
        height: 50px; /* Reduce day cell height */
    }

    .fc-daygrid-event {
        font-size: 0.5em; /* Smaller font for event titles */
    }

    /* Hide or reduce the header size */
    .fc-toolbar-title {
        font-size: 16px!important; /* Smaller calendar title */
    }

    .fc-toolbar .fc-toolbar-chunk {
        display: flex;
        align-items: center;
    }

    .fc-toolbar-chunk > * {
        font-size: 0.5em;
    }
}

.event-tooltip {
    padding: 8px;
    font-size: 14px;
    line-height: 1.4;
    display: flex;
    gap: 12px;
    max-width: 300px;
}

.tooltip-image img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
}

.tooltip-content {
    flex: 1;
}

/* Make the tooltip bigger to accommodate the image */
.tippy-box[data-theme~='light-border'] {
    background-color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    max-width: none !important;
}

.date-square {
    width: 150px; /* Fixed width */
    min-width: 150px; /* Ensure minimum width */
    flex-shrink: 0; /* Prevent shrinking */
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.date-square h1 {
    margin: 0;
    text-align: center;
    font-size: 1.4rem;
    line-height: 1.2;
    width: 100%; /* Take full width of parent */
    /* Handle text overflow */
}

.title-event a {
    color: inherit; /* Remove default link color */
    text-decoration: none; /* Remove underline */
    font-family: var(--copperplate);
}

.title-event p {
    margin: 0;
    font-weight: bold;
    font-size: 1.3rem;
}

.flyer-square {
    width: 200px; /* Fixed width for flyer container */
    min-width: 100px; /* Prevent shrinking */
    flex-shrink: 0; /* Prevent shrinking */
    border-right: 4px solid; /* Border will be set dynamically */
    overflow: hidden; /* In case image is larger */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 30px 0 0 30px;
}

.flyer-square img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Maintain aspect ratio while covering container */
}

.flyer-tooltip {
    padding: 4px;
}

.flyer-tooltip img {
    max-height: 400px;
    max-width: 300px;
    object-fit: contain;
}

/* Style the tippy tooltip container for flyer */
.tippy-box[data-theme~='light-border'] {
    background-color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Add fade transition for the tooltip */
.tippy-box[data-animation='fade'][data-state='hidden'] {
    opacity: 0;
}

.styles-tooltip {
    padding: 8px;
    font-size: 14px;
    line-height: 1.4;
}

.styles-tooltip strong {
    color: #333;
    display: block;
    margin-bottom: 4px;
}


.role-switcher {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9999; /* Ensure it's above other elements */
}

.role-button {
    padding: 10px 20px;
    border-radius: 20px;
    border: none;
    background: linear-gradient(45deg, #7e1e6a, #ff9800);
    color: white;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.role-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

input:invalid {
    border-color: red;
}

/* Style the error message popup */
input:invalid:focus {
    outline: none;
}

/* Custom styling for the validation message */
input:invalid::after {
    content: attr(data-error);
    color: red;
    font-size: 12px;
    display: block;
    margin-top: 5px;
}

.dropzone {
    border-radius: 25px;
}

/* ################# TESTTING ################# */



h1 {
    color: #7b2cbf;
    margin-bottom: 20px;
}

.tabs {
    display: flex;
    margin-bottom: 20px;
}

.tab {
    padding: 10px 20px;
    margin-right: 20px;
    cursor: pointer;
    font-weight: bold;
}

.tab.active {
    color: #7b2cbf;
    border-bottom: 2px solid #7b2cbf;
}

.content-area {
    display: flex;
    gap: 20px;
}

.event-list {
    background-color: #1d1d1d;
    color: white;
    border-radius: 25px;
    width: 300px;
    overflow: hidden;
}

.event-header {
    background-color: #1d1d1d;
    color: white;
    padding: 15px;
    text-align: center;
    font-size: 1.2em;
    border-bottom: 1px solid #333;
}

.event-item {
    padding: 15px;
    border-bottom: 1px solid #333;
    cursor: pointer;
    transition: background-color 0.3s;
}

.event-item:hover {
    background-color: #333;
}

.event-item.active {
    background-color: #333;
}

.detail-panel {
    flex-grow: 1;
    background-color: white;
    border-radius: 25px;
    padding: 20px;
    min-height: 600px;
}

.empty-message {
    display: flex;
    height: 100%;
    justify-content: center;
    align-items: center;
    color: #888;
    font-style: italic;
}