/*
RED
#F46036
LIGHT BLUE to...
#5B85AA
#414770
#372248
...DARK BLUE
BLACK (isH)
#171123
*/

* {
  box-sizing: border-box;
}
body {
  /* font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif; */
  font-family: 'Kanit', sans-serif;
}

/* SCROLLBARS */

*::-webkit-scrollbar-track
{
	/* -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3); */
	background-color: #372248;
}

*::-webkit-scrollbar
{
	width: 6px;
  height:6px;
	background-color: #372248;
}

*::-webkit-scrollbar-thumb
{
	background-color: #ff2cb1;
  box-shadow: 0 0 8px 0 rgba(255, 131, 210, 0.8);
  border-radius:3px;
}


button{
  border-radius: 3px;
  border:3px solid #ff2cb1;
  background: #ff2cb1;
  color:black;
  letter-spacing: 0.8px;
  font-size: 14px;
  font-weight: 600;
}
button{
  padding: 3px 4px;
  transition: box-shadow 0.3s linear;
}
button:hover {
  background: #ff2cb1;
  box-shadow: 0 0 13px 0 #ff2cb1, 0 0 8px 0 #ff2cb1;
  cursor: pointer;
}
button:active {
  background: #ff2cb1;
  cursor: pointer;
}
/* LAYOUT */
.page-container{
  position: relative;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  display:grid;
  grid-template-columns: 1fr;
  grid-template-rows: 80% auto 140px;
}
  .too-small-warning{
    /* display:flex; */
    display:none;
    position: absolute;
    top:0;
    left:0;
    bottom: 0;
    right:0;
    z-index: 1100;
    padding:10vw;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: rgba(0,0,0,0.9);
    color: #ff2cb1;
    text-shadow: 0 0 13px rgba(255, 131, 210, 0.8);
  }

  .page-container .drop-uploader{
    animation: uploaderFade 0.5s linear;
    animation-direction: reverse;
    display:none;
  }
  .page-container.first-time-user .drop-uploader{
    display: flex;
    justify-content: center;
    align-items: center;
    animation: uploaderFade 0.5s linear;
    animation-direction: alternate;
  }
  @keyframes uploaderFade {
    0%   {opacity: 0;}
    100% {opacity: 1}
  }
  .drop-uploader{
    position: absolute;
    top:0;
    left:0;
    bottom: 0;
    right:0;
    z-index: 1000;
    background: rgba(0,0,0,0.9)
  }
    .drop-uploader > h1{
      position: absolute;
      top:0;
      left:0;
      right:0;
      padding: 20px 100px;
      text-align: center;
      color: #ff2cb1;
      text-shadow: 0 0 13px rgba(255, 131, 210, 0.8);
    }
    .drop-uploader > .drag-n-drop-image-container{
      margin:10vh 10vw;
      text-align: center;
    }
    .drop-uploader > .drag-n-drop-image-container > img{
      max-width: 80vw;
      max-height: 80vh;
      border-radius: 50%;
      box-shadow: 0px 0px 27px 0px cyan;
      border: 2px solid cyan
    }
    .drop-uploader > input{
      position: absolute;
      top:0;
      left:0;
      bottom: 0;
      right:0;
      opacity:0;
      cursor: pointer;
    }
  .main-container{
    position: relative;
    display: flex;
    justify-content: center;
    background: #171123;
    max-width: 100%;
  }
    .annotations-container{
      width:200px;
      background:#372248;
      display: flex;
      flex-direction: column ;
      
      border-right: 1px solid #ff2cb1;
      box-shadow: 0 0 16px 0 rgba(255, 131, 210, 0.8);
    }
      .annotation-list{
        flex: 1 1 auto;
        padding:10px;
        margin:0;
        overflow: auto;
      }
        .annotation-list > li{
          padding: 10px;
          background: #414770;
          list-style-type: none;
          border-radius: 6px;
          margin-bottom:10px;
        }
        .annotation-list > li:focus-within{
          /* border-top: 1px solid cyan; */
          background: #414770;;
          box-shadow: 0px 0px 7px 0px cyan;
        }
          .annotation-list > li > input{
            width: 100%;
            margin-bottom: 5px;
          }
          .annotation-list > li > button{
            width: calc(50% - 5px)
          }
          .annotation-list > li > button:first-of-type{
            margin-right: 10px;
          }

      .add-annotation-button-container{
        flex: 0 1 auto;
        padding:10px;
        padding-bottom: 20px;
      }
        .add-annotation-button{
          width:100%;
        }

    .canvas-container{
      max-width:calc(100% - 240px);
      width:100%;
      position: relative;
      text-align: center;
      /* background: rgba(0,0,0,0.2); */
      margin: 20px;
      overflow: hidden;
      
      display: flex;
      align-items: center;
      justify-content: center;
    }
      #canvas{
        position: relative;
        max-height: 100%;
        max-width: 100%;
        flex: 0 0 auto;
      }

  .upload-input-container{
    display: flex;
    justify-content: space-between;
    background: #414770;
    padding: 10px;
    border-top: 1px solid cyan;
    box-shadow: 0px 0px 14px 2px cyan;
    z-index: 100;
    height:50px
  }
    .upload-input-container > div{
      display:flex;
      justify-content: center;
      align-items: center;
    }
      .upload-input-container > div > p{
        color: cyan;
        text-shadow: 0px 0px 6px rgba(0,255,255,0.8);
        padding:0;
        margin:0 10px 0 0;
      }
      .upload-input-container > div > .custom-file-upload{
        border-radius: 3px;
        border:3px solid #ff2cb1;
        background: #ff2cb1;
        color:black;
        letter-spacing: 0.8px;
        font-size: 14px;
        font-weight: 600;
        padding: 4px;
        cursor:pointer;
        transition: box-shadow 0.3s linear;
      }
      .upload-input-container > div > .custom-file-upload:hover {
        background: #ff2cb1;
        box-shadow: 0 0 13px 0 #ff2cb1, 0 0 8px 0 #ff2cb1;
        cursor: pointer;
      }
        .upload-input-container > div > .custom-file-upload > input[type="file"] {
          display: none;
        }
  


  .image-carousel-container{
    background: #1f2238;
    overflow-x: auto;
    white-space: nowrap;
    z-index: 200;
  }
    .thumb-container{
      display: inline-flex;
      flex-direction: column;
      height:calc(100% - 20px);
      width:120px;
      overflow: hidden;
      margin:10px;
      border-radius: 5px;
    }
    .thumb-container:hover{
      background:#ff2cb1;
      cursor: pointer;
    }
    .thumb-container.selected{
      box-shadow: 0 0 12px 0 cyan;
      background:cyan;
      cursor: pointer;
    }
    .thumb-container.selected:hover{
      box-shadow: 0 0 12px 0 cyan;
      background:cyan;
      cursor: pointer;
    }
      .thumb-image{
        flex: 1 0 auto;
        height: 85%;
        object-fit: scale-down;
        pointer-events: inherit;
        padding:5px;
      }
      .thumb-image-label{
        flex: 1 0 auto;
        height: 15%;
        width:100%;
        font-size: 12px;
        font-weight: 500;
        text-align: center;
        text-overflow: ellipsis;
        overflow: hidden;
        pointer-events: inherit;
        padding:0 5px;
      }



/* MEDIA QUERIES */

@media only screen and (max-width: 950px){
  .page-container{
    grid-template-rows: 1fr 50px 140px;
    overflow: auto;
    min-width: 740px;
  }
  .main-container{
    flex-direction: column-reverse;
    justify-content: space-between;
  }
  .annotations-container{
    width:100%;
    align-items: center;
    justify-content: center;
    min-height: 185px;
    border-right: none;
    border-top: 1px solid #ff2cb1;
  }
  .annotation-list{
    display: flex;
    flex-direction: row;
    width: 100vw;
    height: 125px;
  }
  .annotation-list > li{
    flex: 0 0 auto;
    width: 200px;
    margin-right:10px;
  }
  .canvas-container {
    max-width: unset;
    margin:0;
    padding-top: 20px;
    min-height: 500px;
  }
}

/* DISPLAY 'TOO SMALL' WARNING MODAL*/
@media only screen and (max-width: 740px) {
  .too-small-warning{
    display:flex;
  }
}