:root {
  --bg: #000000;
  --bg-accent: #272727;
  --bg-accent-light: #474747;
  --panel: #eef2f6;
  --white: #ffffff;
  --text: #111111;
  --muted: #737373;
  --line: #e7e7e7;
  --lime: #e0fd59;
  --soft-green: #dfe7d8;
  --soft-blue: #e2edf5;
  --soft-purple: #d8d0ff;
  --accent: #8b7dff;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.12);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 16px;
}

@font-face {
  font-family: 'Chillax';
  src: url('./assets/fonts/chillax/Chillax-Medium.ttf') format('truetype');
  font-weight: 500;
  font-display: swap;
  font-style: normal;
}

* {
  box-sizing: border-box;
  cursor: default;
}

body {
  margin: 0;
  font-family: 'Chillax', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
}

/* LOADING */

.loading {
  height: 100%;
  width: 100%;
  position: fixed;
  z-index: 9999;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-accent);
  top: 0;
  left: 0;
  font-family: 'Chillax', sans-serif;
  font-weight: 500;
  font-size: 2.5rem;
  color: var(--lime);
  transition: all 0.8s cubic-bezier(0.3, 1.1, 0.4, 1), opacity ease .6s;
}

.loading.done {
  height: 80px;
  width: calc(110px + 40px);
  margin: 20px;
  padding: 20px;
  padding-left: 30px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  border-radius: 35px;
  background-color: var(--bg-accent);
  font-size: 1.8rem;
  opacity: 0;
}

.loading.done-hide {
  display: none;
}

.loading-logo span {
  display: inline-block;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.loading-logo span {
  animation: pumpLoading 2s ease infinite;
}

.loading.done .loading-logo span {
  animation: none !important;
}

.loading-logo span:nth-child(1) { animation-delay: 0s; }
.loading-logo span:nth-child(2) { animation-delay: 0.05s; }
.loading-logo span:nth-child(3) { animation-delay: 0.1s; }
.loading-logo span:nth-child(4) { animation-delay: 0.15s; }
.loading-logo span:nth-child(5) { animation-delay: 0.2s; }

@keyframes pumpLoading {
  0%   { 
    transform: scale(1) translateY(0);
    filter: blur(0);
    color: var(--lime);
  }
  15%  { 
    transform: scale(1.15) translateY(-3px);
    filter: blur(3px);
    color: #cbc9ec;
  }
  30%  { 
    transform: scale(1) translateY(0);
    filter: blur(0);
    color: var(--lime);
  }
  100% { 
    transform: scale(1) translateY(0);
    filter: blur(0);
    color: var(--lime);
  }
}

/* LOADING END */
/* HEADER */

header {
  height: 80px;
  width: calc(100% - 40px);
  margin: 20px;
  padding: 20px;
  padding-left: 30px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  border-radius: 35px;
  background-color: var(--bg-accent);
}

a.header-logo {
  height: 120px;
  width: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Chillax', sans-serif;
  font-weight: 500;
  font-size: 1.8rem;
  color: var(--lime);
  text-decoration: none;
  cursor: pointer;
  opacity: 0;
  transition: opacity ease .6s;
}

.header-logo span {
  display: inline-block;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.header-logo:hover span {
  animation: pump 2s ease infinite;
}

.header-logo:hover span:nth-child(1) { animation-delay: 0s; }
.header-logo:hover span:nth-child(2) { animation-delay: 0.05s; }
.header-logo:hover span:nth-child(3) { animation-delay: 0.1s; }
.header-logo:hover span:nth-child(4) { animation-delay: 0.15s; }
.header-logo:hover span:nth-child(5) { animation-delay: 0.2s; }

@keyframes pump {
  0%   { 
    transform: scale(1) translateY(0);
    filter: blur(0);
    color: var(--lime);
  }
  15%  { 
    transform: scale(1.15) translateY(-3px);
    filter: blur(3px);
    color: #cbc9ec;
  }
  30%  { 
    transform: scale(1) translateY(0);
    filter: blur(0);
    color: var(--lime);
  }
  100% { 
    transform: scale(1) translateY(0);
    filter: blur(0);
    color: var(--lime);
  }
}

.header-right {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.header-button {
  height: 40px;
  width: auto;
  padding: 0px 15px;
  color: white;
  background-color: var(--bg-accent-light);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: .9rem;
  transition: all 0.8s cubic-bezier(0.3, 1.1, 0.4, 1);
}

.header-button.fixed { 
  width: 40px;
  padding: 0 0;
}

.header-button:hover {
  border-radius: 20px;
}

img.cal-filter-operator {
  height: 15px;
  cursor: pointer;
}

/* MULTI DAY CALENDAR EVENT */

.calendar-grid {
  display: grid;
  grid-template-columns: 
    10px 
    repeat(7, calc((100% - 20px) / 7)) 
    10px;
  grid-auto-rows: 52px;
  width: 100%;
  min-height: 100%;
  column-gap: 0;
  row-gap: 10px;
  position: relative;
  padding: 20px 0px;
}

.calendar-grid::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 10px;
  width: calc(100% - 20px);
  pointer-events: none;
  z-index: 0;

  background-image:
    linear-gradient(rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.08)),
    linear-gradient(rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.08)),
    linear-gradient(rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.08)),
    linear-gradient(rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.08)),
    linear-gradient(rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.08)),
    linear-gradient(rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.08));

  background-repeat: no-repeat;

  background-size:
    1px 100%,
    1px 100%,
    1px 100%,
    1px 100%,
    1px 100%,
    1px 100%;

  background-position:
    calc((100% / 7) * 1) 0,
    calc((100% / 7) * 2) 0,
    calc((100% / 7) * 3) 0,
    calc((100% / 7) * 4) 0,
    calc((100% / 7) * 5) 0,
    calc((100% / 7) * 6) 0;
}

