/* styles.css */

body {
    font-family: Arial, sans-serif;
    background-color: #1e1e1e;
    color: #fff;
    margin: 0;
}

.calendar-container {
    width: 80%;
    max-width: 800px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

#current-month {
    font-size: 1.5em;
}

button {
    background-color: #333;
    color: #fff;
    padding: 10px;
    cursor: pointer;
    transition: background-color 0.3s;
    border: 1px solid white;
}

button:hover {
    background-color: #555;
}

.calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-template-rows: repeat(6, 1fr);
    gap: 10px;
}

.day {
    background-color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 20px;
    padding-bottom: 20px;
    position: relative;
    transition: background-color 0.3s;
    border: 1px solid white;
}

.day:hover {
    background-color: #2bff007a;
}

.day.other-month {
    background-color: #535353;
}

.day.unavailable {
    background-color: #e74c3c;
}

.day.unavailable:hover {
    background-color: #c0392b;
}

.day.today {
    background-color: #3498db94;
}

.day span {
    display: block;
    position: absolute;
    text-align: center;
    bottom: 2.5px;
    left: 5px;
    right: 5px;
    font-size: 0.8em;
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    padding: 2px 4px;
    border-radius: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: calc(100% - 10px);
}

.day span:hover {
    overflow: visible;
    white-space: normal;
    max-width: none;
    text-align: center;
}

.container-calendar {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: space-evenly;
    align-items: center;
}
