@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@300..700&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

body {
    font-family: 'Fredoka', sans-serif;
    background: url(../../images/wallpaper.png) no-repeat center center fixed;
    background-size: cover;
    margin: 0;
    padding: 0;
}

header {
    background-color: #fff;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

header h1 {
    margin: 0;
    font-size: 40px;
    font-weight: 800;
    color: #222;
    margin-top: 5px;
    margin-bottom: 5px;
}

.container {
    display: flex;
    min-height: 80vh;
    margin: 20px;
}

aside {
    width: 20%;
    background: transparent;
    padding: 20px;
    backdrop-filter: blur(15px);
    box-shadow: 0 0 10px rgba(0, 0, 0, .3);
    border-radius: 40px;
}

aside ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

aside ul li {
    margin: 15px 0;
    width: 80%;
}

aside ul li a {
    text-decoration: none;
    color: #fff;
    display: block;
    font-weight: 400;
    text-align: center;
    font-size: 20px;
}

main {
    width: 80%;
    padding: 20px;
}

section {
    background: transparent;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(80px);
    border-radius: 20px;
    color: #fff;
    font-size: 20px;
}

#calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    margin-top: 20px;
}

#calendar-grid div {
    padding: 10px;
    background: #fff;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    font-weight: 600;
    color: #333;
}

#event-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    z-index: 1000;
    width: 300px;
    color: #333;
}

.hidden {
    display: none;
}

input#event-input {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-family: 'Fredoka', sans-serif;
}

button#save-event {
    margin-top: 10px;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Fredoka', sans-serif;
}

button#save-event:hover {
    background-color: #0056b3;
}

#month-display {
    text-align: center;
    margin-top: 20px;
    font-size: 30px;
    font-weight: 700;
    color: #333;
    background: #fff;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

#weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    margin-top: 10px;
    padding: 10px 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

#calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-template-rows: repeat(5, 1fr);
    gap: 10px;
    margin-top: 20px;
    padding: 10px;
    font-size: 18px;
}

.close-button {
    background: none;
    border: none;
    font-size: 24px;
    font-weight: bold;
    color: #333;
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
}

.close-button:hover {
    color: #f44336;
}

#event-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    width: 300px;
    color: #333;
}

#event-modal.hidden {
    display: none;
}

#event-modal h3 {
    margin: 0;
    font-size: 24px;
    color: #333;
    text-align: center;
}

#event-input {
    padding: 10px;
    font-size: 18px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

#save-event {
    background-color: #4CAF50;
    color: white;
    padding: 10px;
    font-size: 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    align-self: center;
}