* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Titan One", sans-serif;
}

p, h3, h4, a, ul, li, strong, label, input::placeholder, input, select, option, i, button, textarea::placeholder {
    font-family: "Inter", sans-serif;
}

h1, h2 {
    font-weight: 400 !important;
}

html {
    scroll-behavior: smooth;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
}

.homepage-body {
    width: 100%;
    background-image: linear-gradient(rgba(0,0,0,0.4),rgba(0,0,0,0.9)),url('../images/home/safe25.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: bottom;
}

.aboutpage-body {
    background-color: #F8F4F4;
}

.partners-body {
    background-color: #F8F4F4;
}

.programmepage-body {
    background-color: #F8F4F4;
}

.pastevents-body {
    background-color: #F8F4F4;
}

.harmonogramme-body {
    background-color: #F8F4F4;
}

.contactpage-body {
    background-color: #F8F4F4;
    width: 100%;
}

.ticketspage-body {
    background-color: #F8F4F4;
    width: 100%;
}

.cancelpage-body {
    background-color: #F8F4F4;
    width: 100%;
}

.awardedpage-body {
    background-color: #F8F4F4;
}

.login-body {
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #F8F4F4;;
}

/*=======================================================================================TO TOP====================================================================================*/

.to-top {
    background-color: rgba(0, 0, 0, .8);
    box-shadow: 0 0 5px rgba(0, 0, 0, 1);
    color: #fff;
    position: fixed;
    bottom: 16px;
    right: 32px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    text-decoration: none;
    opacity: 0;
    pointer-events: none;
    transition: all .4s;
    z-index: 2;
}

.to-top.active {
    bottom: 32px;
    pointer-events: auto;
    opacity: 1;
}

/*=======================================================================================HEADER====================================================================================*/
.topheader{
    font-family: "Titan One", sans-serif;
    text-transform: uppercase;
    display: flex;
    justify-content: space-between;
    background-color: #ffffff;
    align-items: center;
    padding: 2px 10px 0 10px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
}

.topheader div {
    font-size: 1rem;
}

.topheader .header-icons a:first-child img {
    width: 47.2px;
    height: 24px;
}

.topheader .header-icons a:nth-child(2) img {
    width: 26.4px;
    height: 24px;
}

.topheader .header-icons a:nth-child(3) img {
    width: 24.8px;
    height: 24px;
}

.topheader .header-icons a:nth-child(4) img,
.topheader .header-icons a:nth-child(5) img {
    width: 24px;
    height: 24px;
}

.header-icons a img:hover {
    color: rgb(194, 155, 49);
    background-color: rgb(194, 155, 49);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.header {
    position: fixed;
    top: 28px;
    left: 0;
    width: 100%;
    padding-right: 5%;
    display: flex;
    align-items: center;
    z-index: 100;
    transition: .5s ease;
}

.navbar {
    display: flex;
    align-items: center;
    flex: 1;
}

/* Hamburger - v základu schovaný (desktop), mobilní breakpoint ho zobrazí.
   Selektor i.menu-icons je schválně: boxicons (.bx) se načítá po tomto souboru
   a nastavuje display, vyšší specificita ho přebije. */
i.menu-icons {
    position: absolute;
    right: 5%;
    font-size: 2.8rem;
    color: #fff;
    cursor: pointer;
    display: none;
    z-index: 20;
}

.pc-translate {
    margin-left: auto;
    font-family: "Titan One", sans-serif;
    font-size: 1.15rem;
    color: rgb(194, 155, 49) !important;
    text-decoration: none;
    padding: 6px 8px;
    transition: .2s ease-in-out;
}

.pc-translate:hover {
    color: #fff !important;
}

.mobile-translate{
    display: none;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(0, 0, 0);
    backdrop-filter: blur(0px);
    z-index: -1;
}

#logo {
    width: 140px;
    position: relative;
    margin-right: 2rem;
    margin-left: 60px;
    margin-top: 5px;
    top: 50%;
    transform: translateY(0);
    left: 1%;
    z-index: 101;
}

.navbar a,
.navbar p {
    font-family: "Titan One", sans-serif;
    font-size: 1.15rem;
    color: #fff;
    text-decoration: none;
    padding: 6px 8px;
    margin-left: 3vw;
    cursor: pointer;
    transition: .2s ease-in-out;
}

.navbar a:hover, .navbar p:hover {
    color: rgb(194, 155, 49);
}

.before::before {
    content: '';
    position: absolute;
    top: 100%;
    width: 0;
    left: 0;
    height: 2px;
    background: rgb(194, 155, 49);
    transition: .5s;
}

.before-half::before {
    content: '';
    position: absolute;
    top: 0%;
    width: 0;
    left: 0;
    height: 2px;
    background: rgb(194, 155, 49);
    transition: .5s;
}

.mobile {
    display: none;
}

#check {
    display: none;
}

