/*
Theme Name: Everest New
Author: Frauke Trautmann
Version: 1.0
*/

$primary: #ebebeb;

@import 'css/normalize';

html {
  background: black;
  color: $primary;
  font-size: 16px;
  font-family: "Century Gothic", CenturyGothic, AppleGothic, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  height: 100%;
  -webkit-backface-visibility: hidden; // fixes flickering for webkit animations
}

a {
  color: inherit;
  text-decoration: none;
}

#darken {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  display: none;
  background: rgba(0, 0, 0, 0.8);
}

#overlay-wrapper {
  padding-bottom: 170px;
  position: absolute;
  top: 30px;
  left: 50%;
  z-index: 3;
  display: none;
  margin: 0 auto;
  transform: translateX(-50%);
}

#overlay-wrapper {
  &.album {
    padding-bottom: 0;
  }
}

#overlay {
  max-width: 900px;
  padding: 40px;
  background: rgba(0, 0, 0, 0.6);

  .close {
    text-align: right;

    img {
      cursor: pointer;
    }
  }

  .back {
    display: inline-block;
    cursor: pointer;
  }

  .genre {
    margin-top: -21px;
    font-size: 14px;

    a {
      color: white;
    }

    .in-genre {
      font-weight: bold;
    }
  }

  #overlay-content {
    margin: 0;
    padding: 0;
  }

  h1 {
    text-transform: uppercase;
    font-weight: normal;
  }

  h2 {
    margin: 0;
    color: white;
    text-transform: uppercase;
    font-weight: normal;

    &.white {
      clear: both;
      padding-top: 10px;
      color: $primary;
    }
  }

  .subline {
    display: flex;
    align-items: center;

    .dist {
      flex-grow: 1;
    }
  }

  h3 {
    color: white;
    text-transform: uppercase;
    font-weight: normal;
  }

  p {
    line-height: 1.5em;
  }

  .covers {
    display: flex;
    margin-top: 30px;
    align-items: flex-start;
  }

  #cover, #tracklist {
    display: block;
    -webkit-box-reflect: below 0 -webkit-gradient(linear, left top, left bottom, from(transparent), color-stop(90%, transparent), to(rgba(250, 250, 250, 0.4)));
  }

  #cover {
    margin-right: 60px;
  }

  .booklet {
    position: relative;

    &:hover {
      .booklet-text {
        display: block;
      }
    }
  }

  .booklet-img {
    display: block;
    cursor: pointer;
    margin-top: 45px;
    margin-left: 15px;
  }

  .booklet-text {
    position: absolute;
    right: 0;
    top: 90px;
    display: none;
  }


  #itunes {
    margin-top: 45px;
    margin-left: 15px;
  }

  #amazon-link {
    background: white;
    width: 108px;
    height: 39px;
    display: block;
    margin-top: 45px;
    margin-left: 15px;
    border-radius: 4px;
  }

  #amazon {
    margin: 14px 24px;
  }

  .more {
    margin-bottom: 30px;
  }

  .news {
    h2 {
      margin-bottom: 15px;
    }

    .page-numbers {
      margin: 0;
      padding: 0;

      li {
        display: block;
        float: left;
        margin-right: 5px;

        .current {
          color: #ebebeb;
        }
      }
    }
  }
}

