$font: "SF Pro Display", "SF Pro", "Roboto", "Helvetica Neue", "Segoe UI", Arial, Helvetica, sans-serif;
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

html {
  font-size: 16px;
}

body {
  background-image: linear-gradient(to left top, #005c38, #006164, #006187, #3b5a91, #794e80);
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: white;
  font-family: $font;
}

a {
  color: #dadada;
  text-decoration: none;
}

a:hover {
  opacity: 0.8;
}

.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.full-height {
  height: 100%;
}

ul {
  padding-left: 1.5rem;
}

h1 {
  font-size: 2.4rem;
}

h1, h2, h3, h4 {
  margin: 0;
}

.white {
  background: rgba(255,255,255,0.9);
  border-radius: 4px;
  padding: 2rem;
  box-shadow: 0 0 10px 10px rgba(0, 0, 0, 0.04);
}

.login-form {
  text-align: center;
  margin: 0 auto;
  
  form {
    width: 24rem;
    margin: 0 auto;
    padding: 0 1rem;
  }

  form:first-of-type {
    margin-top: 1rem;
  }
}

.wrap {
  overflow: auto;
}

.app {
  margin: 4rem;
}

.boxes {
  margin: 2rem -1rem;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;

  & > div {
    display: flex;
    flex-direction: column;
    background: rgba(255,255,255,0.2);
    margin: 1rem;
    padding: 2rem;
    border-radius: 4px;
    box-shadow: 0 16px 16px -16px rgba(0, 0, 0, 0.4);
  }

  .to-bottom {
    margin-top: auto;
  }
}

.input-group {
  background: rgba(255,255,255,0.9);
  border-radius: 4px;
  box-shadow: 0 16px 16px -16px rgba(0, 0, 0, 0.4);

  & > * {
    display: block;
    width: 100%;
    font-size: 1rem;
    background: transparent;
    color: black;
    padding: 1rem;
    border: none;
    border-width: 1px;
    border-color: rgba(0, 0, 0, 0.2);
    border-style: solid solid none solid;
  
    &:first-child {
      border-style: solid solid none solid;
      border-radius: 4px 4px 0 0;
    }
  
    &:last-child {
      border-style: solid solid solid solid;
      border-radius: 0 0 4px 4px;
    }
  }

  & > input[type='datetime-local'],
  & > input[type='file'] {
    position: relative;

    &:before {
      font-family: $font;
      position: absolute;
      opacity: 0.7;
      content: attr(placeholder);
      top: 0.1rem;
      left: 0.2rem;
      font-size: 0.7rem;
    }
  }
}

button, .button {
  display: block;
  text-align: center;
  margin-top: 1rem;
  font-size: 1.4rem;
  width: 100%;
  padding: 1rem;
  font-weight: bold;
  cursor: pointer;
  border: none;
  box-shadow: 0 16px 16px -16px rgba(0, 0, 0, 0.4);
  background: rgba(255,255,255,0.2);
  color: white;
  border-radius: 4px;

  &:hover {
    opacity: 0.9;
  }

  &.red {
    background: rgb(155, 25, 25);
  }
}

.align-center {
  text-align: center;
}

.align-right {
  text-align: right;
}

@media screen and (max-width: 1700px) {
  .boxes {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media screen and (max-width: 1200px) {
  .boxes {
    grid-template-columns: 1fr 1fr;
  }
}

@media screen and (max-width: 900px) {
  .boxes {
    grid-template-columns: 1fr;
  }

  .app {
    margin: 2rem;
  }
}