/* 
Copyright (c) Microsoft Corporation.
Licensed under the MIT License.
*/

body {
  overflow: hidden;
}

button {
  width: 100px;
  height: 25px;
}

img {
  max-height: 165px;
  border-radius: 3%;
  /*margin: 2px;*/
}

.imgDiv {
  position: relative;
}

.indexDiv {
  position: absolute;
  right: 0;
  bottom: 0;
  font-size: 14px;
  background-color: black;
  opacity: 35%;
  color: white;
  border-radius: 5px;
  margin-bottom: 5px;
  margin-right: 3px;
  width: 16px;
  height: 16px;
  text-align: center;
}

.title {
  position: fixed;
  width: 100%;
  height: 30px;
  top: 0px;
  left: 0px;
  text-align: center;
  font-size: xx-large;
}

#mainContainer {
  position: fixed;
  top: 45px;
  left: 0px;
  bottom: 0px;
  right: 0px;
  overflow-y: scroll;

  display: inline-flex;
  /* flex-direction: row; */
  flex-flow: wrap;
  /* flex: auto; */
  align-items: stretch;
  align-content: flex-start;
  justify-content: center;
  gap: 2px;
}

#focusContainer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#focusedImage {
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 2px;
}

.focusImageContainer {
  flex-grow: 1;
  height: 100%;
}

.focusOff {
  #focusContainer {
    display: none;
  }

  #mainContainer {
  }
}

input[type="button"] {
  width: 35px;
  height: 75px;
  border-radius: 3px;
}

.focusOn {
  #focusContainer {
    position: fixed;
    top: 45px;
    bottom: 200px;
    right: 0px;
    left: 0px;
  }

  #mainContainer {
    top: auto;
    flex-flow: nowrap;
    overflow-x: scroll;
    overflow-y: hidden;
    justify-content: normal;

    img {
      cursor: pointer;
    }
  }

  .focusedImage {
    border: lightblue;
    border-width: 2px;
    border-style: dotted;
    border-radius: 0px;
  }
}

.unselected {
  opacity: 0.25;
}

.selected {
  border: chartreuse;
  border-width: 2px;
  border-style: dotted;
  border-radius: 3%;
}
