@import 'fonts';
@import 'mixins';
@import "../flags/flag-icon.css";

body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

#mCSB_1_scrollbar_vertical {
  //display: none !important;
  visibility: hidden;
}

.mCSB_inside {
  >.mCSB_container {
    margin-right: 0 !important;
  }
}

.olympic-table-wrapper {
  position: relative;
  width: 100%;
  text-align: center;
  padding-bottom: 40px;

  .header-icons {
    //padding-right: 30px;
  }

  .header {
    height: 108px;

    .olympic-rings {
      width: 80px;
      margin: 20px 0;
      @include transition;

      &:hover {
        opacity: .7;
      }
    }

    .title {
      display: block;
      font-family: 'ProximaNovaBold', sans-serif;
      font-size: 18px;
      color: $black;
      margin-bottom: 20px;
      text-decoration: none;
      @include transition;

      &:hover {
        color: #4faa33;
      }
    }
  }

  .countries-table-wrapper {
    height: 410px;
    overflow: hidden;
  }

  .countries {

    &.last {
      //padding-right: 30px;
    }
  }

  table {
    font-family: 'ProximaNovaRegular', sans-serif;
    font-size: 16px;
    color: $gray;
    width: 100%;
    text-align: center;
    //position: relative;

    th, td {
      height: 40px;
      border-bottom: 1px solid $dividers;
    }

    tr:hover {
      background-color: rgba(229, 229, 229, 0.4);
    }

    .position {
      width: 40px;
    }

    .flagg {
      width: 30px;

      span {
        display: block;
        width: 24px;
      }
    }

    .country {
      text-align: left;
      padding-left: 10px;
    }

    .players {
      width: 18%;
    }

    .medals {
      width: 6%;

      &.all {
        font-family: 'ProximaNovaBold', sans-serif;
      }
    }
    
    &.ukraine {
      font-family: 'ProximaNovaBold', sans-serif;
      background-color: rgba(229, 229, 229, 0.4);

      &:hover {
        background-color: #efefef;
      }
    }

    .more-countries {
      font-family: 'ProximaNovaBold', sans-serif;
      font-size: 13px;
      text-transform: uppercase;
      cursor: pointer;
      @include transition;

      td {
        border-bottom: none;
      }
    }
  }

  .all-button {
    display: none;
  }

  &.small {
    background-color: #f5f5f5;
    padding-bottom: 0;

    .countries {
      padding: 0 20px;
    }

    .header {
      height: 100px;

      .olympic-rings {
        width: 60px;
        margin-bottom: 8px;
      }
    }

    .header-icons {
      display: none;
      padding: 0;
    }

    .countries-table-wrapper {
      height: 123px;
    }

    table {
      border-top: 1px solid $dividers;

      .players {
        display: none;
      }

      .medals {
        display: none;

        &.all {
          display: table-cell;
        }
      }

      &.ukraine {
        padding: 0;
      }

      .medals {
        width: 10%;
      }
    }

    .all-button {
      display: block;
      font-family: 'ProximaNovaBold', sans-serif;
      font-size: 12px;
      line-height: 40px;
      letter-spacing: 1px;
      text-decoration: none;
      color: $black;
      height: 40px;
      margin: 0 20px;

      &:hover {
        color: #4faa33;
        background-color: rgba(229, 229, 229, 0.4);
      }
    }

    .up-button, .down-button {
      display: none;
    }
  }

  @media screen and (max-width: 400px) {
    .players {
      display: none;
    }

    .medals {
      display: none;

      &.all {
        display: table-cell;
      }
    }
  }

  .up-button, .down-button {
    position: absolute;
    width: 100%;
    height: 40px;
    cursor: pointer;

    &.hidden {
      display: none;
    }

    &:hover {
      background-color: #efefef;
    }
  }

  .up-button {
    top: 108px;
    background: #f5f5f5 url('../images/up.svg') no-repeat center center;
  }

  .down-button {
    bottom: 0;
    background: #f5f5f5 url('../images/down.svg') no-repeat center center;
  }
}