.icons {
    position: absolute;
    right: 5%;
    font-size: 2.8rem;
    color: #fff;
    cursor: pointer;
    display: none;
}

.dropdown {
    position: relative;
    display: inline-block;
}

/* toggle (odstavec) bez vlastních marginů - aby rodič .dropdown přesně
   obepínal text a dropdown pod ním byl vycentrovaný vůči nadpisu */
.dropdown .dropdown-toggle {
    margin: 0;
}

.dropdown-content {
    left: 50%;
    transform: translateX(-50%);   /* vycentrování pod nadpisem - drží se stále */
    margin-left: 0;
    margin-top: 22px;
    border-radius: 5px;
    display: none;
    position: absolute;
    background-color: rgb(0, 0, 0, .8);
    padding: 6px 8px;
    z-index: 1;
    animation-duration: 0.4s;
    animation-name: dropdownFade;
    transition: opacity 0.3s;
}

.dropEn {
    margin-left: 27px;
}

@keyframes slideIn {
    0% {
        transform: translateY(-10%);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* animace pro vycentrovaný dropdown - zachovává translateX(-50%) celou dobu,
   aby se panel neposouval doprava a pak doleva (mění jen svislý posun/průhlednost) */
@keyframes slideInCentered {
    0% {
        transform: translateX(-50%) translateY(-10%);
        opacity: 0;
    }
    100% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

/* animace jen přes opacity - transform translateX(-50%) drží vycentrování
   po celou dobu, takže dropdown neskáče doleva/doprava */
@keyframes dropdownFade {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.dropdown-content a {
    color: white;
    margin-left: 0px;
    padding: 12px 18px;
    text-decoration: none;
    display: block;
    text-shadow: none !important;
    transition: .3s ease-in-out;
}

.dropdown-content a:hover {
    background-color: rgba(194, 155, 49, 0.5);
    color: white;
}

.rotate-90 {
    transform: rotate(90deg);
    transition: transform 0.3s ease;
}

/*=======================================================================================FOOTER====================================================================================*/

footer {
    margin-top: auto;
    font-family: "Inter", sans-serif !important; 
    background-color: white;
}

footer h4 {
    font-family: "Inter", sans-serif !important; 
}

 .footer-content {
    padding: 2% 0 0 0;
    width: 100%;
    margin-top: auto;
    z-index: 0;
    overflow: hidden;
    position: relative;
}

.footer-container {
    max-width: 1440px;
    width: 90%;
    margin: 0 auto;
    padding: 10px 1.5rem;
    position: relative;
    z-index: 2;
}

.row-footer {
    display: flex;
    flex-wrap: wrap;
}

.footer-col:nth-child(2) {
    width: 18% !important;
}

.footer-col {
    width: 25%;
    padding: 0 15px;
}

.footer-col h4{
    font-size: 18px;
    text-transform: capitalize;
    margin-bottom: 35px;
    font-weight: 600;
    position: relative;
    color: #000;
}

.footer-col h4::before{
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    background-color: rgb(194, 155, 49);
    height: 2px;
    width: 43px;
}

.footer-col ul {
    list-style: none;
    flex-direction: column;
    display: flex;
    padding: 0;
}

.footer-col ul li:not(:last-child){
    margin-bottom: 10px;
}

.footer-col ul li a{
    font-size: 16px;
    text-transform: capitalize;
    text-decoration: none;
    color: #000;
    font-weight: 400;
    display: block;
    width: 0;
    transition: all .3s ease;
}

.footer-col ul li a:hover{
    padding-left: 8px;    
}

.footer-col img{
    width: 180px;
    margin-left: auto;
    margin-bottom: 0px;
    margin-top: -20px;
}

.footer-col .social-links a{
    display: inline-block;
    height: 40px;
    width: 40px;
    background-color: rgba(0, 0, 0, 0.2);
    margin-right: 0 10px 10px 0;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.2);
    color: black;
    transition: all .5s ease;
}

.social-links {
    width: 100%;
}

.footer-col {
    color: #000;
}

.footer-col .social-links a:not(:first-child){
    margin-left: 20px;
}

.footer-col .social-links a:hover{
    color: white;
    background-color: black;
}

.contact-footer a {
    text-decoration: none;
    color: #000;
}

.contact-footer p {
    margin-bottom: 1rem;
}

.footer-col .copyright {
    margin-top: 20px;
}

.copyright {
    text-align: center;
    padding: 3px;
    background-color: #000;
}

.copyright a{
    color: #fff;
    font-size: small;
    text-decoration: none;
}

/*=======================================================================================HOMEPAGE=====================================================================================*/

.main {
    width: 100%;
    min-height: 30vh;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 40%,rgb(0,0,0) 70%, rgb(0,0,0) 100%);
    margin-top: 70vh;
    text-align: center;
    color: #fff;
    z-index: 0;
}

.main h1{
    font-size: 40px;
    font-weight: 400 !important;
    margin-top: 50px;
}

.main i{
    margin: 20px auto;
    font-weight: 500;
    font-size: 20px;
    line-height: 25px;
}

.buttons button{
    width: 200px;
    padding: 15px 0;
    text-align: center;
    margin: 20px 10px;
    border-radius: 25px;
    font-weight: bold;
    border: 2px solid rgb(194, 155, 49);
    background: transparent;
    color: #fff;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.buttons span{
    background-color: rgb(194, 155, 49);
    height: 100%;
    width: 0;
    border-radius: 25px;
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: -1;
    transition: .5s;
}

.buttons button:hover span{
    width: 100%;
}

.buttons button:hover {
    border: none;
    z-index: 1;
}


/*=====================================================================ADMIN==============================================================*/

.content h2 {
    margin-bottom: 10px;
}

.menu-toggle {
    position: fixed;
    top: -10px;
    left: -10px;
    border-radius: 0 0% 75% 0%;
    background-color: #333;
    color: #fff;
    border: none;
    padding: 25px 30px;
    cursor: pointer;
    z-index: 999;
    display: none;
}

.menu-toggle i {
    font-size: 35px;
}

.tox .tox-toolbar,
.tox .tox-toolbar-overlord,
.tox .tox-statusbar {
    z-index: 0 !important;
}

.sidebar {
    z-index: 999 !important;
    width: 250px;
    background-color: #333;
    color: #fff;
    padding: 20px;
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease-in-out;
}

.tox .tox-editor-container {
    z-index: 1 !important;
}

.sidebar.hidden {
    transform: translateX(0);
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    display: none;
}

.close-btn i {
    font-size: 30px;
}

.side-header {
    display: flex;
    text-align: center;
    margin-top: 10px;
}

.sidebar h2 {
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 600 !important;
    text-align: center;
    margin-top: 25px;
}

.sidebar ul {
    list-style-type: none;
}

.sidebar ul li {
    margin: 15px 0;
}

.logout {
    margin-top: auto;
    cursor: pointer;
}

.sidebar ul li a, .sidebar .logout {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    display: block;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.sidebar ul li a i, .sidebar .logout i {
    font-size: 17px;
    margin-right: 10px;
}

.sidebar ul li a:hover, .sidebar .logout:hover {
    background-color: #555;
}

.sidebar img {
    width: 70px;
    height: auto;
}

.content {
    margin-left: 270px;
    padding: 20px;
    flex-grow: 1;
}

.addBox {
    display: flex;
    gap: 20px;
    margin: 25px 0 50px 0;
}

.firstBox {
    display: flex;
    gap: 20px;
}

.secondBox {
    display: flex;
    gap: 20px;
}

.childBox {
    padding: 100px 50px;
    background-color: rgb(194, 155, 49);
    border-radius: 20px;
    color: white;
    text-align: center;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.childBox:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.childBox i {
    font-weight: bold;
    font-size: 24px;
    margin-bottom: 10px;
}

.childBox p {
    font-weight: bold;
    margin: 0;
    font-size: 18px;
}

.custom-file {
    position: relative;
    display: inline-block;
}

.custom-file input[type="file"] {
    display: none;
}

.custom-file label {
    background-color: transparent;
    color: black;
    padding: 10px 20px;
    border: solid 1px rgb(206, 206, 206);
    border-radius: 5px;
    cursor: pointer;
    display: inline-block;
    font-size: 16px;
    text-align: center;
    transition: background-color 0.3s ease;
}

.custom-file label:hover {
    background-color: rgb(206, 206, 206);
}

.content form .saveButton {
    background-color: rgb(194, 155, 49);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: inline-block;
    font-size: 16px;
    text-align: center;
    transition: background-color 0.3s ease;
}

.content form .saveButton:hover {
    background-color: rgb(161, 127, 32);
}

.content h2 {
    padding-top: 20px;
}

.addButton {
    font-style: none;
    background-color: rgb(20, 160, 20);
    padding: 5px 30px;
    border: none;
    border-radius: 10px;
    color: #fff;
    text-decoration: none;
    font-size: 25px;
    font-weight: 500;
}

.extraButtons {
    display: flex;
    gap: 20px;
}

.deleteButton {
    font-style: none;
    background-color: #dc3545;
    padding: 6px 28px;
    border: none;
    border-radius: 10px;
    color: #fff;
    text-decoration: none;
    font-size: 23px;
    font-weight: 500;
    cursor: pointer;
}

.addButton:hover, .deleteButton:hover {
    opacity: 0.8;
    transition: .3s ease-in-out;
}

.backButton {
    font-style: none;
    background-color: #fff;
    padding: 0px 10px;
    border: solid 1px black;
    border-radius: 10px;
    color: black;
    text-decoration: none;
    font-size: 18px;
    font-weight: 400;
}

.backButton:hover {
    font-style: none;
    background-color: black;
    padding: 0px 10px;
    border: solid 1px black;
    border-radius: 10px;
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    font-weight: 400;
    transition: .3s ease-in-out
}

.sucessMessage {
    margin-bottom: 10px;
    color: rgb(2, 201, 2);
}

.events-table {
    width: 100%;
    border-collapse: collapse;
    margin: 35px 0;
    font-size: 16px;
    text-align: left;
    border: 1px solid #ccc;
    table-layout: auto;
}

.events-table thead th {
    background-color: #f4f4f4;
    color: #333;
    font-weight: bold;
    border: 1px solid #ccc;
    padding: 10px;
    text-align: left;
}

.events-table tbody td {
    border: 1px solid #ccc;
    padding: 10px;
}

.events-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.action-buttons a, .action-buttons button {
    display: inline-block;
    padding: 3px 15px;
    margin: 0 5px;
    text-decoration: none;
    border: none;
    color: #fff;
    background-color: #007bff;
    border-radius: 5px;
}

.action-buttons button {
    margin-top: 20px;
    margin-left: 10px;
}

.programmeButtons {
    display: flex;
}

.action-buttons a.delete-btn, .action-buttons button.delete-btn {
    background-color: #dc3545;
}

.action-buttons a:hover, .action-buttons button:hover {
    opacity: 0.8;
    transition: .3s ease-in-out;
}

.events-table thead th:nth-child(1) {
    width: 30%;
}

.events-table thead th:nth-child(2) {
    width: auto;
}

.events-table thead th:nth-child(3) {
    width: 150px;
}

.removeImage, .removeImage i {
    position: absolute; 
    top: 0; 
    right: 0; 
    background: #fff; 
    padding: 2px 5px;
    border: solid 1px black;
    color: black; 
    cursor: pointer;
    transition: .3s ease-in-out;
}

.removeImage input:checked + i {
    color: white;
    background-color: red;
    border: solid 1px red;
}

.edit-form {
    display: flex;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    flex-wrap: wrap;
}

.newProgrammeDes {
    display: flex;
    align-items: center;
}

.programmeDes textarea {
    width: 500px;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
    resize: none;
}

.programmeDes textarea[name="description"]:read-only {
    background-color: #f7f7f7;
}

.programmeRow:hover {
    background-color: rgb(0, 0, 0, 0.05);
}

.removeRowButton {
    display: inline-block;
    padding: 3px 15px;
    margin: 0 10px;
    text-decoration: none;
    border: none;
    color: #fff;
    background-color: #dc3545;
    border-radius: 5px;
    cursor: pointer;
}

.removeRowButton i {
    margin-top: 4px;
}

#addRowButton {
    display: inline-block;
    padding: 4px 17px;
    margin: -10px 5px;
    text-decoration: none;
    border: none;
    color: #fff;
    font-weight: 600;
    background-color: rgb(20, 160, 20);
    border-radius: 5px;
    cursor: pointer;
}

.removeRowButton:hover, #addRowButton:hover {
    opacity: 0.8;
    transition: .3s ease-in-out;   
}


.adminMain {
    text-align: center;
    width: 360px;
}

.adminMain img {
    max-width: 150px;
    margin-bottom: 0px;
}

.loginForm {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 10px 14px rgba(0, 0, 0, 0.3);
}

.styleForm p {
    font-size: 1em;
    margin: 0;
    padding: 0 20px 20px;
    text-align: center;
    color: #5f5f5f;
}

.loginForm input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: .9em;
    background-color: white;
    color: black;
}

.loginForm input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px white inset !important;
    box-shadow: 0 0 0 1000px white inset !important;
    -webkit-text-fill-color: black !important;
    border: 1px solid #ccc !important;
    font-size: .9em !important;
    border-radius: 4px !important;
}

