@import "color";
@import "config";

@include color-setting;

@import "components/board";
@import "components/calendar";
@import "components/form";
@import "components/menu";
@import "components/overview";
@import "components/table-layout";

body, html {
  color: var(--text-primary-color);
  background: var(--background-secondary-color);

  font-family: 'Montserrat', Roboto, Arial, sans-serif;
  font-weight: 600;

  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;

  overflow-x: hidden;

  & > *:last-child {
    //margin-bottom: 1rem;
  }
}

.no-select {
  @include no-select()
}

a {
  text-decoration: none;
  outline: none;
  color: var(--primary-color);

  &:hover {
    text-decoration: none;
  }

  &:active {
    color: var(--primary-color);
  }
}

.container {
  width: 100%;
  margin: 0 auto;
}

.container-full {
  width: 100%;
}

* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .container {
    width: 720px;
  }
}

@media (min-width: 992px) {
  .container {
    width: 960px;
  }
}

@media (min-width: 1200px) {
  .container {
    width: 1140px;
  }
}

.footer {
  height: 5rem;
}

.footer-credit {
  float: left;
}

.footer-theme {
  float: right;
  line-height: 2rem;
  margin-top: 0.5rem;

  a {
    display: block;
    position: relative;
    padding-left: 2.5rem;

    &::after {
      content: '';
      width: 1.2rem;
      height: 1.2rem;
      border-radius: 100%;
      position: absolute;
      top: 1rem;
      left: 1rem;
      transform: translate(-50%, -50%);
      border: solid 0.2rem transparent;
    }

    &.selected {
      display: none;
    }

    &.selected::after {
      border-color: var(--primary-color) !important;
    }
  }

  #theme-light::after {
    background-color: #fff;
    border-color: #fff;
  }

  #theme-dark::after {
    background-color: #2d2d2d;
    border-color: #2d2d2d;
  }

  #theme-princess::after {
    background-color: #ffa5d2;
    border-color: #ffa5d2;
  }
}

.main-error {
  width: 100%;
  height: 4rem;
  text-align: center;
  margin-top: -2rem;
  position: absolute;
  top: 48%;

  span {
    display: block;
    font-size: 1.2rem;

    &:first-child {
      font-size: 1.5rem;
      padding-bottom: 0.4rem;
    }
  }
}
