/* MENU */
.menu
{
    width: 200px;
    height: 200px;
    right: 30px;
    top: 30px;
    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, #a8d52d, #83ac29, #74a727, #83ac29, #a8d52d);
}

.blue {
    background: linear-gradient(135deg, #6fb9f6, #4ca3f9, #2587f8, #4ca3f9, #6fb9f6);
}

.purple {
    background: linear-gradient(135deg, #f09bfe, #cd5ffb, #a92bf7, #cd5ffb, #f09bfe);
}

.orange {
    background: linear-gradient(135deg, #f4cb8d, #fca44d, #fe8922, #fca44d, #f4cb8d);
}

.red {
    background: linear-gradient(135deg, #f79c95, #fc5353, #f70707, #fc5353, #f79c95);
}

.yellow {
    background: linear-gradient(135deg, #ffe96e, #f8d300, #dcbb01, #f8d300, #ffe96e);
}
.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: #111; 
    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 */

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

body {
    font-family: "Audiowide", sans-serif;
    background-image: url('../img/windows_xp.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(135deg, #74a727 0%, #2587f8 100%);
    color: rgba(255, 255, 255, 0.986);
    padding: 20px;
    text-align: center;
}

.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;
}

.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: #aefa3b5f;
    transform: scale(1.05);
}

.day.today {
    background: #2587f8;
    color: white;
}

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

.day.selected {
    border-color: #74a727;
    background: #a8d52d;
}

.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: #74a727;
    background: #aefa3b5f;
    transform: scale(1.1);
}

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

.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 transparent;
    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: #74a727;
}

.bg-option.selected {
    border-color: #74a727;
    box-shadow: 0 0 15px #aefa3b5f;
}

.export-btn {
    background: linear-gradient(360deg, #74a727 0%, #2587f8 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    margin: 20px;
    transition: all 0.3s ease;
    font-family: "Audiowide", 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 #aefa3b5f;
}

.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;
}

/* responsive */

@media (max-width: 1024px) {
    .container {
        max-width: 900px;
    }
    
    .day {
        min-height: 50px;
    }
}

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