/*--------------------------------------------------------------
# Basics
--------------------------------------------------------------*/
:root {
  --background-primary: #2f3136;
  --background-secondary: #36393f;
  --background-tertiary: #202225;
  --accent-blurple: #7289da;
  --text-primary: #ffffff;
  --text-secondary: #b9bbbe;
  --border-color: rgba(255, 255, 255, 0.07);
}
.logo-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-wrapper img {
  max-width: 65%;
  height: auto;
}
html {
  overflow-y: scroll;
  overflow-x: hidden;
}
body {
  overflow-x: hidden;
  background-color: var(--background-primary);
  color: var(--text-secondary);
}
ul {
  list-style: none;
  padding: 0;
}
textarea, input, a, button { 
  outline: none;
}
.clearfix {
  position: relative;
  clear: both;
}

/*--------------------------------------------------------------
# Typography
--------------------------------------------------------------*/
body {
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: var(--text-primary);
}
a {
  color: var(--accent-blurple);
  -webkit-transition: all 0.2s ease-in-out 0s;
  -moz-transition: all 0.2s ease-in-out 0s;
  -ms-transition: all 0.2s ease-in-out 0s;
  -o-transition: all 0.2s ease-in-out 0s;
  transition: all 0.2s ease-in-out 0s;
}
a:hover, a:visited, a:focus, a:active, button:hover, button:visited, button:active, button:focus {
  text-decoration: none !important;
  outline: none !important;
}
::selection {
  background: var(--accent-blurple);
  color: var(--text-primary);
}
::-moz-selection {
  background: var(--accent-blurple);
  color: var(--text-primary);
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
header {
  position: relative;
  text-align: center;
  padding: 30px 0;
  background-color: var(--background-tertiary);
}
#header-particles {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 1;
  left: 0;
  top: 0;
}
.page-header .container {
  position: relative;
  z-index: 2;
}
.header-logo-img {
  max-width: 400px;
  max-height: 90px;
}
.header-title {
  font-size: 3em;
  font-weight: 900;
  margin: 10px 0;
  color: var(--text-primary);
}
.header-subtitle {
  margin: 0;
  font-size: 1.2em;
  color: var(--text-secondary);
  font-weight: 400;
}

/*--------------------------------------------------------------
# Sections & Cards
--------------------------------------------------------------*/
.featured-section {
  position: relative;
  padding: 50px 0 0px 0;
}
.section-title-wrapper h3 {
  text-transform: uppercase;
  font-weight: 700;
  font-size: 1.4em;
  position: relative;
  padding-left: 15px;
  color: var(--text-primary);
}
.section-title-wrapper h3:before {
  content: '';
  height: 100%;
  left: 0;
  width: 7px;
  border-radius: 10px;
  display: block;
  position: absolute;
  top: 0;
  background-color: var(--accent-blurple);
}
.featured-section .container {
  max-width: 900px;
}

/* Slick Slider Adjustments */
.slick-slide {
  margin: 0 15px;
}
.slick-list {
  margin: 0 -15px;
  padding: 20px 0;
}