.styleForm button {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 4px;
    background-color: rgb(194, 155, 49);
    color: #fff;
    font-size: .9em;
    cursor: pointer;
}

.styleForm button:hover {
    background-color: rgb(161, 127, 32);
    transition: .3s ease-in-out;
}

.input-container {
    position: relative;
    width: 100%;
    margin-bottom: 15px;
}

.lastChild {
    margin-bottom: 0;
}

.input-container i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: #888;
}

.input-container input {
    width: 100%;
    padding: 10px 10px 10px 40px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
}

.input-container input:focus {
    border-color: #007BFF;
    outline: none;
}

.loginFail {
    padding: 10px;
    font-size: .9em;
}

.rememberMe {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 auto;
    margin-bottom: 10px;
}

.rememberMe input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.rememberMe label {
    font-size: 14px;
    color: #333;
    cursor: pointer;
    text-align: center;
}

.invisible {
    display: none;
}

#overBackground {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    display: none;
}

#overBackground.visible {
    display: block;
}

#alertWarning {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(145deg, white, #d3d3d3);
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    padding: 20px;
    width: 80%;
    max-width: 500px;
    z-index: 9999;
}

.nonExist {
    display: none;
}

.warning-img {
    width: 100px;
    height: 100px;
    margin-right: 20px;
    object-fit: cover;
}