.calendar-event {
  height: auto;
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  padding: 10px 15px;
  gap: 3px;
  z-index: 1;
  margin-left: 5px;
  margin-right: 5px;
}

.cal-content-multiday-single-title {
  font-size: 1rem;
  line-height: 1;
}

.cal-content-multiday-single-description {
  font-size: .8rem;
  line-height: 1;
}

/* CAL COLORS */

.vacation {
  background-color: #ffd9fc;
  color: #d64cbc;
}

.holiday {
  background-color: #d3e7ee;
  color: #467a75;
}

.event {
  background-color: #e8e7f6;
  color: #767498;
}

.actionday {
  background-color: #bfb5f0;
  color: #5949b1;
}

/* HEADER END */

main {
  height: calc(100svh - 140px);
  width: calc(100% - 40px);
  margin: 20px;
  display: flex;
  flex-direction: row;
  gap: 20px;
}

section.cal {
  height: calc(100svh - 140px);
  width: calc(100%);
  margin-top: 0px;
  border-radius: 35px;
  background: #DDF96F;
  background: linear-gradient(162deg,rgba(221, 249, 111, 1) 19%, rgba(201, 222, 231, 1) 53%, rgba(203, 201, 236, 1) 99%);
  transition: all 0.8s cubic-bezier(0.3, 1.4, 0.4, 1);
}

.cal-days {
  height: 120px;
  width: calc(100%);
  padding: 20px 0px;
  padding-bottom: 0px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.cal-days-weekswitch {
  height: 75%;
  width: 30px;
  border-radius: 25px;
  background-color: rgb(0, 0, 0, .8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  color: var(--bg-accent);
  font-family: 'Chillax', sans-serif;
  font-weight: 500;
  cursor: pointer;
  color: var(--lime);
  font-size: 1.5rem;
  transition: all .6s ease-in-out;
}

.cal-days-weekswitch:hover {
  height: 80%;
  width: 55px;
  border-radius: 20px;
  background-color: rgb(0, 0, 0, .9);
}

.cal-days-weekswitch.prev {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.cal-days-weekswitch.frvd {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.cal-day {
  height: 100%;
  width: calc(100% / 7);
  border-radius: 25px;
  background-color: rgb(0, 0, 0, .2);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--bg-accent);
  font-family: 'Chillax', sans-serif;
  font-weight: 500;
  cursor: pointer;
  transition: all ease .5s, border-radius ease .8s;
}

.cal-day:hover {
  background-color: rgb(0, 0, 0, .8);
  color: var(--lime);
  border-radius: 30px;
}

.cal-day.today {
  background-color: var(--bg-accent);
  color: var(--lime);
}

.cal-day.today:hover {
  background-color: rgb(0, 0, 0, .8);
  color: var(--lime);
  border-radius: 30px;
}

.cal-day-letters {
  font-size: 1.5rem;
  cursor: pointer;
}

.cal-day-number {
  font-size: 3rem;
  cursor: pointer;
}

.cal-content {
  height: calc(100% - 160px);
  width: calc(100% - 40px);
  margin: 20px;
  border-radius: 25px;
  background-color: var(--panel);
  box-shadow: 0px 0px 40px var(--panel);
  position: relative;
  overflow: hidden;
  overflow-y: auto;
}

section.cal-filters {
  height: calc(100svh - 140px);
  width: calc(0px);
  overflow: hidden;
  background-color: var(--panel);
  border-radius: 95px;
  margin-left: -20px;
  transform: translateX(120px);
  transition: all .8s cubic-bezier(0.3, 1.4, 0.4, 1);
}

section.cal-filters.open {
  width: calc(500px);
  transform: translateX(0px);
  margin-left: 0px;
  border-radius: 35px;
}

@media (max-width: 1100px) {
  .week-strip {
    grid-template-columns: 58px repeat(6, 1fr);
  }

  
}