@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@500&display=swap");

html {
  font-family: "Roboto", sans-serif;
  color: white;
  -webkit-user-select: none;
  /* Safari */
  -moz-user-select: none;
  /* Firefox */
  -ms-user-select: none;
  /* IE10+/Edge */
  user-select: none;
  /* Standard */
}

* {
  margin: 0;
  padding: 0;
}

html::-webkit-scrollbar {
  display: none;
}

#file-list::-webkit-scrollbar {
  display: none;
}

html {
  background-color: #222;
}

@media only screen and (min-width: 600px) {
  #reload-icon {
    scale: 0.07;
    margin-bottom: -18.5%;
    margin-top: -100vh;
    /* margin-left: -17vw; */
    position: relative;
    right: -43%;
    background: none;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.5s;
  }

  #reload-icon:hover {
    transform: rotate(360deg);
    margin-bottom: -18.3%;
    scale: 0.08;
    transition: 0.5s;
  }

  #search {
    background-color: #333;
    border: 1px solid #555;
    color: white;
    outline: none;
    padding: 1%;
    border-radius: 20px;
    width: 30vw;
    height: 6vh;
    margin-left: 2.5vw;
    margin-top: 5vh;
    font-size: medium;
  }

  #file-action-pop-up-for-mobile {
    display: none;
  }

  #title {
    margin-top: 5vh;
    margin-left: 1vw;
  }

  #center-text {
    margin-top: 30vh;
  }

  #file-list {
    position: relative;
    margin-top: 4vh;
    margin-left: 2.5vw;
    width: 95vw;
    height: 90vh;
    overflow-x: hidden;
    overflow-y: scroll;
  }

  @keyframes appear {
    from {
      opacity: 0;
      scale: 0.5;
    }

    to {
      opacity: 1;
      scale: 1;
    }
  }

  #file-list-item {
    display: grid;
    grid-template-columns: repeat(3, 90px);
    border-bottom: 1px solid white;
    cursor: default;
    border-radius: 20px;
    transition: 200ms;
    /* animation: appear linear;
animation-timeline: view();
animation-range: entry 0; */
  }

  #file-list-item:hover {
    border-bottom: 1px solid lime;
    background-color: #333;
    scale: 0.99;
    transition: 200ms;
  }

  #file-list-item:active {
    border-bottom: 1px solid white;
    background: none;
    scale: 0.97;
    transition: 200ms;
  }

  #rhs-content {
    margin-top: 2.5vh;
  }

  #file-name {
    font-size: large;
    font-weight: bold;
    width: 100vw;
    color: white;
  }

  #file-description {
    width: 100vw;
    margin-top: 1vh;
    color: white;
  }

  #file-download-btn {
    position: absolute;
    right: 2vw;
    margin-top: 3.5vh;
    padding: 0.5%;
    background-color: lime;
    color: white;
    outline: none;
    border: 2px solid black;
    font-weight: bold;
    cursor: pointer;
    border-radius: 20px;
    padding-left: 1%;
    padding-right: 1%;
    padding-top: 0.8%;
    padding-bottom: 0.8%;
    transition: 200ms;
  }

  #file-download-btn:hover {
    background-color: green;
    transition: 200ms;
  }

  #file-delete-btn {
    position: absolute;
    right: 10vw;
    margin-top: 3.5vh;
    margin-right: 1.5%;
    padding: 0.5%;
    background-color: red;
    outline: none;
    border: 2px solid black;
    color: white;
    font-weight: bold;
    cursor: pointer;
    border-radius: 20px;
    padding-left: 1%;
    padding-right: 1.1%;
    padding-top: 0.8%;
    padding-bottom: 0.9%;
    transition: 200ms;
  }

  #file-delete-btn:hover {
    background-color: darkred;
    transition: 200ms;
  }

  #file-image {
    height: 12vh;
  }
}

@media only screen and (max-width: 600px) {
  #reload-icon {
    display: none;
  }

  #search {
    background-color: #333;
    border: 1px solid #555;
    color: white;
    outline: none;
    padding: 1%;
    border-radius: 20px;
    width: 95vw;
    height: 6vh;
    margin-left: 2.5vw;
    margin-top: 5vh;
    padding-left: 3%;
    font-size: medium;
  }

  #file-action-pop-up-for-mobile {
    position: fixed;
    top: 0vh;
    left: 5.5vw;
    background-color: #222;
    height: fit-content;
    width: 90vw;
    padding-bottom: 4%;
    border-radius: 10px;
  }

  #file-action-pop-up-for-mobile button {
    padding: 2%;
    width: 90%;
    margin-left: 5.5%;
    margin-top: 4%;
    font-weight: bold;
    outline: none;
    border-radius: 10px;
  }

  #file-delete-btn-for-mobile {
    background-color: red;
    color: white;
    border: 2px solid black;
  }

  #file-download-btn-for-mobile {
    background-color: greenyellow;
    border: 2px solid black;
  }

  #file-action-pop-up-for-mobile-close-btn {
    border: 2px solid black;
  }

  #title {
    margin-top: 4vh;
    margin-left: 33vw;
  }

  #center-text {
    margin-top: 35vh;
  }

  #file-list {
    margin-top: 4vh;
    width: 100vw;
    height: 90vh;
    overflow-y: scroll;
    overflow-x: hidden;
    padding-bottom: -2vh;
  }

  #file-list-item {
    display: grid;
    grid-template-columns: repeat(2, 90px);
    border-bottom: 1px solid white;
    cursor: pointer;
  }

  #file-list-item:hover {
    color: blue;
  }

  #file-list-item:active {
    color: red;
  }

  #rhs-content {
    margin-top: 3.5vh;
    margin-left: 5vw;
  }

  #file-name {
    font-size: large;
    font-weight: bold;
    width: 100vw;
    color: white;
  }

  #file-description {
    margin-top: 1vh;
    width: 100vw;
    color: white;
  }

  #file-download-btn {
    display: none;
  }

  #file-delete-btn {
    display: none;
  }

  #file-image {
    height: 12vh;
  }
}