.warning-content {
    flex: 1;
    text-align: center;
    font-family: Arial, sans-serif;
    color: #333;
}

.closeButton {
    background-color: #333;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    margin-top: 10px;
    cursor: pointer;
    font-size: 16px;
}

.closeButton:hover {
    background-color: #555;
    transition: 0.3s;
}

.awardedPage select, .awardedPage input[type="text"], .awardedPage textarea, .awardedPage input[type="file"] {
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px; 
}

.awardedPage textarea {
    width: 300px;
    height: 100px;
}

.awardedPage select {
    width: 100%;
}

.awardedPage .addCategory {
    background-color: rgb(20, 160, 20);
    color: #fff;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: .3s ease-in-out;
}

.awardedPage .addCategory:hover {
    opacity: .8;
}

.awardedPage .category-block {
    margin-bottom: 20px;
}

.form-content {
    display: flex;
    justify-content: space-between;
}

.form-everything {
    margin-top: 10px;
    padding: 15px;
    background-color: #f7f7f7;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

.awardedPage label {
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.awardedPage h3 {
    color: rgb(194, 155, 49);
    margin-top: 0;

}

.form-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 50px;
}

.form-row input[type="text"],
.form-row textarea,
.form-row input[type="file"] {
    flex: 1;
    font-size: 13px !important;
}

.form-row input[type="file"] {
    display: none;
}

.fileLabel {
    background-color: transparent;
    color: black;
    padding: 10px 20px;
    border: solid 1px rgb(206, 206, 206);
    border-radius: 5px;
    cursor: pointer;
    display: inline-block;
    font-size: 16px;
    text-align: center;
    transition: background-color 0.3s ease;
    user-select: none;
}

.fileLabel i {
    font-size: 15px;
    margin-right: 10px;
}

.fileLabel:active {
    transform: scale(.9);
}

.fileLabel:hover {
    background-color: rgb(206, 206, 206);
}

.image-preview {
    width: 125px;
    height: 150px;
    object-fit: cover;
    border: 1px solid #ccc;
    margin-top: 10px;
    display: none;
}
#images {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.image-item {
    position: relative;
    display: inline-block;
    width: 120px;
}

