/* Variables */
:root {
	/* Colors */
	--text: #1F4126;
    --title1: #A8533E;
    --title2: #C4D5B1;
    --title3: #F5E17E;
	--colorbg: #FAFDE2;
    --btnstk: #7C9F37;
    --fill1: #96B780;
    --fill2: #FDF0AD;

    .light-mode {
	    --text: #FAFDE2;
        --title1: #A8533E;
        --title2: #7C9F37;
        --title3: #F5E17E;
	    --colorbg: #1F4126;
        --btnstk: #F5E17E;
        --fill1: #C4D5B1;
        --fill2: #96B780;
    }
}

/* Global */
body {
    background: var(--colorbg);
    color: var(--text);
    font-family: 'PT Sans', sans-serif;
}

/* Font Sizes */
html {
	@media screen and (min-width: 1100px) {
		font-size: 1.1rem;
	}
	@media screen and (min-width: 1200px) {
		font-size: 1.2rem;
	}
}

/* Header */
.site-header {
    position: relative;
    width: 100%;
    height: 15rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 20px;
}

.site-logo {
    font-family: 'Nerko One', sans-serif;
    font-size: 1.875rem;
    margin-left: 2rem;
    color: var(--text);
    text-decoration: none;

    a {
        text-decoration: none;
    }
}

.topbar {
    position: absolute;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 5rem;
}

.mode-btn {
    font-size: 1.5rem;
	color: var(--btnstk);
    margin-right: 1rem;
    border: none;
}

.title {
    color: #A8533E;
    font-family: "Nerko One";
    font-size: 2.5rem;
    font-style: normal;
    font-weight: 400;
    line-height: 135%;
    margin-top: 6rem;

    @media screen and (min-width: 850px) {
		font-size: 4rem;
	}
}

/* Calendar */
.calendar-wrapper {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: auto;
    padding: 2rem;
}

.calendar-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 0;
    opacity: 0.8;
}

.calendar-grid {
    display: grid;
    align-items: center;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;

    @media screen and (min-width: 850px) {
		align-items: center;
        grid-template-columns: repeat(7, 1fr);
	}
}

.avocado-day {
    text-align: center;
    cursor: pointer;
    transition: transform 0.4s ease;

    img {
        width: 60px;
        transition: transform 0.4s ease;
    }

    span {
        display: inline-block;
        margin-top: 0.4rem;
        font-weight: bold;
        font-family: 'Marhey', sans-serif;
        color: var(--title1);
        background-color: #fff4cc;
        padding: 0.2rem 0.6rem;
        border-radius: 10rem;
        font-size: 0.9rem;
    }
}

@keyframes shake {
    0%   { transform: translateY(0) rotate(0deg) scale(1.2); }
    15%  { transform: translateY(-3px) rotate(10deg) scale(1.25); }
    30%  { transform: translateY(3px) rotate(-10deg) scale(1.25); }
    45%  { transform: translateY(-3px) rotate(8deg) scale(1.2); }
    60%  { transform: translateY(3px) rotate(-8deg) scale(1.2); }
    75%  { transform: translateY(-1px) rotate(4deg) scale(1.1); }
    100% { transform: translateY(0) rotate(0deg) scale(1); }
}
  
  
.avocado-day:hover img {
    animation: shake 0.7s ease;
    transform: scale(1.2);
}

.avocado-day.clicked {
    img {
        filter: hue-rotate(70deg) brightness(1.1);
    }

    span {
        color: #999;
        text-decoration: line-through;
      }
}
  


.floating-emoji {
    position: absolute;
    font-size: 1.5rem;
    pointer-events: none;
    animation: floatUp 1.5s ease-out forwards;
    z-index: 999;
}
  
@keyframes floatUp {
    0% {
      transform: translateY(0);
      opacity: 1;
      scale: 1;
    }
    100% {
      transform: translateY(-80px);
      opacity: 0;
      scale: 1.4;
    }
}
  