/* Utils */

html {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  font-family: 'Nunito';
  font-size: 14px;
  height: 100%;
}

@media (min-width: 768px) {
  body {
    font-size: 16px;
  }
}

/* Titles */

h1, h2, h3, h4, h5, h6, h7, h8 {
  font-family: 'Nunito', 'Montserrat', sans-serif;
  font-weight: 900;
}

  h1 > span, h2 > span {
    color: #2196F3;
  }

@media (max-width: 992px) {
  h1 {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 1.5rem;
  }
}

/* Utils */

.description {
  line-height: 32px;
  font-size: 18px;
}

.button {
  background-color: #ffc85b;
  border-radius: 24px;
  padding: 12px 20px;
  font-weight: 800;
  font-size: 18px;
  text-decoration: none;
  color: white;
  border: 0;
}

  .button:hover, .button:focus {
    background-color: #fbd470;
    color: white;
    border: 0;
  }

.button-light {
  background-color: #C0C0C0;
}

  .button-light:hover, .button-light:focus {
    background-color: #D0D0D0;
  }

.mw-180 {
  min-width: 180px;
}

/* Modal */
.modal-body {
  text-align: center;
}

.modal-footer {
  justify-content: center;
}

/* Gallery */

.square-container {
  margin-left: -2px;
  padding-right: 11px;
}

.square-box {
  position: relative;
  overflow: hidden;
  background-repeat: no-repeat;
  background-position: center;
  padding-left: 0;
  padding-right: 0;
}

  .square-box:before {
    content: "";
    display: block;
    padding-top: 100%;
  }

.square-content {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  color: white;
  text-align: center;
}

  .square-content button {
    border: 0;
    padding: 0;
    background-color: white;
  }

  .square-content .title {
    position: absolute;
    bottom: 7px;
    left: 2px;
    background-color: #FF5722;
    padding: 0 12px 0 8px;
    margin-right: 8px;
    text-align: left;
    border-bottom-right-radius: 15px;
    border-top-right-radius: 15px;
    color: white;
    pointer-events: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 95%;
  }

  .square-content .new {
    position: absolute;
    top: 9px;
    right: 9px;
    background-color: #ffeb3b;
    color: #757575;
    border-radius: 8px;
    padding: 2px 6px 0 6px;
    font-size: .8rem;
    font-weight: bold;
    pointer-events: none;
  }

  .square-content img {
    width: 100%;
    padding: 2px;
  }

    .square-content img:hover {
      cursor: pointer;
      filter: brightness(0.66);
    }

/* Presentation */

.presentation {
  display: flex;
  flex-direction: row;
  margin: 32px 0;
  align-items: flex-start;
}

  .presentation .icon {
    padding: 32px;
    border-radius: 32px;
    display: flex;
    align-items: center;
    flex-direction: column;
  }

    .presentation .icon img {
      width: 200px;
      height: 200px;
    }

  .presentation .content {
    margin-left: 48px;
  }

@media (max-width: 768px) {
  .presentation {
    flex-direction: column;
    margin-bottom: 0;
    align-items: stretch;
  }

    .presentation .content {
      margin: 0;
      margin-top: 32px;
    }
}

/* Search */

.search-form {
  border: 4px dashed #ffc85b;
  border-radius: 20px;
  padding: 9px 12px;
  max-width: 400px;
  margin: 32px auto 48px auto;
  display: flex;
  align-items: center;
}

  .search-form input {
    border: none;
  }

    .search-form input:first-child {
      flex-grow: 1;
    }

    .search-form input:focus {
      outline: none;
      background: transparent;
    }

  .search-form .search-button {
    font-size: 1.4rem;
  }
