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

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

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

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

  .header {
    height: 148px;

    .olympic-rings {
      width: 80px;
      margin: 20px 0;
    }

    .title {
      font-family: 'ProximaNovaBold', sans-serif;
      font-size: 18px;
      margin-bottom: 20px;
    }
  }

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

  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: 10%;
    }

    .medals {
      width: 6%;

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

      &: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;
      }
    }
  }

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

    table {
      margin-top: 20px;
      border-top: 1px solid $dividers;
      width: calc(100% - 40px);

      .medals {
        width: 10%;
      }
    }
  }

  .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;
  }

}


.important_wrap {
  position: relative;
  height: 50px;
  background-color: #6bbd45 ;
  overflow: hidden;

  .important_title {
    height: 50px;
    width: 110px;
    float: left;
    background: url('../images/logo.png');
  }

  .slideshow {
    margin: 0 70px 0 30px;

    li {

      a {
        display: block;
        font-family: 'ProximaNovaRegular', sans-serif;
        font-size: 16px;
        line-height: 48px;
        color: #ffffff;
        text-decoration: none;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }
    }
  }

  .unslider {

    .arrow {
      position: absolute;
      top: 14px;
      cursor: pointer;
      height: 22px;
      width: 22px;
      @include transition;

      &:hover {
        -webkit-transform: rotate(360deg);
        -moz-transform: rotate(360deg);
        -ms-transform: rotate(3600deg);
        -o-transform: rotate(360deg);
        transform: rotate(360deg)
      }

      &.prev {
        right: 46px;
        background-image: url(../images/prev.svg);
      }

      &.next {
        right: 14px;
        left: initial;
        background-image: url(../images/next.svg);
      }
    }
  }
}
