#container {
    width: 100%;
}

#weekdays {
    color: #247ba0;
    flex: 1 0 calc(100% / 8);
    width: 100%;
    margin: auto;
    overflow: auto;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}


#weekdays div {
    width: calc(13% - -10px);
    margin: 5px;
    border: 2px solid transparent;
    justify-content: space-between;
    text-align: left;
    text-transform: lowercase;
    color: white;
    font-weight: 300;
    font-size: 1.3em;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    height: 32px;
    width: 32px;
}

#calendar {
    width: 100%;
    margin: auto;
    flex-wrap: nowrap;
    overflow: auto;
    margin-bottom: 30px;
    flex-wrap: wrap;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-auto-rows: auto; 
    gap: 4px;
}

.day {
    position: relative;
    /* width: calc(13% - -10px); */
    /* min-width: 200px; */
    height: 150px;
    margin: 5px;
    overflow: hidden;
    background: none;
    display: flex;
    justify-content: space-between;
    border-radius: 5%;
    border: 2px solid #c3c3c3;
    flex: 1 0 calc(100% / 8);
}

.event {
    width: 100%;
    margin: 0;
    padding: 0 5px;
    height: 100%;
    position: relative;
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    align-content: end;
}
.padding {
    border-color: #4a4a4c;
}
#newEventModal,
#deleteEventModal {
    display: none;
    z-index: 20;
    padding: 25px;
    background-color: #131315;
    box-shadow: 0px 0px 3px black;
    border-radius: 5px;
    width: 350px;
    top: 100px;
    left: calc(50% - 175px);
    position: absolute;
}
#newEventModal input {
    padding: 10px;
    width: 90%;
    margin-bottom: 25px;
    border-radius: 3px;
    outline: none;
    border: none;
    box-shadow: 0px 0px 3px gray;
}
#cancelButton,
#deleteButton {
    background-color: #ea1f1f;
    width: auto;
    color: white;
    border-radius: 5px;
    font-size: 1em;
    padding: 0px 10px;
}
#saveButton,
#closeButton {
    background-color: #00ff1e;
    width: auto;
    color: white;
    border-radius: 5px;
    font-size: 1em;
    padding: 0px 10px;
    margin-right: 10px;
}
#eventText {
    font-size: 14px;
}
#modalBackDrop {
    display: none;
    top: 0px;
    left: 0px;
    z-index: 10;
    width: 100%;
    height: 100vh;
    position: absolute;
    background-color: rgba(0, 0, 0, 0.8);
}
.day .number,
.day.padding .number {
    position: absolute;
    z-index: 1;
    color: #c3c3c3;
    text-shadow: 0 1px 1px #121212;
    font-weight: 600;
    padding: 5px 25px 25px 5px;
    font-size: 1em;
    background: linear-gradient(130deg, rgb(14 14 16) 5%, rgba(255, 255, 255, 0) 50%);
}

#header {
    text-align: left;
    margin-bottom: 25px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

#monthDisplay {
    color: #ea3c1f;
    font-size: 1.5em;
    text-transform: lowercase;
}
.event::after {
    content: "";
    height: 5px;
    display: block;
}
#currentDay {
    border-color: #ea3c1f;
}

#currentDay .event, 
#currentDay span.number {
    color: #ea3c1f;
}

div#actionButtons {
    display: flex;
    margin-top: 5px;
}

button img {
    height: 16px;
    pointer-events: none;
}



button:hover {
    transform: scale(1.1);
}

button#todaybtn img {
    height: 20px;
}

@media (max-width: 700px) {
    #calendar {
        grid-template-columns: repeat(2, 1fr);
    }
    #weekdays {
        display: none;
    }
    #header {
        margin-bottom: 10px;
    }
}


@media (min-width: 700px) and (max-width: 1100px) {
    #calendar {
        grid-template-columns: repeat(4, 1fr);
    }
    #weekdays {
        display: none;
    }
    #header {
        margin-bottom: 10px;
    }
    button#todaybtn img {
        height: 35px;
    }
}



/* == RSPONSIVE == */
nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
nav .logo {
  font-size: 2rem;
}
nav .nav-toggle,
nav .nav-toggle-label {
  display: none;
}
nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1rem;
  align-items: center;
}
nav ul li a {
  display: block;
  text-decoration: none;
  color: white;
  padding: 0.5rem;
}

@media (max-width: 1100px) {
  
  nav .nav-toggle,
  nav .nav-toggle-label {
    display: block;
  }
  nav .nav-toggle {
    position: absolute;
    opacity: 0;
    width: 0; height: 0;
  }
  nav .nav-toggle-label {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    cursor: pointer;
    z-index: 2;
    color: white;
    margin-top: -20px;
  }
  nav {
    display: flex;
    flex-direction: column;
  }
  nav ul {
    display: none;
    width: 100%;
  }
  nav ul li a {
    display: block;
    padding: .75rem 1rem;
    color: white;
  }
  nav ul li {
    width: 100%;
    margin: 0;
    padding: 5px 0;
    text-align: center;
  }
  li:nth-child(2n) {
     background: #fbfbfb05;
  }
  nav .nav-toggle:checked ~ ul {
    display: flex;
    margin-top: 15px;
    gap: 0;
  }
  nav ul li.menu_icon {
    width: 25%;
  }
  li.menu_icon {
    background: none !important;
  }
  button {
      background: #1d1d1f;
      width: 60px;
      height: 60px;
      border-radius: 100%;
      margin-right: 10px;
  }
  
  button img {
      height: 35px;
      margin-top: 2px;
  }
}
h2 {
    color: white;
    margin: 0;
    margin-bottom: 20px;
}