

.c-calendar {
    width: 100%;
    max-width: 100%;
    border-width: 1px;
    border-style: solid;
    border-collapse: collapse;
    border-color: black;

    min-height: calc((1 + var(--cal-rows, 4)) * 3rem + 5rem);
}

.c-calendar__nav {
    font-size: 1.7rem;
    line-height: 1.2em;
    font-weight: 300;
    color:white;

    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0.4rem 0;
    width: 100%;
    background: #30567d;
}

.c-calendar__nav a:hover {
    --link-color: #30567d;
}

.c-calendar__prev, .c-calendar__next {
    --link-color: #30567d;
    font-size: 23px;
    line-height: 1em;
}
:is(.c-calendar__prev, .c-calendar__next) a {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.c-calendar__prev-btn, .c-calendar__next-btn {
    height: 1.2em;
    width: 1.2em;
}

.c-calendar__header {
    background-color: #30567d;
    color: white;
    height: 2em;
}
.c-calendar__header th {
    padding-top: 7px;
    padding-bottom: 7px;
}

.c-calendar :is(td, th) {
    border-width: 1px;
    border-style: solid;
    border-color: black;
}

.c-calendar :is(td, tr) {
    min-height: 2rem;
}

.c-calendar td {
    padding: 0 6px;
    color: #3e78b5;
    vertical-align: top;
    font-size: 0.8em;
    width: calc(100% / 7);

    line-height: 1.4em;
}

.c-calendar__day-num {
    text-align: right;
}

  .c-calendar__nav-wrapper > tr{
    width: 100%; 
    display: block;
  }
  .c-calendar__nav-wrapper > tr > th{
    width: 100%; 
    display: block;
  }
  .c-calendar__prev a, .c-calendar__prev a:active, .c-calendar__prev a:visited, .c-calendar__prev a:hover, .c-calendar__next a, .c-calendar__next a:active, .c-calendar__next a:visited, .c-calendar__next a:hover{
    text-decoration:none;
  }
  .c-calendar__curr{
    font-size: 27px;
    line-height: 1.2em;
  }
  .c-calendar__event{
    margin-bottom:10px;
  }
  .c-calendar__event a:hover{
    color:black;
  }
  @media screen and (max-width:550px){
    .c-calendar__prev, .c-calendar__next{
      font-size:4.2vw;
    }
    .c-calendar__curr{
      font-size: 4.9vw;
      line-height: 1em;
      text-align: center;
    }
  }

  .c-calendar__header, .fr-view table.c-calendar th{
  background-color: #30567d;
}
.c-calendar__prev a, .c-calendar__prev a:active, .c-calendar__prev a:visited, .c-calendar__prev a:hover, .c-calendar__next a, .c-calendar__next a:active, .c-calendar__next a:visited, .c-calendar__next a:hover{
  color:white;
}