@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:ital,wght@0,100..700;1,100..700&display=swap');

/*#region General Styles */
:root {
  --white: #ddd;
  --highlight: #c763ae;
  --undertone: #6a4f8e;
  --alphaundertone: #6a4f8ebb;
  --alphabg: #1a0f20bb;
  --bg: #1a0f20;
}
html {
  min-height: 100vh;
}
body {
  margin: 0;
  padding: 10px;
  font-family: "Roboto Mono", monospace;
  font-optical-sizing: auto;
  font-weight: normal;
  font-style: normal;
  color: var(--white);
  display: flex;
  gap: 20px;
  flex-direction: column;
}
body {
  background-color: var(--bg);
  background-image: url('/img/bg.jpg');
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
}
h1 {
  margin: 0;
}
a:link {
  color: var(--highlight);
}
a:visited {
  color: var(--undertone);
}
/*#endregion General Styles */

/*#region General Classes */
.button {
  font-family: "Roboto Mono", monospace;
  font-weight: bold;
  padding: 10px;
  color: var(--white);
  background-color: var(--bg);
  cursor: pointer;
  border-radius: 10px;
  border: none;
  box-shadow: 0 0 20px rgb(0 0 0 / 0.6);
  transition: filter 0.1s;
}
.button:hover {
  filter: brightness(140%);
}

.highlight {
  color: var(--highlight);
}
.bghighlight {
  background-color: var(--highlight);
  color: var(--white);
}
.nobreak {
  white-space: nowrap;
}
.center {
  text-align: center;
}
/*#endregion General Classes */

/*#region Header */
.header {
  display: flex;
  position: sticky;
  top: 0;
  padding: 10px;
  margin: 10px;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background-color: var(--alphabg);
  backdrop-filter: blur(5px);

  @media (max-height: 750px) {
    position: static;
  }
}
/*#endregion Header */

/*#region Action Bar */
.actionbar {
  display: flex;
  gap: 10px;
  width: min(calc(100% - 20px), 600px);

  & .button:first-child {
    flex: 1;
  }
}
/*#endregion Action Bar */

/*#region Calendar Items */
.callist {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 10px;

  & * {
    margin: 0;
  }

  & > * {
    width: min(calc(100% - 20px), 600px);
  }

  & .calitem {
    border: 1px solid var(--white);
    display: flex;

    width: min(calc(100% - 20px), 600px);
    box-sizing: border-box;

    & .sidebar {
      background-color: var(--alphaundertone);
      padding: 5px;
      display: flex;
      justify-content: center;
      align-items: center;

      &.past {
        background-color: var(--bg);
      }

      & .date {
        margin: 5px 0;
        writing-mode: vertical-lr;
      }
    }

    & .content {
      background-color: var(--alphabg);
      flex: 1;
      display: flex;
      flex-direction: column;

      padding: 10px;
      gap: 10px;

      & .title {
      }

      & .desc {
      }

      & .details {
        margin-top: auto;
        width: 100px;
      }
    }
  }

  & .bookend {
    text-align: center;
  }
}
/*#endregion Calendar Items */

/*#region HR with Text */
.nowbar {
  text-shadow: 1px 1px 1px var(--bg);
}
.separator {
  display: flex;
  align-items: center;
  text-align: center;
}

.separator::before,
.separator::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid red;
}

.separator:not(:empty)::before {
  margin-right: .25em;
}

.separator:not(:empty)::after {
  margin-left: .25em;
}
/*#endregion HR with Text */

/** {kborder: 1px solid red;}*/
