/* 👇 MENU 👇 */

.menu
{
    width: 200px;
    height: 200px;
    right: 30px;
    bottom: 360px;
    position: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.menu li
{
    width: 40px;
    height: 40px;
    position: absolute;
    left: 0;
    list-style: none;
    transform-origin: 100px;
    transition: 0.5s;
    transition-delay: calc(0.1s * var(--i));
    transform: rotate(0deg) translateX(80px) translateY(-15px);
}

.menu.active li
{
    transform: rotate(calc(225deg / 5 * var(--i))); 
}

.green {
    background: linear-gradient(135deg, #bee893, #a3ea5b, #88ea27, #a3ea5b, #bee893);
}

.blue {
    background: linear-gradient(135deg, #0cc6b8, #06c8b8, #00c5b4, #06c8b8, #0cc6b8);
}

.purple {
    background: linear-gradient(135deg, #8b9df2, #7c91f9, #6e85fa, #7c91f9, #8b9df2);
}

.orange {
    background: linear-gradient(135deg, #fdd7ac, #fbbd75, #f89f3a, #fbbd75, #fdd7ac);
}

.red {
    background: linear-gradient(135deg, #fdc0c7, #fca2ad, #fc8694, #fca2ad, #fdc0c7);
}

.yellow {
    background: linear-gradient(135deg, #ffe100, #fce006, #f9de0f, #fce006, #ffe100);
}

.round-button::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 19%;
    right: 19%;
    height: 40%;
    background: linear-gradient(135deg, 
        rgba(255,255,255,0.4) 0%, 
        rgba(255,255,255,0.2) 50%, 
        rgba(255,255,255,0.05) 100%);
    border-radius: 50%;
    pointer-events: none;
}

li
{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: #ffffff; /*buttons color*/
    border-radius: 50%;
    box-shadow: 0 0px 4px rgba(0, 0, 0, 0.15);
    color: #ffffff; 
    transition: 0.5s;
}

ion-icon{
    transform: rotate(calc(225deg / -5 * var(--i)));
}

li:hover
{
    color: white;
    background-color: black;
}

.toggle
{
    position: absolute;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0px 4px rgba(255, 255, 255, 0.15);
    font-size: 2em;
    transition: transform 1.25s;
}

.menu.active .toggle
{
    transform: rotate(360deg);
}

.menu.active .rotate
{
    transform: rotate(315deg);
}

/* 👆 MENU 👆 */

/* 👇 CALENDAR 👇 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Nunito", sans-serif;
    background-image: url('../img/acnh-9.jpg');
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px;
}

.container {
    background: rgba(255, 255, 255, 0.400);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    overflow: hidden;
    max-width: 1000px;
    width: 100%;
}

.header {
    background: linear-gradient(360deg, #74e0aa 0%, #0cc6b8 100%);
    color: rgba(255, 255, 255, 0.986);
    padding: 20px;
    text-align: center;
    border-radius: 15px;
}

.controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 20px 0;
}

.nav-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    padding: 10px 15px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

.month-year {
    font-size: 24px;
    min-width: 200px;
}

.background-text {
    font-style: bold;
    color: #666;
}

.calendar-container {
    position: relative;
    margin: 30px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.calendar {
    position: relative;
    background: #f8f9fa;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 500px;
    padding: 20px;
}

.calendar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.621);
    z-index: 1;
}

.calendar-content {
    position: relative;
    z-index: 2;
}

.weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    margin-bottom: 10px;
}

.weekday {
    text-align: center;
    color: #666;
    padding: 10px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 8px;
}

.days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.7);
    position: relative;
    min-height: 80px;
}

.day:hover {
    background: #6c81ea82;
    transform: scale(1.05);
}

.day.today {
    background: #0cc6b8;
    color: white;
}

.day.other-month {
    opacity: 0.3;
    pointer-events: none;
}

.day.selected {
    border-color: #8b9df2;
    background: #8b9df2;
}

.day-number {
    margin-bottom: 1px;
}

.day-icon {
    font-size: 20px;
    margin-top: 2px;
}

.icon-panel {
    background: #f8f9fa;
    padding: 20px;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.icon-btn {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 15px;
    cursor: pointer;
    font-size: 24px;
    transition: all 0.3s ease;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn:hover {
    border-color: #74e0aa;
    background: #74e0aa;
    transform: scale(1.1);
}

.icon-btn.selected {
    border-color: #74e0aa;
    background: #74e0aa;
}

.background-selector {
    margin: 20px;
    text-align: center;
}

.bg-options {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.bg-option {
    width: 80px;
    height: 60px;
    border: 3px solid;
    color: #8b9df2;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-size: cover;
    background-position: center;
}

.bg-option:hover {
    transform: scale(1.1);
    border-color: #0cc6b8;
}

.bg-option.selected {
    border-color: #0cc6b8;
    box-shadow: 0 0 15px #0cc6b68b;
}

.export-btn {
    background: linear-gradient(360deg, #74e0aa 0%, #0cc6b8 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    margin: 20px;
    transition: all 0.3s ease;
    font-family: "Nunito", sans-serif;
    position: relative;
}

.export-btn::after {
    content: '';
    position: absolute;
    top: 10%;
    left: 4%;
    right: 4%;
    height: 40%;
    background: linear-gradient(135deg, 
        rgba(255,255,255,0.4) 5%, 
        rgba(255,255,255,0.2) 50%, 
        rgba(255,255,255,0.05) 100%);
    border-radius: 5px;
    pointer-events: none;
}

.export-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px #0cc6b680;
}

.instructions {
    text-align: center;
    color: #666;
    margin: 15px 20px;
    font-size: 14px;
}

.icon-image {
    width: 50px;
    height: 50px;
    object-fit: contain; /* maintains aspect ratio */
}

.day-icon img {
    width: 40px;
    height: 40px;
    object-fit: cover;
}

@media (max-width: 1024px) { /*responsive to wider screens*/
    .container {
        max-width: 900px;
    }
    
    .day {
        min-height: 50px;
    }
}

@media (max-width: 768px) { /*responsive to smaller screens*/
    .container {
        max-width: 100%;
    }
    
    .calendar-container {
        margin: 15px;
    }
    
    .calendar {
        padding: 10px;
        min-height: 350px;
    }
    
    .day {
        min-height: 40px;
    }
    
    .icon-btn {
        width: 45px;
        height: 45px;
    }
}

/* 👆 CALENDAR 👆 */
