* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  user-select: none;
}

:root {
  font-family: 'Quicksand', sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  --base-clr: #000000;
  --base2-clr: #1f1f1f;
  --base3-clr: #404040;
  --line-clr: #707070;
  --nav-clr: #6f6f6f;
  --hover-clr: #55555580;
  --accent-clr: #d6d6d6;
  --text-clr: #f9f9f9;
  --text2-clr: #c3c3c3;
  --glow-clr: #ff8800;
  --radius: 0.5em;
}
html {
  background-color: rgb(33, 33, 33); /* Your desired color */
}
body {
  background: radial-gradient(
    farthest-corner at 55% 10%,
    var(--base3-clr) 0%,
    var(--base-clr) 100%
  );
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--text-clr);
  padding-bottom: 2em;
}
.logo {
  margin-top: 1em;
  width: calc(50% + 100px);
  max-width: 640px;
}
.logo > img {
  width: 100%;

  filter: drop-shadow(11px 3px 4px rgba(255, 128, 1, 0.9))
    drop-shadow(-11px -3px 4px rgba(0, 213, 255, 0.8));
  /* background-repeat: no-repeat;
   z-index: -1; */
}
.tag {
  margin-left: 2em;
  letter-spacing: 2em;
  text-align: center;
  line-height: 2em;
  filter: drop-shadow(9px 3px 4px rgba(255, 128, 1, 0.9))
    drop-shadow(-9px -3px 4px rgba(0, 213, 255, 0.8));
}
#upcoming {
  padding-top: 1em;
  display: flex;
  flex-direction: column;
  gap: 1em;
}

#upcoming a {
  color: var(--text-clr);
}

.gigevent {
  padding: 0.5em;
  display: flex;
  flex-direction: column;
  justify-content: stretch;
  align-items: left;
  cursor: pointer;
  border-radius: var(--radius);
  border: 1px solid #555;
  gap: 0.2em;
  position: relative;
}

.date,
.time,
.place,
.info {
  padding: 0 0.5em;
}

.place {
  font-weight: bold;
  cursor: pointer;
  background-color: #40404076;
  border-radius: calc(var(--radius) * 0.5);
}
.place::after {
  font-weight: 100;
  color: #999;
  font-size: 1em;

  content: '...map';
  position: absolute;
  right: 1em;
}
.hidden {
  display: none;
}

/* NAVIGATION */
#nav {
  height: 100vh;
  height: auto;
  width: auto;
  padding: 1em;
  background-color: var(--base2-clr);
  position: fixed;
  align-self: self-start;
  top: 0;
  overflow: hidden;
  border-bottom-right-radius: 1em;
}

#nav > ul {
  list-style: none;
}
#nav > ul > li:first-child {
  display: flex;
  justify-content: flex-end;
}
#nav > ul > li {
  padding: 0.2em;
}
#nav > ul > li.active svg {
  fill: var(--accent-clr);
}
#nav > ul > li.active a {
  color: var(--accent-clr);
}

#nav svg {
  flex-shrink: 0;
  fill: var(--nav-clr);
  margin-left: -2px;
}

#nav a {
  cursor: pointer;
  text-decoration: none;
  color: var(--nav-clr);
  border-radius: var(--radius);
  border: none;
  display: flex;
  align-items: center;
  gap: 1em;
  padding: 0.4em;
}

#nav a:hover {
  background-color: var(--hover-clr);
}

#nav a span {
  flex-grow: 1;
}

#toggle_menu svg {
  transition: rotate 250ms ease;
}
#nav {
  transition: width '0.5s';
}

#nav.close {
  width: 40px;
  padding: 4px;
}

#nav.close a {
  padding: 0.2em;
}

#nav.close #toggle_menu svg {
  rotate: 90deg;
}

/* MAIN */
main {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-direction: column;
  gap: 1rem;
}

section {
  line-height: 1.4em;
  border: var(--line-clr) 1px solid;
  border-radius: calc(var(--radius) * 2);
  padding: min(1em, 15%);
  display: none;
  background: rgba(0, 0, 0, 0.4);
}

section.show {
  display: block;
}

#about {
  line-height: 2em;
  text-align: center;
}

#start {
  width: 98%;
  max-width: 800px;
}

#manage {
  line-height: 1.4em;
  border: var(--line-clr) 1px solid;
  border-radius: calc(var(--radius) * 2);
  padding: min(1em, 15%);
  background: rgba(0, 0, 0, 0.4);
  width: 90%;
  max-width: 800px;
}

#start > div:first-child {
  width: 100%;
  text-align: center;
}

.managebtn {
  color: red;
  cursor: pointer;
  border-radius: var(--radius);
  border: 1px solid;
  text-align: center;
  letter-spacing: 0.4em;
}

#dateadd {
  margin: 2em auto 0 auto;
  width: 50%;
}

.mapframe {
  width: 100%;
  height: 40vw;
  max-height: 400px;
}

.editbutton {
  position: absolute;
  top: 0;
  right: 0;
  font-size: 0.7em;
  text-align: center;
  background-color: #1f1f1f;
  padding: 0;
}

.editconsole {
  cursor: default;
  display: flex;
  flex-direction: column;
  gap: 2em;
  position: absolute;
  left: 100%;
  top: 0;
  pointer-events: auto;
}

.cancelbutton,
.deletebutton,
.savebutton {
  border-top-right-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
  padding: 0 0.3em;
  z-index: 999;
  cursor: pointer;
}

.cancelbutton {
  background-color: rgb(98, 98, 98);
}
.savebutton {
  background-color: rgb(1, 135, 12);
}

.deletebutton {
  background-color: red;
}

.editable {
  pointer-events: none;
}

.editable > .date::before,
.editable > .time::before,
.editable > .place::before,
.editable > .info::before {
  font-weight: normal;
  font-size: 0.9em;
  position: absolute;
  right: 100%;
  padding: 0 0.4em;
  background-color: var(--line-clr);
  text-align: right;
  border-top-left-radius: var(--radius);
  border-bottom-left-radius: var(--radius);
}

.editable > .date::before {
  content: 'date';
}

.editable > .time::before {
  content: 'time';
}

.editable > .place::before {
  content: 'place';
}

.editable > .info::before {
  content: 'info';
}

.editable::selection {
  background-color: rgb(255, 214, 178);
  color: black;
}

.imapdiv {
  font-size: 0.9em;
  line-height: 1em;
  color: #5a5a5a;
  user-select: none;
  word-break: break-all;
  background-color: rgba(95, 95, 95, 0.503);
}

.imapdiv:focus {
  background-color: rgba(255, 0, 0, 0.503);
}

.imapdiv::before {
  content: 'Paste [Embed Google Map] code here...';
  background-color: red;
  color: rgb(0, 0, 0);
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
}

.imapdiv::selection {
  background-color: #00000000;
  color: #5a5a5a;
}
.editable > .date,
.editable > .time,
.editable > .place,
.editable > .imapdiv,
.editable > .info {
  border-radius: var(--radius);
  outline: 1px solid rgb(255, 0, 0);
  pointer-events: auto;
}

.dragging {
  visibility: hidden;
}

#updateweb {
  font-size: 1.2em;
  padding: 0.5em;
}

.disabled {
  pointer-events: none;
  color: grey;
}
iframe {
  pointer-events: all;
}
