/*-- -------------------------- -->
<---           Steps            -->
<--- -------------------------- -*/

/* Mobile - 360px */
@media only screen and (min-width: 0rem) {
  #kalendar-odvoza {
    background-color: #f1f1f1;
    padding: var(--sectionPadding);
  }
  #kalendar-odvoza .cs-container {
    width: 100%;
    max-width: 80rem;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* 48px - 64px */
    gap: clamp(3rem, 6vw, 4rem);
  }
  #kalendar-odvoza .cs-content {
    /* set text align to left if content needs to be left aligned */
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    /* centers content horizontally, set to flex-start to left align */
    align-items: center;
  }

  #kalendar-odvoza .cs-text {
    max-width: 66.5rem;
  }
  #kalendar-odvoza .cs-button-solid {
    font-size: 1rem;
    /* 46px - 56px */
    line-height: clamp(2.875rem, 5.5vw, 3.5rem);
    text-decoration: none;
    font-weight: 700;
    text-align: center;
    margin: 0;
    color: #fff;
    min-width: 9.375rem;
    padding: 0 1.5rem;
    background-color: var(--primary);
    border-radius: 0.25rem;
    display: inline-block;
    position: relative;
    z-index: 1;
    /* prevents padding from adding to the width */
    box-sizing: border-box;
  }
  #kalendar-odvoza .cs-button-solid:before {
    content: "";
    position: absolute;
    height: 100%;
    width: 0%;
    background: #000;
    opacity: 1;
    top: 0;
    left: 0;
    z-index: -1;
    border-radius: 0.25rem;
    transition: width 0.3s;
  }
  #kalendar-odvoza .cs-button-solid:hover:before {
    width: 100%;
  }
  #kalendar-odvoza .cs-card-group {
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* 20px - 40px */
    gap: clamp(1.25rem, 3vw, 2.5rem);
  }
  #kalendar-odvoza .cs-item {
    text-align: center;
    list-style: none;
    width: 100%;
    max-width: 20.375rem;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  #kalendar-odvoza .cs-picture {
    margin-bottom: 1.5rem;
    width: 4.5rem;
    height: 4.5rem;
    background-color: rgba(125, 182, 19, 0.6);
    border-radius: 1rem 0 1rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  #kalendar-odvoza .cs-h3 {
    font-size: 1.25rem;
    line-height: 1.2em;
    text-align: inherit;
    margin: 0 0 0.75rem 0;
    color: var(--headerColor);
  }
  #kalendar-odvoza .cs-item-p {
    font-size: 1rem;
    line-height: 1.5em;
    text-align: inherit;
    margin: 0;
    color: var(--bodyTextColor);
  }
  #kalendar-odvoza .cs-arrow {
    /* 48px - 80px */
    width: clamp(3rem, 6vw, 5rem);
    height: auto;
    display: block;
    flex: none;
    transform: rotate(120deg);
  }
  #kalendar-odvoza .cs-arrow-img {
    width: 100%;
    display: block;
  }
  #kalendar-odvoza .cs-icon {
    width: 2rem;
    height: auto;
    display: block;
  }

  #kalendar-odvoza .cs-search {
    font-size: 1rem;
    width: 99.5%;
    text-align: center;
    border-radius: 0.5rem;
    border: none;
    height: 3.5rem;
  }

  #kalendar-odvoza #suggestions-container {
    background-color: #ffffff;
    font-size: 1rem;
    width: 100%;
    text-align: center;
    border-radius: 0.5rem;
    border: 0.5px solid var(--primary);
    padding-top: 0.2rem;
    margin-top: 0.1rem;
  }

  #kalendar-odvoza #suggestions-container ul {
    list-style: none;
    padding: 0;
    margin: 0;
    border: 3px solid red;
  }

  #kalendar-odvoza .cs-search:focus {
    outline: none;
    border: 1px solid var(--primary);
  }

  #kalendar-odvoza #search-button {
    margin-bottom: 1rem;
  }

  #kalendar-odvoza #calendar {
    max-width: 80rem !important;
    margin: 0 auto;
    height: 0; /* Initially minimal height */
    overflow: hidden; /* Prevents content from overflowing */
    transition: height 0.5s; /* Optional: Smooth transition for height change */
  }
}

/* Tablet - 768px */
@media only screen and (min-width: 48rem) {
  #kalendar-odvoza .cs-card-group {
    flex-direction: row;
    justify-content: space-between;
    align-items: stretch;
  }
  #kalendar-odvoza .cs-arrow {
    align-self: center;
    transform: rotate(40deg);
  }
}

.fc-event-title,
.fc-event-title-container {
  color: black !important; /* Adjust text color if needed */

  display: flex; /* Enables flexbox */
  justify-content: center; /* Centers horizontally */
  align-items: center; /* Centers vertically */
  height: 100%; /* Takes full height of the cell */
  text-align: center; /* Ensures text is centered */
}

.fc .fc-bg-event {
  opacity: 1 !important; /* Adjust opacity */
}

/* Additional style to ensure the text is visible and not hidden */
.fc-daygrid-day-events {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
}

/* Media query for mobile devices */
@media screen and (max-width: 600px) {
  #calendar {
    height: 600px; /* Increased height for mobile screens */
  }
}