/* Featured App Item */
.featured-app-slider-item {
  text-align: center;
  padding: 15px;
  cursor: pointer;
  border-radius: 8px;
  background-color: var(--background-secondary);
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.featured-app-slider-item:hover {
    transform: translateY(-5px);
    background-color: #40444b;
}
.featured-app-slider-item-img {
  border-radius: 15px;
  display: table;
  margin: 0 auto 10px auto;
  max-width: 80px;
}
.featured-app-slider-item-name {
  margin: 10px auto 0 auto;
  font-weight: 700;
  font-size: 1em;
  color: var(--text-primary);
}
.featured-app-slider-item .listing-item-rating {
  display: inline-flex;
  padding-left: 0;
  margin-left: 0;
  align-items: center;
  margin-top: 5px;
  font-size: 0.9em;
  color: var(--text-secondary);
}
.featured-app-slider-item .listing-item-rating span.material-icons-two-tone {
  font-size: 1.5em;
  color: var(--yellow);
}
.featured-app-slider-item .listing-item-rating-separator {
  display: none;
}

/*--------------------------------------------------------------
# App Listing Section
--------------------------------------------------------------*/
.listing-section {
  position: relative;
  padding: 50px 0;
}
.listing-section .container {
  max-width: 900px;
}
.listing-section .section-title-wrapper {
  display: flex;
  align-items: center;
  margin-bottom: 40px;
}
.listing-content .row {
  margin: 0 -10px;
}
.listing-content .listing-item-wrapper {
  padding: 0 10px;
}

/* Search Form */
.search-form-wrapper {
  margin-left: auto;
}
.search-input-wrapper {
  position: relative;
}
.search-input {
  width: 100%;
  height: 40px;
  padding: 0 20px 0 45px;
  font-size: 1em;
  border-radius: 20px;
  border: none;
  background-color: var(--background-tertiary);
  color: var(--text-primary);
}
.search-input::placeholder {
  color: var(--text-secondary);
}
.search-input-wrapper span.material-icons-two-tone {
  position: absolute;
  font-size: 1.4em;
  top: 50%;
  left: 15px;
  transform: translateY(-50%);
  color: var(--text-secondary);
}

/* Listing Item */
.listing-item {
  position: relative;
  display: flex;
  align-items: center;
  padding: 15px;
  margin-bottom: 20px;
  cursor: pointer;
  border-radius: 8px;
  background-color: var(--background-secondary);
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.listing-item:hover {
    transform: translateY(-2px);
    background-color: #40444b;
}
.listing-item .listing-item-left {
  width: 80px;
  flex-shrink: 0;
  padding-right: 15px;
}
.listing-item-img {
  border-radius: 12px;
}
.listing-item .listing-item-right {
  flex-grow: 1;
}
.listing-item-auos {
  display: flex;
  align-items: center;
  font-size: 0.8em;
  color: var(--text-secondary);
}
.listing-item-os {
  margin-left: auto;
}
.listing-item-os i {
  font-size: 1.2em;
}
.listing-item-by-val {
  color: var(--accent-blurple);
  font-weight: bold;
}
.listing-item-name-rating-wrapper {
  margin: 4px 0 7px 0;
  display: flex;
  align-items: center;
}
.listing-item-name {
  font-size: 1.3em;
  line-height: 1.2;
}
.listing-item-rating {
  display: inline-flex;
  align-items: center;
  margin-left: 15px;
}
.listing-item-rating .material-icons-two-tone {
  color: var(--yellow);
}
.listing-item-rating-separator {
  display: none;
}
.listing-item-rating-val {
  font-weight: 700;
  margin-left: 5px;
  color: var(--text-secondary);
}
.listing-item-about {
  line-height: 1.4;
  font-size: 0.9em;
  color: var(--text-secondary);
}
.listing-item-hidden-d, .listing-item-short-name, .featued-app-slider-item-hidden-meta {
  display: none !important;
}

/*--------------------------------------------------------------
# Modal / Popup Styles
--------------------------------------------------------------*/
.mfp-bg {
    background: #000000;
    opacity: 0.85;
}
.step-container {
  max-width: 440px;
  margin: 0 auto;
  border-radius: 8px;
  padding: 30px 40px;
  position: relative;
  background-color: var(--background-secondary);
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.step-exit {
  position: absolute;
  right: 10px;
  top: 10px;
  cursor: pointer;
  color: var(--text-secondary);
}
.step-exit:hover {
    color: var(--text-primary);
}
.step-exit .material-icons-two-tone {
  font-size: 2em;
}
.step-icon-wrapper {
  margin: 0 auto 20px auto;
  text-align: center;
}
.app-step-icon {
  border-radius: 20px;
  max-width: 100px;
}
.step-info-wrapper {
  text-align: center;
}
.app-step-pr {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  color: var(--text-secondary);
}
.app-step-platforms i {
  font-size: 1.3em;
}
.aspr-sep {
  height: 15px;
  width: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0 10px;
}
.app-step-rating .material-icons-two-tone {
  color: var(--yellow);
}
#app-step-rating-val, #app-step-downloads-val {
  font-weight: 700;
  margin-left: 4px;
}
#app-step-title {
  font-size: 1.5em;
  margin: 5px auto;
}
#app-step-description {
  margin: 0;
  color: var(--text-secondary);
}
.step-proccesing-content {
  border-top: 1px solid var(--border-color);
  margin-top: 20px;
  padding-top: 20px;
}
#s-p-c-title {
  text-align: center;
  font-weight: 700;
  margin: 0 auto 5px auto;
  font-size: 1.2em;
  color: var(--text-primary);
}
#s-p-c-msg {
  font-size: 1em;
  text-align: center;
  color: var(--text-secondary);
}
.s-p-c-btn-wrapper {
  margin-top: 20px;
}
.s-p-c-btn {
  width: 100%;
  padding: 12px 10px;
  text-align: center;
  border-radius: 5px;
  text-transform: uppercase;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  max-width: 280px;
  margin: 0 auto;
  color: #fff;
  background-color: var(--accent-blurple);
  transition: background-color 0.2s ease;
}
.s-p-c-btn:hover {
    background-color: #677bc4;
}
.proccessing-wrapper {
    width: 440px;
    margin: 0 auto;
    border-radius: 8px;
    padding: 40px;
    position: relative;
    background-color: var(--background-secondary);
}
.proccessing-loader span.material-icons-two-tone {
  font-size: 6em;
  color: var(--accent-blurple);
}
.proccessing-title {
  font-size: 1em;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  margin: 10px 0 30px 0;
  text-align: center;
  color: var(--text-secondary);
}
.proccessing-msg {
  font-size: 1.2em;
  font-weight: 700;
  text-align: center;
  color: var(--text-primary);
}
.proccessing-loadbar {
  width: 100%;
  height: 8px;
  overflow: hidden;
  position: relative;
  margin-top: 30px;
  background: var(--background-tertiary);
  border-radius: 4px;
}
.proccessing-loadbar div {
  background: var(--accent-blurple);
  height: 100%;
  border-radius: 4px;
}

/*--------------------------------------------------------------
# Preloader
--------------------------------------------------------------*/
.preloader-wrapper, #proccessing-outer-wrapper {
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
}
.preloader-inner-wrapper, .step-loader {
  display: none !important;
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
footer {
  position: relative;
  text-align: center;
  padding: 20px 15px;
  font-size: 0.8em;
  color: var(--text-secondary);
  background-color: var(--background-tertiary);
}

/*--------------------------------------------------------------
# Responsive Design
--------------------------------------------------------------*/
@media screen and (max-width: 480px) {
  header {
    padding: 20px 15px;
  }
  .header-title {
    font-size: 2.2em;
  }
  .header-subtitle {
    font-size: 1em;
  }
  .listing-section .section-title-wrapper {
    flex-direction: column;
    align-items: flex-start;
  }
  .search-form-wrapper {
    margin: 15px 0 0 0;
    width: 100%;
  }
  .listing-item {
    flex-direction: column;
    text-align: center;
  }
  .listing-item .listing-item-left {
    padding: 0 0 15px 0;
    width: 100px;
  }
  .listing-item .listing-item-right {
    padding: 0;
    width: 100%;
  }
  .listing-item-name-rating-wrapper, .listing-item-auos {
    justify-content: center;
  }
  .listing-item-os {
    margin-left: 10px;
  }
}