body {
    margin: 0;
    background-size: cover;
    background-position: center;
}

body::-webkit-scrollbar {
    width: 7px;
}

body::-webkit-scrollbar-thumb {
    background-color: rgba(128, 128, 128, 0.6);
    border-radius: 6px;
}

body::-webkit-scrollbar-thumb:hover {
    background-color: rgba(128, 243, 243);
}

body::-webkit-scrollbar-track {
    background-color: rgba(128, 128, 128, 0.2);
    border-radius: 6px;
}

.background-image {
    z-index: -1;
    width: 100vw;
    height: calc(100vh) !important;
    background-image: url('Background.jpg');
    background-size: cover;

}

.header {
    display: flex;
    align-items: center;
    padding: 20px;
    justify-content: space-evenly;
    background: rgba(255, 255, 255, 0.6);
}

.addevent-style {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    background: rgba(255, 255, 255, 0.6);
}

.button {
    margin: 10px;
    padding: 10px 20px;
    border: none;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.7);
    color: #333;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.button:hover {
    background: rgba(246, 88, 16, 0.8);
    transform: scale(1.05);
}

#closepage {
    background: rgba(0, 0, 255, 0.1);
}

#closepage:hover {
    background: rgba(246, 88, 16, 0.8);
}

.calendar {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    position: relative;
}

.month-display {
    font-size: 36px;
    margin: 10px 0;
}
.weekdays,
.dates {
    display: flex;
    justify-content: space-between;
    width: 100%;
}
.dates {
    flex-wrap: wrap;
    transition: transform 0.5s ease;
}

.weekday,
.day {
    width: calc(100% / 7);
    text-align: center;
    padding: 10px;
    box-sizing: border-box;
    font-weight: bold;
    font-size: x-large;
}
.weekdays{
    color: #0011ff;}
.day {
    min-height: 80px;
    background: transparent;
    transition: background 0.3s;
    cursor: pointer;
    overflow-y: auto;
    border-radius: 5px;
    height: calc(100vh / 15);
}

.day:hover {
    background: #2196f3a3;
}

.today {
    background: lightblue;
    border-radius: 5px;
}

.event {
    background: #F07857;
    color: black;
    margin-top: 5px;
    padding: 2px 5px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 400px;
}

.form-container input {
    margin: 5px;
    padding: 10px;
    font-size: 14px;
    width: calc(100% - 22px);
    border: 1px solid #ccc;
    border-radius: 4px;
}

.event-list {
    text-align: left;
}

.event-list span {
    margin: 5px;
    font-size: large;
    background-color: coral;
    border-radius: 8px;
    padding: 5px;
    font-family: fangsong;
}

.repeat-checkbox {
    margin: 10px 0;
}

.repeat-options {
    display: none;
    margin-top: 10px;
}

@media (max-width: 640px) {
    .button {
        width: 100%;
        margin: 5px;
    }

.background-image {
    height: calc(100vh + 55px) !important;
}
}
 
@media (max-width: 430px) {
 .background-image {
    height: calc(100vh + 20px) !important;
.weekday,
.day {
    font-size: large;
}
}
@media (max-height: 680px){
.background-image {
    height: calc(100vh + 195px) !important;

}