/* Class names prefixes */
$prefix: "gjs-" !default;

/* Colors / Theme */
$tertiaryColor: #73308d;
$quaternaryColor: #936a9b;

:root {
  --border-color: rgba(0, 0, 0, 0.15);
  --background-color: #3c4a49;

  --background-box-title: #263332;
}

.#{$prefix}mdl-dialog.#{$prefix}mdl-dialog-ud {
  max-width: 1300px;
  margin-top: 45px;
}

.flex-row {
  display: flex;
  justify-content: space-between;
  align-items: center;

  button {
    height: 45px;
  }
}

.app {
  margin: 20px;
  margin-top: 30px;
  animation: fadein 0.3s;

  a,
  a:hover {
    text-decoration: none;
    color: $quaternaryColor;
  }

  h1 {
    margin-bottom: 30px;
  }

  button {
    cursor: pointer;
    background-color: #424242;
    font-family: inherit;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    border: 1px solid #e9ebeb;
    border-bottom-color: #e1e3e3;
    border-radius: 4px;
    background-color: #fff;
    color: rgba(14, 30, 37, 0.87);
    box-shadow: 0 2px 4px 0 rgba(14, 30, 37, 0.12);
    transition: all 0.2s ease;
    transition-property: background-color, color, border, box-shadow;
    outline: 0;
    font-weight: 500;
    background: $tertiaryColor;
    color: #fff;
    border-color: transparent;
  }
}

.title-inner {
  display: flex;
  align-items: center;

  button {
    margin-left: 20px;
  }
}

.primary-button {
  padding: 13px 18px;
}

.flex-row {
  display: flex;
  justify-content: space-between;
  align-items: center;

  button {
    height: 45px;
  }
}

.search {
  border-radius: 2px;
  font-size: 16px;
  padding: 11px 15px;
  min-width: 300px;
  display: inline-block;
  box-shadow: 0 0 0 2px rgba(120, 130, 152, 0.25);
  border: none;
  outline: none;
  transition: all 0.3s ease;
  margin: 20px 0;
  color: white;
  background-color: rgba(0, 0, 0, 0.2);

  &:active,
  &:focus,
  &:hover {
    box-shadow: 0 0 0 2px $quaternaryColor;
  }
}

.header {
  cursor: pointer;
  font-weight: bold;
  font-size: 16px !important;
}

.item {
  text-align: center;
}

#svg-list {
  display: flex;
  flex-wrap: wrap;
  max-height: 500px;
  overflow-y: auto;
  overflow-x: hidden;
}

#load-more-container {
  display: flex;
  justify-content: center;
}

.svg-wrapper {
  display: flex;
  align-items: center;
  width: 31%;
  padding: 10px 0;
  padding-left: 20px;
  font-size: 14px;
  transition: 0.3s;

  &.selected {
    border: 2px solid $quaternaryColor;
  }

  &:nth-child(even) {
    background-color: rgba(0, 0, 0, 0.1);
  }
}

.svg-wrapper:hover,
.svg-wrapper:nth-child(even):hover {
  background: rgba(255, 255, 255, 0.1);
}

.svg-screenshot {
  height: 64px;
  margin: 0 24px 0 0;
  min-width: 102.4px;
  max-width: 102.4px;
  position: relative;

  &:before {
    background: #dadcdd;
    bottom: 0;
    content: " ";
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
  }

  a {
    display: flex;
    position: relative;
    z-index: 9;
    height: 100%;
  }

  img {
    position: relative;
    width: 100%;
    width: 102.4px;
    border: none;
  }

  img[alt]:after {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #dadcdd;
    font-weight: 300;
    line-height: 2;
    text-align: center;
    content: "";
  }
}

.svg-info {
  min-width: 350px;
  max-width: 350px;

  h2 {
    margin: 0px;
    margin-bottom: 5px;
  }

  a {
    text-decoration: none;
  }
}

.svg-meta a {
  font-size: 14px;
  color: rgba(165, 210, 230, 0.8);
}