.image-item img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    border: 1px solid #ccc;
    display: block;
}

.image-item input[type="checkbox"] {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
    opacity: 0;
    cursor: pointer;
}

.image-item::after {
    content: '✖';
    position: absolute;
    top: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
    font-size: 18px;
    color: transparent;
    text-align: center;
    line-height: 20px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
}

.image-item input[type="checkbox"]:checked + img {
    opacity: 0.5;
}

.image-item input[type="checkbox"]:checked + img + ::after {
    color: red;
    background: white;
}

.preview-img {
    width: 100px;
    height: auto;
    margin: 5px;
    border: 1px solid #ccc;
    padding: 3px;
}

#images {
display: flex;
flex-wrap: wrap;
gap: 20px;
}

.image-item {
position: relative;
width: 150px;
}

.image-item img {
width: 100%;
height: auto;
border: 1px solid #ccc;
display: block;
}

.image-item input[type="checkbox"] {
position: absolute;
top: 5px;
right: 5px;
width: 20px;
height: 20px;
opacity: 0;
cursor: pointer;
z-index: 2;
}

.image-item label {
position: absolute;
top: 5px;
right: 5px;
width: 20px;
height: 20px;
font-size: 15px;
color: black;
text-align: center;
line-height: 20px;
background: rgba(255, 255, 255, 0.7);
border-radius: 50%;
cursor: pointer;
transition: background 0.2s, color 0.2s;
z-index: 1;
display: flex;
align-items: center;
justify-content: center;
}

.image-item label::before {
content: "✖";
display: block;
}

.image-item input[type="checkbox"]:checked + label {
background: red;
color: white;
}

.custom-label {
    background-color: transparent;
    color: black;
    padding: 10px 20px;
    border: solid 1px rgb(206, 206, 206);
    border-radius: 5px;
    cursor: pointer;
    display: inline-block;
    font-size: 16px;
    text-align: center;
    transition: background-color 0.3s ease;
}

.custom-label:hover {
    background-color: #f1f1f1;
}

#new_images {
    display: none;
}

.dateTime {
    width: 340px;
    padding: 8px 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 20px;
    box-sizing: border-box;
}

input[type="datetime-local"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
}

.preview-box {
    margin-bottom: 20px;
}

.preview-box img {
    max-width: 300px;
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.error-message {
    color: red;
    margin-top: 15px;
}
        
.success-message {
    color: green;
    margin-top: 15px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
    margin: 20px 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px; width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

.startForm input:checked + .slider {
    background-color: #4CAF50;
}

.startForm input:checked + .slider:before {
    transform: translateX(26px);
}



