body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f4f4f4;
    flex-wrap: wrap;
    align-content: flex-start;
}
#calendar {
    margin-top: 30px;
    margin-bottom: 60px;
    width: 90vw;
    height: auto;
    /* height: 85vh; */
    background: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    position: relative;
}
#header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: #ff4141;
    color: white;
    border-radius: 10px 10px 0 0;
}
#days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 15px;
    flex-grow: 1;
    padding: 10px;
    overflow-y: auto;
}
.day, .empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    height: 80px; /* Adjusted height */
    border-radius: 5px;
    background: #e0e0e0;
    cursor: pointer;
    padding: 5px;
    position: relative;
    overflow: hidden;
}
.event {
    width: 90%;
    background: #ff4141;
    color: white;
    border-radius: 3px;
    padding: 2px;
    margin: 2px 0;
    font-size: 12px;
    text-align: center;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    z-index: 1001; /* Ensure it is above the overlay */
    width: 80%;
    height: 90%;

    .encabezadoModal{
        background: #ff4141;
        height: 50px;
        span{
            color: white;
            font-size: 2rem;
            margin-left: 30px;
        }
        span:hover{
            cursor: pointer;
        }
    }

    .contenidoModal{
        padding: 20px;

        h2{
            font-weight: bold;
        }

        .contenedorImg{
            width: 100%;
            display: flex;
            justify-content: center;
            align-content: center;
            align-items: center;
            img{
                min-width: 280px;
                max-width: 650px;
                max-height: 100%;
            }
        }

    }
}
#description-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 0px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    z-index: 1001; /* Ensure it is above the overlay */
    width: 80%;
    height: 90%;
}
.event-btn {
    width: 90%;
    background: #ff4141;
    color: white;
    border: none;
    padding: 5px;
    margin-top: 3px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 12px;
    text-align: center;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.event-btn:hover {
    background: #ff4141;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000; /* Ensure it is below the modal but above other content */
}


#event-document, #event-image {
    display: none;
    width: 100%;
    height: 85%;
}

#event-image {
    object-fit: contain;
}

#next, #prev{
    border: transparent;
     background: transparent;
     color: white;
     font-weight: 600;
     font-size: 2rem;
}
.contenedorCalendario{
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    align-content: center;
}

@media (max-width: 768px) {
    #calendar {
        width: 100vw;
        /* height: 100vh; */
        padding: 10px;
    }
    .modal, #description-modal {
        width: 90%;
        height: 80%;
    }
    #days {
        gap: 5px;
    }
    .day, .empty {
        height: 60px; /* Adjusted height for smaller screens */
    }
}

@media (max-width: 480px) {
    #calendar {
        width: 100vw;
        /* height: 100vh; */
        padding: 5px;
    }
    .modal, #description-modal {
        width: 95%;
        height: 75%;
    }
    #days {
        gap: 5px;
    }
    .day, .empty {
        height: 50px; /* Adjusted height for smaller screens */
    }
}

/*BarraNavegacion*/
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #FFFFFF;
    padding: 0.8rem 2rem;
    z-index: 1000;
}

.navbar-container {
    min-width: 1280px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-logo-wrapper {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.navbar-logo {
  height: 50px;
  gap: 2rem;
}

.navbar-texto {
  font-family: 'MediumBold', sans-serif;
  text-align: center;
  font-size: 1.2rem;
  line-height: 1.2;
  font-weight: bold;
  color: #222222;
  gap: 1rem;
}

.navbar-menu {
  font-family: 'MediumBold', sans-serif;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  font-size: 1.5rem;
}

.navbar-menu a {
  text-decoration: none;
  color: #222222;
  font-weight: bold;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.navbar-menu a:hover {
  color: #CE1225;
}

/*Fuentes*/
@font-face {
  font-family: 'FuturaMedium';
  src: url('/fonts/futura\ light\ bt.ttf') format('woff2');
}
@font-face{
    font-family: 'MediumBold';
    src: url('/fonts/Futura\ Heavy\ font.ttf') format('woff2');
}