/*variables*/
:root {
    --white: #fff;
    --main: #eaedf0;
    --accent: #0041ff;
    --accent-1: #1919c9;
    --accent-2: #ebedf0;
  }
  
/*styles specific for creation page*/
#creationpage {
  width: 80vw;
  margin: auto;
  border: 2px solid;
  padding: 10px;
  border-radius: 10px;
  background-color: #F9F7F7 ;
  color: #2a3c24;
  text-align: center;
  font-family: "Abel", sans-serif;
}

#linklocation {
  text-align: center;
  font-style: italic;
  font-size: 1em;
}

input:placeholder-shown {
  font-style: italic;
  padding: 5px;
}

#submit {
  border-radius: 20px;
  margin: 5px;
  background-color: #2a3c24;
  color: white;
  padding: 10px;
}

h1 {
  text-align: center;
}

/*styles specific for event page*/
body {
  background-color: var(--main);
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  justify-content: center;
  font-family: "Noto Znamenny Musical Notation", sans-serif;}

h1 {
  text-align: center;
}

.topinfo {
  margin-top: auto;
  margin-bottom: auto;
}

.container {
  display: inline-block;
  background-color: var(--white);
  border-radius: 35px;
  padding: auto;
  margin: auto;
  padding-bottom: 5px;
}

.hidden {
  visibility: hidden;
}

#helpertext {
  font-size: small;
}

header {
  margin: 2px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
}

.header-display {
  display: flex;
  align-items: center;
}

.header-display p {
  color: var(--accent);
  margin: 5px;
  font-size: 1.2rem;
  word-spacing: 0.5rem;
}

pre {
  padding: 10px;
  margin: 0;
  cursor: pointer;
  font-size: 1.2rem;
  color: var(--accent);
}

.days, .week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin: auto;
  padding: 0 20px;
  justify-content: space-between;
  font-weight: 500;
}

.week div, .days div {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 3rem;
  width: 3em;
  border-radius: 100%;
}

.days div:hover {
  /* background: var(--accent-2);
  color: var(--accent-1); */
  cursor: pointer;
}

.week div {
  opacity: 0.5;
}

/* Date density and isToday */
  .today-date {
    text-decoration: underline;
    text-decoration-color: red;
    text-underline-offset: 5px;
  }

  .one {
    background-color: var(--accent-1);
    opacity: 10%;
    color: white;
  }

  .two {
    background-color: var(--accent-1);
    opacity: 25%;
    color: white;
  }

  .three {
    background-color: var(--accent-1);
    opacity: 40%;
    color: white;
  }

  .four {
    background-color: var(--accent-1);
    opacity: 60%;
    color: white;
  }

  .five {
    background-color: var(--accent-1);
    opacity: 80%;
    color: white;
  }

  .six, .seven, .eight, .nine, .ten, .eleven, .tweleve, .thirteen, .fourteen, .fifteen, .sixteen, .seventeen, .eighteen, .nineteen {
    background-color: var(--accent-1);
    opacity: 100%;
    color: white;
  }

.display-selected {
  margin-bottom: 2px;
  text-align: center;
}

/* Styling the timeboxes */

@media (min-width: 900px) {
  .timeBoxContainer {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr 2fr !important;
    grid-template-rows: repeat(6, 1fr) !important;
    gap: 10px;
    align-items: center;
  }
}

#results {
  display: flex;
  flex-direction: column;
}

.resultsDate {
  color: var(--accent-1);
  opacity: 80%;
}

#dateTitle {
  text-align: center;
  margin-bottom: 5px;
}

.timeBoxContainer {
  display: grid;
  grid-template-columns: 1fr 2fr;
  grid-template-rows: repeat(4, 1fr);
  gap: 10px;
  align-items: center;
}

  .timeBox {
    width: 100%;
    padding: 8px;
    border-radius: 35px;
    border: 2px solid gray;
    justify-self: right;
    text-align: center;
    /* Throwing the kitchen sync at it */
    box-sizing: border-box;
    user-select: none;
    -webkit-user-select: none;
  }

  .timeBox:hover {
    cursor: pointer;
  }

.gray {
  background-color: gray;
}

.purple {
  color: white;
  background-color: var(--accent-1);
  opacity: 80%;
}