/* --------------------------- BODY & FONTS --------------------------- */

* {
  margin: 0;
  padding: 0;
}

html {
  width: 100%;
  height: 100%;
}

body {
  width: 100%;
  display: flex;
  justify-content: center;
  background-color: #f8f8f8;
}

#calendarContainer {
  display: grid;
  grid-template-rows: 7rem auto;
  grid-template-columns: 17rem auto;
  grid-template-areas:
    "aside header"
    "aside main";
  font-family: "Roboto", sans-serif;
  box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
  margin-top: 2rem;
  padding: 0.5rem;
  background-color: white;
}

h1 {
  font-size: 2.5rem;
  color: white;
  font-weight: 200;
}

h2 {
  color: #826ca6;
  font-weight: 700;
  font-size: 1rem;
  padding: 1rem;
}

h3 {
  display: inline;
  color: white;
  font-weight: 200;
  font-size: 1rem;
}

/* --------------------------- HEADER --------------------------- */

.headline,
.material-icons {
  color: #a36bff;
  font-size: 2rem;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

#monthInHeader {
  padding-right: 0.5rem;
}

header {
  display: flex;
  flex-direction: column;
  grid-area: header;
  background-color: #f8f8f8;
  padding-top: 1rem;
  margin-bottom: 0.5rem;
}

.weekday {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
  width: 100%;
  color: #826ca6;
  text-align: center;
  margin-top: 1rem;
}

#previousMonth,
#nextMonth {
  cursor: pointer;
}

/* --------------------------- ASIDE --------------------------- */

aside {
  grid-area: aside;
  font-family: Arial, Helvetica, sans-serif;
  text-align: center;
  background-color: #e6d7ff;
  padding: 1rem;
  margin-right: 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

ul {
  margin-bottom: 1rem;
}

/* --------------------------- TO DO LIST --------------------------- */

#todoForm {
  margin-top: 1rem;
  width: 80%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#todoForm > * {
  margin-bottom: 0.5rem;
}

#dateInput {
  padding: 0.5rem;
  width: 100%;
  border: none;
}

.editDate {
  border: none;
}

#textAndButton {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#textInput {
  padding: 0.5rem;
  border: none;
  width: 85%;
}

#addTodo {
  padding: 0.5rem;
  background-color: transparent;
  color: #826ca6;
  font-size: 2rem;
  border: none;
  width: 15%;
  cursor: pointer;
}

#addTodo:focus {
  outline: 0;
}

#todoList {
  list-style-type: none;
  margin-bottom: 0;
}

.todoListItemStyle {
  display: flex;
  flex-direction: column;
  width: 100%;
  color: #826ca6;
  padding: 0.5rem;
  margin-bottom: 0.5rem;
}

.edittext {
  display: flex;
  justify-content: space-around;
}

.todoListItemStyle > * {
  margin: 0.5rem;
}

.textAndDate {
  display: flex;
  justify-content: space-around;
  padding: 0;
}

.editInput {
  border: none;
  height: 1.4rem;
  text-align: center;
  margin: 0.5rem;
}

.buttons {
  display: flex;
  justify-content: center;
  margin-top: 0.2rem;
}

.submitbutton {
  color: #8e75b8;
  background-color: rgb(255, 255, 255);
  height: 1.2rem;
  width: 3rem;
  border: none;
  cursor: pointer;
  border-radius: 15%;
  border: none;
  margin: 0.6rem;
}

.removeButton {
  color: rgb(192, 192, 192);
  background-color: rgb(255, 255, 255);
  height: 1.2rem;
  width: 2rem;
  border: none;
  cursor: pointer;
  border-radius: 15%;
  border: none;
  margin: 0.2rem;
}

.editButton {
  background-color: rgb(255, 255, 255);
  color: #8e75b8;
  cursor: pointer;
  width: 2rem;
  border-radius: 15%;
  border: none;
  margin: 0.2rem;
}

/* --------------------------- CALENDAR --------------------------- */

main {
  grid-area: main;
  width: 100%;
  gap: 0.5rem;
  background-color: white;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
}

main div {
  height: 4.8rem;
  width: 4.8rem;
  background-color: #f8f8f8;
  padding: 0.5rem;
  font-size: 0.6rem;
  color: grey;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.newday:hover {
  background-color: #e6d7ff;
}

.holiday {
  color: #a66fff;
}