nav {
  position: sticky;
  background: rgba(0,0,0,0.8);
  top: 0;
  z-index: 100;
  display: flex;
  width: 100%;
  box-sizing: border-box;
  align-content: space-between;
  align-items: center;
  justify-content: space-between;
  justify-items: center;
  padding: 16px;
  border-bottom: 1px solid $primary;
  margin-bottom: 16px;

  .countdown-media-logo {
    width: 300px;

    img {
      display: block;
    }
  }

  ul {
    margin: 0;
    padding: 0;
    display: flex;

    li {
      display: block;
      color: $primary;
      padding: 10px 15px;

      a {
        outline: 0;

        &.active, &:hover {
          color: white;
        }
      }

      ul {
        display: none;
        padding: 10px;
        background: black;
        position: absolute;
        right: 0;
        left: auto;
        top: 100%;
        max-height: 310px;
        overflow: auto;

        li {
          display: block;
          text-align: right;
          border-top: 1px solid #4E3F23;

          &.current-menu-item {
            a {
              font-weight: bold;
              color: white;
            }
          }

          a {
            display: block;
            padding: 10px 0;
            white-space: nowrap;
          }

          &:first-child {
            border-top: 0;

            a {
              padding-top: 0;
            }
          }

          .separator {
            display: none;
          }
        }
      }

      &.menu-item-has-children {
        position: relative;

        > a {
          cursor: default;
        }

        &:hover {
          ul {
            display: block;
          }
        }
      }

    }
  }

  .search-and-social {
    width: 300px;
    display: flex;
    align-items: center;
    justify-content: flex-end;

    img {
      display: block;
    }

    a {
      margin-left: 16px;
    }
  }

  #search-container {
    position: relative;

    #search {
      padding: 3px 30px 3px 3px;
      width: 100px;
      height: 20px;
      border: 1px solid $primary;
      border-radius: 0;
      background: black url(img/search.png) no-repeat 110px center;
      color: white;
      font-size: 9pt;
    }

    #search-clear {
      display: none;
    }

    &.dirty{
      #search {
        background: black;
      }

      #search-clear {
        display: block;
        position: absolute;
        top: 3px;
        right: 3px;
        border: none;
        color: $primary;
        background: black;
      }
    }
  }
}

.mobile-nav-handle {
  display: none;
  margin-left: 16px;
  width: 52px;
  height: 32px;
  background-size: 100% 100%;
  background: url(img/menu.svg) no-repeat center center;
}

.label-logo {
  display: block;
  margin: 0 auto;
}

.hidden {
  display: none;
}

#albums {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 8px;
  padding: 16px;
  box-sizing: border-box;

  .album-wrapper {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    height: auto;

    &:hover:not(.touch) {
      position: relative;
      z-index: 1;
      -webkit-transition-timing-function: ease-out;
      -moz-transition-timing-function: ease-out;
      -webkit-transition-duration: 250ms;
      -moz-transition-duration: 250ms;
      -webkit-transform: scale(1.1, 1.1);
      -moz-transform: scale(1.1, 1.1);
      -ms-transform: scale(1.1, 1.1);
    }
  }

  .album-content {
    display: none;
  }

  img {
    display: block;
    width: 100%;
  }
}

@media all and (max-width: 600px) and (min-width: 0) {
  #albums {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media all and (max-width: 800px) and (min-width: 600px) {
  #albums {
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }
}

@media all and (max-width: 1000px) and (min-width: 800px) {
  #albums {
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
  }
}

@media all and (max-width: 1200px) and (min-width: 1000px) {
  #albums {
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
  }
}

@media all and (max-width: 1400px) and (min-width: 1200px) {
  #albums {
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
  }
}

@media all and (max-width: 1600px) and (min-width: 1400px) {
  #albums {
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
  }
}

@media all and (min-width: 1600px) {
  #albums {
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
  }
}

@media all and (max-width: 500px) and (min-width: 0) {
  #menu-hauptmenue {
    display: none;
    position: fixed;
    top: 66px;
    z-index: 999;
    background: black;
    right: 0;

    &.open {
      display: block;
    }

    li {
      position: relative;
    }

    ul {
      top: 0;
      right: 100%;
    }
  }

  #overlay-wrapper {
    padding: 0;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 3;
    display: none;
    transform: none;
  }

  .mobile-nav-handle {
    display: block;
  }

  #overlay {
    padding: 20px;

    .subline {
      flex-direction: column;
      align-items: flex-start;

      .dist {
        display: none;
      }

      h2 {
        margin-bottom: 20px;
      }
    }

  }

  .covers {
    img {
      max-width: calc(50% - 10px);
    }

    #cover {
      margin-right: 20px !important;
    }
  }
}

.about-image{
  img {
    width: 100%;
    height: auto;
  }
}
