@use 'buttons' as *;
@use 'colors' as *;

.dashboard {
  margin: 1em !important;
  width: 15% !important;
}

#moderator-urls {
  font-size: 80%;
  max-width: 600px;
  margin: auto;
}

.event {
  text-align: left;
}

.noevent {
  background-color: white;
  text-align: center;
  margin: 100px;
}

.some-event {
  min-height: 524px;

  .review-note {
    font-size: 12px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 20px;
    text-align: center;
  }

  .event-area {
    margin-top: 20px;
    margin-bottom: 20px;
    padding-top: 1px;
  }
}

.not-open {
  font-size: 75%;
  color: white;
  opacity: 0.6;

  margin-left: 54px;
  margin-right: 54px;
  margin-top: 20px;
}

.deadline {
  font-size: 75%;
  color: white;
  opacity: 1;

  margin-left: 54px;
  margin-right: 54px;
  margin-top: 20px;

  span {
    font-weight: bolder;
  }

  a {
    text-decoration: none;
    color: white;
    text-decoration: underline;
  }
}

@page {
  size: auto;
  /* auto is the current printer page size */
  margin: 0mm;
  /* this affects the margin in the printer settings */
}

.event-block {
  max-width: 600px;
  margin: auto;
  display: flex;
  flex-direction: column;
}

.addquestion {
  padding-bottom: 43px;
  padding-top: 20px;
}

.qrbox {
  width: 192px;
  height: 187px;

  margin-top: 28px;
  margin-left: auto;
  margin-right: auto;

  border: 1px solid #E9E9E9;
  box-sizing: border-box;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.0747566);
  border-radius: 4px;

  &.print {
    width: 350px;
    height: 350px;
  }
}

.linkbox-title {
  margin-top: 24px;
  margin-left: 54px;
  margin-bottom: 10px;

  font-style: normal;
  font-weight: 500;
  line-height: normal;
  font-size: 12px;
  letter-spacing: 0.015625em;
  text-transform: uppercase;

  color: #FFFFFF;
  mix-blend-mode: normal;
  opacity: 0.6;
}

.linkbox-box {
  display: flex;

  margin-left: 10px;
  margin-right: 10px;

  background: rgba(255, 255, 255, 0.1);
  border: 1px solid #E9E9E9;
  box-sizing: border-box;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.0747566);
  border-radius: 4px;
}

.linkbox-url {
  overflow: hidden;
  width: 100%;

  margin-left: 20px;
  margin-top: 15px;
  margin-bottom: 15px;
  margin-right: 10px;

  font-style: normal;
  font-weight: normal;
  line-height: 13px;
  font-size: 10px;
  letter-spacing: 0.015625em;

  color: #FFFFFF;
}

.linkbox-copy {
  margin-top: 16px;
  margin-right: 17px;
  margin-bottom: 17px;

  font-style: normal;
  font-weight: 500;
  line-height: normal;
  font-size: 14px;
  text-align: right;
  letter-spacing: 0.015625em;
  text-transform: uppercase;

  color: #FFFFFF;

  cursor: pointer;
}

.bg-event {
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: -1;

  background-color: white;
}

.bg-mod {
  @extend %mod-bg;
  z-index: -1;
}

.bg-print {
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: -1;

  background-color: white;
}

.floating-share {
  position: fixed;
  display: flex;
  width: 100%;
  left: 0;
  bottom: 10px;

  justify-content: center;
  z-index: 1;
  pointer-events: none;

  button {
    box-shadow: 0px 5px 20px 1px rgba(0, 0, 0, 0.14);
    width: 180px;
    height: 50px;
    margin-bottom: 10px;
    margin-left: 4px;
    margin-right: 4px;

    color: white;
    pointer-events: all;

    .feedback-anchor {
      height: 100%;
      display: flex;

      .feedback-text {
        margin-top: auto;
        margin-bottom: auto;
        width: 100%;
        color: white;
      }
    }
  }
}

.statistics {
  display: flex;
  justify-content: center;
  margin-top: 15px;
  padding-top: 15px;

  img {
    width: 30px;
  }

  .count {
    color: white;
    margin-top: 5px;
    margin-left: 5px;
    margin-right: 10px;
  }
}

// tooltips
@media (pointer: coarse),
(hover: none) {
  [title] {
    position: relative;
    display: inline-flex;
    justify-content: center;
  }

  [title]:focus::after {
    content: attr(title);
    position: absolute;
    top: 90%;
    color: #000;
    background-color: #fff;
    border: 1px solid;
    border-radius: 5px;
    width: fit-content;
    padding: 5px;
    font-size: 14px;
  }
}

.modpadding {
  padding-bottom: 80px;
}

.mod-panel {
  text-align: center;

  .state {
    display: inline-block;
    margin-top: 20px;
    text-align: center;

    select {
      padding: 8px;
      padding-left: 22px;
      padding-right: 30px;
      height: 40px;

      font-style: normal;
      font-weight: 500;
      line-height: normal;
      font-size: 16px;
      letter-spacing: 0.21875px;

      background: url('/assets/dropdown.svg') no-repeat right center;
      background-color: white;

      border: 1px solid #e9e9e9;
      border-radius: 64px;

      box-shadow: 0px 2px 4px 0 rgba(0, 0, 0, 0.07);

      -webkit-appearance: none;
      appearance: none;
    }
  }

  button {
    display: inline-block;
    width: 160px;
    height: 40px;

    margin-left: 30px;
  }

  .premium {
    border: 1px solid #e9e9e9;
    border-radius: 4px;
    margin: 5px;
    padding: 7px;

    .title {
      color: white;
    }

    .button-box {
      display: flex;
      margin-top: 8px;
      margin-bottom: 5px;

      .screening-option {
        display: inline-block;
        margin: auto;

        width: 158px;
        height: 38px;

        color: $pink-button;

        border-radius: 64px;
        border-width: 1px;
        border-style: solid;
        border-color: $button-border-color;

        cursor: pointer;

        box-shadow: 0px 2px 4px 0 rgba(0, 0, 0, 0.07);

        background-color: white;

        font-size: 14px;
        letter-spacing: 0.22px;
        line-height: 16px;
        text-transform: uppercase;

        input {
          margin-top: 12px;
        }
      }

      button {
        margin: auto;
      }
    }
  }
}

#ico-offline {
  height: 1.8em;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: red;
  z-index: 1;
  text-align: center;
  transition: top 0.4s ease;
  transition-property: top, background-color;

  img {
    height: 100%;
  }

  div.timeout {
    font-size: 120%;
    color: black;
    top: -5px;
    display: inline;
    position: relative;
  }

  &.hidden {
    top: -30px;
    background-color: white;
  }
}
