@import "./colors.css.scss";

$sidemenu_width: 360px;
.menu-overlay-layout {
  width: 100%;
  -webkit-transition: margin 0.3s; /* Safari */
  transition: margin 0.3s;

  .side-menu-header-container {
    width: 100%;
    height: 60px;
    background-color: #333;

    .common {
      color: white;
    }

    .text-container {
      @extend .common;
      width: 80%;
      height: 100%;
      float: left;
      padding-left: 20px;
      padding-top: 15px;
      cursor: pointer;
      img{
        width: 30px;
        margin-right: 15px;
      }
    }
    .close-container {
      @extend .common;
      width: 20%;
      height: 100%;
      float: right;
      padding-top: 17px;
      text-align: right;
      padding-right: 20px;

      .close-side-menu {
        cursor: pointer;
        @extend .common;
        img {
          width: 15px;
          margin-top: 4px;
          rect{
            fill: #fff;
          }
        }
      }

    }
  }

  .side-menu-content-container {
    width: 100%;
    height: 718px;
    padding-left: 40px;
    padding-right: 40px;

    .analyze-menu, .property-menu{
      .side-menu-menu-item{
        svg{
          width: 10px;
        }
        &:hover{
          color: #fff !important;
          background: #00AEEF;
          margin-left: -10px;
          padding-left: 10px;
          margin-right: -10px;
          width: auto;
          svg{
            & > g{
              fill: #fff;
            }
          }
        }
      }

      .side-menu-menu-item.disabled-link{
        color: #999;
        &:hover{
          color: #999 !important;
          background: inherit;
          margin-left: 0px;
          padding-left: 0px;
          cursor: default;
        }
      }
    }

    .side-menu-name-container {
      height: auto;
      .side-menu-exp-name {
        //font-size: 30px;

        .side-top-header{
          width: 100%;
          padding-top: 20px;
          padding-bottom: 10px;
          label{
            color: #333;
            font-weight: 300;
          }
          span.edit-experiment-name{
            color: #df1924;
            float: right;
            cursor: pointer;
          }
        }
        .exp-name-container {
          p {
            cursor: auto;
            white-space: pre-line;
            word-break: break-word;

            &.hide-elem{
              position: absolute;
              left: 400px;
              width: 280px;
            }
          }
          textarea {
            background: url(/images/bottom_pixel.png);
            margin-top: 0px;
            padding: 0px;
            width: 100%;
            border: none;
            outline: none;
            resize: none;
          }
        }
        .message-container {
          .help-block {
            .text-success {
              color: #07CE0A;
            }
          }
        }

      }
      .side-menu-exp-status {
        color: #999;
        padding: 5px 0;
        &.run-on-status{
          color: #333;
        }

        .side-menu-exp-status-text{
          background: #fff;
          color: #333;
          float: right;
          margin: 0;
          font-weight: 300;
          padding: 5px 10px;
          border-radius: 3px;
          position: relative;
          top: -5px;
          &.success{
            padding: 5px 0;
          }
          &.failed{
            background: #df1924;
            color: #fff;
          }
        }
      }
    }

    .side-menu-menu-container {
      padding-top: 20px;
      padding-bottom: 20px;
      &.top-border{
        border-top: 1px solid #aaa;
      }      
      .success {
        height: 48px;
        background-color: #8dc63f;
        color: white;
        width: 67px;
        border: none;
        position: absolute;
        top: 10px;
        right: 0;
        font-weight: 600;
        border-radius: 3px;
        &.ng-hide {
          opacity: 0;
          transition: opacity .1s;
        }
      }

      label.section-name{
        font-weight: 300;        
        color: #333;
      }

      &.run-exp {        
        height: auto;
        .side-menu-menu-item{
          position: relative;
          height: auto;
          div{
            padding-top: 20px;
            padding-bottom: 0px;
            position: relative;
            overflow: hidden;

            label.exp-message{
              width: 100%;
              text-align: center;
              padding: 17px 0;
              background: #df1924;
              border: 1px solid #df1924;
              color: #fff;
              border-radius: 3px;
              margin: 0;
              cursor: pointer;
              position: relative;
              left: 0;

              &.lid-open{
                background: #fff;
                border: 1px solid #aaa;
                color: #aaa;
              }
              &.ready-action{
                display: none;
              }

              &.confirm-exp{
                background: #333;
                color: #fff;
                border: 1px solid #333;
                img{
                  width: 15px;
                  margin-right: 5px;
                  vertical-align: middle;
                  position: relative;
                  top: -1px;                  
                }
              }

              &.started-experiment{
                background: #00AEEF;
                color: #fff;
              }
            }
          }
        }
      }

      .side-menu-menu-item {
        width: 100%;
        height: 30px;
        cursor: pointer;
        .sidemenu-show-text {
          float: right;
          color: #00AEEF;
          font-size: 12px;
          margin-top: 4px;
          display: block;
          width: 34px;
        }
        &:hover {
          color: #00AEEF;
        }
        div {
          padding-top: 4px;
        }
        .lid-open {
          color: #999;
        }
        .lid-open-message {
          color: #999;
          margin: 0;
          padding-top: 10px;
          font-weight: 300;
        }
      }
      @keyframes my_hide {
        from{height: 100}
        to{ height: 0px;}
      }
      .sidemenu-property-container {
        width: 100%;
        height: 100px;
        &.ng-hide {
          height: 0px;
          opacity: 0;
          transition: height .5s, opacity .3s;
        }
        &.ng-show {
          height: 120px;
          opacity: 1;
          transition: height .5s, opacity 2s;
        }
      }

      /*ul {
        display: block;

        li {
          padding: 0;
          //height: 30px;
          //padding-top: 10px;
          //cursor: pointer;
          a {
            text-decoration: none;
            display: block;
            padding: 10px 0px 10px 0px;
            cursor: pointer;
            color: black;
            &:hover {
              background-color: white;
              color: #00AEEF;
            }
            .success {
              height: 30px;
              background-color: #8dc63f;
              color: white;
              width: 110px;
              border: none;
            }
          }

        }
      }*/
    }
    .side-menu-button-container {
      width: 100%;
      height: auto;
      padding-top: 20px;
      padding-bottom: 20px;
      border-bottom: 2px solid #000;
      //background-color: green;
      .second-button {
        margin-left: -5px;
      }
      .side-menu-button {
        width: calc(50% - 5px);
        height: 40px;
        background-color: white;
        border: 1px solid black;
        outline: none;
        border-radius: 3px;
        &:hover{
          background: #df1924;
          color: #fff;
          border-color: #df1924;
        }

        &.confirm-delete{
          background: #df1924;
          color: #fff;
          border-color: #df1924;          
        }
      }

      .pull-left{
        float: left;
      }

      .pull-right{
        float: right;
      }

      span{
        font-size: 12px;
        font-family: 'dinot-medium';
        font-weight: 300;        
      }
    }
  }

  .side-sub-menu-content-container{
    width: 360px;
    height: 100%;
    padding-left: 25px;
    padding-right: 25px;
    position: fixed;
    top: 60px;
    left: 360px;
    background: #fff;
    z-index: 999;
    border-left: 1px solid #aaa;
    border-right: 1px solid #aaa; 

    .side-menu-header-container{
      background: #fff;
      .close-container{
        text-align: right;
        img{
          width: 15px;
        }
      }
    }

    .side-menu-menu-container{
      label.section-name{
        font-weight: 300;        
        color: #333;
      }

      p.notes-text{
        min-height: 150px;
        border: 1px solid #aaa;
        border-radius: 3px;
        padding: 10px;
        line-height: 20px;
      }      
    }

  }

  .page-wrapper {
    margin-right: 0;
    -webkit-transition: margin 0.3s; /* Safari */
    transition: margin 0.3s;
    position: fixed;
    height: 100%;

  }

  &.sidemenu-open-remove {
    float: left;
    height: auto;
    overflow: hidden;

    .page-wrapper {
      margin-right: -($sidemenu_width * 3);
      position: relative;
    }
  }

  &.sidemenu-open {
    float: left;
    height: auto;
    overflow: hidden;

    .page-wrapper {
      margin-right: -($sidemenu_width * 3);
      position: relative;
    }
  }

  .sidemenu {
    background-color: white;
    float: left;
    // min-height: 768px;
    height: auto;

    position: relative;
    width: $sidemenu_width;
    overflow: hidden;
    // margin-right: 0;

    -webkit-transition: width 0.3s; /* Safari */
    transition: width 0.3s;

    &.ng-hide {
      width: 0;
      // margin-right: -($sidemenu_width);
    }

    #sidemenu-content {
      height: 95vh;
      width: $sidemenu_width;
      overflow-y: auto;
    }

    .menu-overlay-menu {
      .long-tail-container {
        height: 40px;
        width: 350px;

        .long-tail {
          width: 6px;
          height: 40px;
          background-color: white;
          margin-left: 70px;
        }
      }
    }
    .menu-overlay-menu-item {
      height: 60px;
      width: 100%;
      padding-left: 40px;

      .tail-container {
        height: 25px;
        width: 350px;
        .tail {
          width: 6px;
          height: 22px;
          background-color: white;
          margin-left: 30px;
        }
      }
      .ball {
        border: 7px solid #fff;
        border-radius: 100%;
        width: 30px;
        height: 30px;
        margin-left: 17px;
        float: left;
      }
      .menu-text {
        float: left;
        margin-top: -2px;
        margin-left: 14px;
        cursor: pointer;
        width: 340px;
        * {
          color: #fff;
        }
      }

      .arrow-right {
        display: none;
        margin-top: 7px;
        width: 20px;
        height: 20px;
        background-image: url("/images/submenu-arrow-right.png");
        background-size: 70% 100%;
        background-repeat: no-repeat;
        float: right;
      }

      &.special {
        height: 110px;

        .tail-container {
          height: 43px;
          width: 350px;
          .tail {
            width: 6px;
            height: 40px;
            background-color: white;
            margin-left: 30px;
          }
        }
        .ball {
          border: 10px solid #fff;
          border-radius: 100%;
          float: left;
          height: 60px;
          margin-left: 3px;
          margin-top: 1px;
          width: 60px;
        }
        .menu-text{
          float: left;
          color: white;
          margin-top: 8px;
          margin-left: 14px;
          cursor: pointer;
          font-size: 40px;
          width: 300px;
        }
      }

      &.active {
        .ball {
          border-color: $blue;
        }
        .arrow-right {
          display: inline-block;
        }
      }
    }
    .home-link {
      position: absolute;
      top: 15px;
      left: 20px;
    }

    .menu-overlay-all-options {
      margin-top: 52px;
      padding: 0 50px;

      .title {
        border-bottom: solid 1px #fff;
        color: #fff;
        font-size: 14px;
        text-align: center;
      }
      .exp-option {
        color: #106aa9;
        cursor: pointer;
        font-weight: bold;
        margin-top: 16px;
        text-align: center;
      }
    }
  }
  .outer-menu {
    float: left;
    min-height: 768px;
    width: $sidemenu_width;
    overflow: hidden;

    -webkit-transition: width 0.3s; /* Safari */
    transition: width 0.3s;

    &.ng-hide {
      width: 0;
    }

    #submenu {
      width: $sidemenu_width;
    }
  }
  .page-wrapper {
    top: 0;
    left: 0;
    float: left;
    min-height: 500px;
    width: 100%;
    white-space: normal;

    .page-container {
      top: 0;
      left: 0;
      height:100%;
    }

    .content-overlay {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: black;
      z-index: 99;
      opacity: 0.3;

      -webkit-transition: opacity 0.3s; /* Safari */
      transition: opacity 0.3s;

      &.ng-hide {
        opacity: 0;
      }
    }
  }
}
