@import url('https://fonts.googleapis.com/css2?family=Permanent+Marker&display=swap');

body
{
  max-width: 1000px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 200px 100px rgb(0 0 0 / 80%);
}

header, footer
{
  max-width: 1000px;
  margin: 0 auto;
}

#main
{
  padding-bottom: 70px;
  padding-top: 56px;
}

.marker
{
  font-family: "Permanent Marker", cursive;
}

.round-top-20 
{
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
  transition: transform 0.5s, background-color 0.5s;
}

/* Flex */

.flex
{
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: nowrap;
  flex-direction: row;
  align-content: center;
}

.flex-wrap
{
  flex-wrap: wrap;
}

.flex-grow
{
  flex: 1 1 0;
  width: 100%;
}

.flex-gap-20
{
  gap: 20px;
}

.flex-gap-15
{
  gap: 15px;
}

.flex-gap-10
{
  gap: 10px;
}

.flex-gap-5
{
  gap: 5px;
}

.flex-column
{
  flex-direction: column;
}

.flex-center
{
  align-items: center
}

@keyframes shine
{
  0% {
      background-color: #ff0000;
      box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
  }
  50% {
      background-color: #ffcccc;
      box-shadow: 0 0 30px rgba(255, 255, 0, 0.7);
  }
  100% {
      background-color: #ff0000;
      box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
  }
}

.progress-complete
{
    animation: shine 1s infinite;
}

/* ANIMATION */

  .wrp-circle:hover .fa-plus, .wrp-circle:hover .fa-minus
  {
    animation: hover-animation 0.5s;
  }

  @keyframes hover-animation
  {
    0% { transform: scale(1); }
    50% { transform: scale(1.5); }
    100% { transform: scale(1); }
  }

  @keyframes bounce
  {
    0%, 20%, 50%, 80%, 100%
    {
      transform: translateY(0);
    }
    40%
    {
      transform: translateY(-30px);
    }
    60%
    {
      transform: translateY(-15px);
    }
  }

@keyframes spin-right
{
  from
  {
    transform: rotate(0deg);
  }
  to
  {
    transform: rotate(360deg);
  }
}

@keyframes spin
{ 
  100%
  { 
    transform: rotateZ(360deg);
  }
}

@keyframes spin-left
{
  from
  {
    transform: rotate(0deg);
  }
  to
  {
    transform: rotate(-360deg);
  }
}

.bounce
{
  animation: bounce 1s;
}

.spin-right 
{
  animation: spin-right 1s;
}

.spin-left
{
  animation: spin-left 1s;
}

/* COLOR */

  .w3-pale-red
  {
    background-color: #fd9d9d !important;
  }

  .w3-pale-green
  {
    background-color: #7fdb7f !important;
  }

  .w3-pale-purple
  {
    background-color: #c68cf0 !important;
  }

  .w3-pale-black
  {
    background-color: #383838 !important;
    color : white !important;
  }

  .w3-pale-blue
  {
    background-color: #87CEEB !important;
  }

  .w3-pale-orange
  {
    background-color:#f0e68c !important;
  }

  .w3-orange
  {
    color : white !important;
  }

  .w3-pale-brown
  {
    background-color:#c59f76 !important;
  }

  .w3-text-yellow, .w3-hover-text-yellow:hover
  {
    color: #ffe500 !important;
  }

  .w3-padding-8
  {
    padding: 8px !important;
  }

  .w3-mid-gray
  {
    background: #ddd;
  }

/* AUTRE */

  .w3-progress
  {
    overflow: hidden;
  }

  .wrp-circle
  {
    position: relative;
    width: 36px;
    height: 36px;
  }

  .wrp-icon
  {
    position: absolute;
    color: #fff;
    font-size: 18px;
    top: 18px;
    left: 18px;
    transform: translate(-50%, -50%);
  }

  .wrp-border
  {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    padding: 1px;
    background-clip: content-box;
    animation: spin 10s linear infinite;
  }

  .wrp-circle:active .wrp-border
  {
    animation: spin 2s linear infinite;
  }

  .wrp-btn
  {
    cursor: pointer;
  }

  .wrp-inactif
  {
    cursor: not-allowed;
  }

  .wrp-border-on
  {
    border: 2.5px dashed;
  }

  #calendar-controls 
    {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .calendar-grid 
    {
        display: grid;
        grid-template-columns: repeat(7, 1fr);
        gap: 5px;
        text-align: center;
    }
    .day-header, .day, .day-empty
    {
        padding: 10px 5px;
        border-radius: 5px;
        overflow: hidden;
        font-size: 0.9em;
    }

    .w-day
    {
        border-radius: 8px;
        overflow: hidden;
        font-size: 0.9em;
    }