@import "../../../components/css/app.css";

:root {
  --main: hsl(170, 35%, 58%);
  --main-h: 169.1;
  --main-s: 35%;
  --main-l: 58%;
}

body {
  font-family: 'Yomogi', sans-serif;
  margin: 0; 

  background-image: url("../img/bg.png");
  /*background-repeat: no-repeat;*/
  background-position: 0;
  background-size: cover;

  background-color: #F2F1E6;
}

nav {
  margin-top: 1vw  !important;
  margin-bottom: 1vw  !important;
}

p {
  font-family: "DotGothic16", sans-serif;
  margin: 0;
}

th, td {
  border: 1px solid #ccc;
  padding: 4px;
  font-weight: bolder;
  color: #222;
  word-break: break-word;
  font-size: small;

  &:nth-child(1) {
    width: 4%;
    text-align: center;
  }

  &:nth-child(2) {
    width: 30%;
  }

  &:nth-child(3) {
    width: 20%;
  }

  &:nth-child(4) {
    width: 8%;
  }
  
  &:nth-child(5) {
    width: 2%;
  }
}

tr:nth-child(odd) td {
  background-color: hsl(169, 100%, 95%, 0.75) !important;
}
tr:nth-child(even) td {
  background-color: hsl(171, 100%, 99%, 0.75) !important;
}

@keyframes shake {
  0%   { transform: translate(0, 0) rotate(0); }
  10%  { transform: translate(-3px, -2px) rotate(-2deg); }
  20%  { transform: translate(4px, 1px) rotate(2deg); }
  30%  { transform: translate(-2px, 3px) rotate(-1deg); }
  40%  { transform: translate(3px, -3px) rotate(2deg); }
  50%  { transform: translate(-4px, 1px) rotate(-2deg); }
  60%  { transform: translate(2px, 3px) rotate(1deg); }
  70%  { transform: translate(-3px, -1px) rotate(-1deg); }
  80%  { transform: translate(3px, 2px) rotate(2deg); }
  90%  { transform: translate(-1px, -3px) rotate(-2deg); }
  100% { transform: translate(0, 0) rotate(0); }
}

.button {
  padding: 1px 5px;
  margin-left: 0.5rem;
  align-self: center;
  border-radius: 0.5rem;
  background-color: hsl(180, 39%, 45%);
  color: #fff;
}

.requestBtn {
  width: 22px;
  height: 22px;
  padding: 0;
  margin: 0;
  line-height: 1;
  border-radius: 0.5rem;
  color: #fff;
}

.spinner {
  background-image: url("../img/icon.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  content: "";
  height: 150px;
  /*width: 200px;*/
  margin-top: 50px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

#counterInner {
  background-color: hsl(180, 39%, 45%);
  border-radius: 0.5rem;
  padding: 0px 15px;
  p {
    padding: 0;
    color: #eee ;
  }
}

a {
  text-decoration: none;
  color: hsl(180, 39%, 45%);
  transition: background-size 0.2s;
  &:hover {
    text-decoration: underline;
  }
}

/* Mobile */
@media (max-width: 768px) {
  body {
      background-image: url("../img/bg.png");
  }

  #tableContainer, #tabArea, nav {
    margin: 0 3.5%;
  }

  th, td {
    &:nth-child(1) {
      width: 4%;
      text-align: center;
    }

    &:nth-child(2) {
      width: 80px;
      letter-spacing: -0.4px;
    }

    &:nth-child(3) {
      width: 28%;
      max-width: 100px;
      letter-spacing: -1.5px;
    }

    &:nth-child(4) {
      width: 12.5%;
    }
  }

  .button {
    padding: 2.5px;
    font-size: xx-small;
  }
  button.tab {
    padding: 0.35rem 0.40rem;
    font-size: 0.78rem;
  }
}