body {
  margin: 0;
  padding: 0;
  overflow: hidden;
  font-family: Arial, Helvetica, sans-serif;
}

canvas {
  width: 75%;
  height: 100%;
  display: block;
}

canvas:active {
  cursor: grabbing;
}

html {
  scrollbar-face-color: #646464;
  scrollbar-base-color: #646464;
  scrollbar-3dlight-color: #646464;
  scrollbar-highlight-color: #646464;
  scrollbar-track-color: #000;
  scrollbar-arrow-color: #000;
  scrollbar-shadow-color: #646464;
}

::-webkit-scrollbar { width: 8px; height: 3px;}
::-webkit-scrollbar-button {  display: none; }
::-webkit-scrollbar-track {  background-color: #646464;}
::-webkit-scrollbar-track-piece { background-color: #000;}
::-webkit-scrollbar-thumb { height: 50px; background-color: #666; border-radius: 3px;}
::-webkit-scrollbar-corner { background-color: #646464;}
::-webkit-resizer { background-color: #666;}

.container {
top: 0px;
position:fixed;
height: 100%;
right: 0px;
}
/* Sidebar */
.sidebar {
width: 50vh;
height: 100vh;
background-color: hsl(0, 0%, 5%);
position: fixed;
top: 0;
right: 0;
overflow-x: hidden;
padding: 20px;
}

.search-container {
margin-top: 20px;
padding-bottom: 10px;
/* border-bottom: 2px solid hsl(0, 0%, 40%); */
}

.search {
width: 100%;
padding: 12px 20px;
margin: 8px 0;
box-sizing: border-box;
border: 2px solid #f7e70b;
background-color: hsl(0, 0%, 5%);
/* border-radius: 4px; */
color: white;
}

.search:focus{
outline: none;
border: 2px solid #f7e70b;
}

.dropdown {
position: relative;
display: none;
max-height: 30vh;
overflow-y: scroll;
padding-right: 0px;
}

.dropdown-item {
padding: 10px;
cursor: pointer;
background-color: hsl(0, 0%, 15%);
color: white;
margin-bottom: 10px;
transition: 0.3s;
}

.dropdown-item:hover {
background-color: hsl(0, 0%, 40%);
/* border: 2px solid #f7e70b; */
/* box-shadow:0px 0px 0px 2px #f7e70b inset; */
}

/* Movie Info */
.movie-info {
width: 50vh;
height: 100%;
background-color: hsl(0, 0%, 5%);
color: white;
position: relative;
top: 0;
right: 0;
padding: 20px;
overflow-y: visible;
}

.movie-info.visible {
display: block;
}

.movie-info.hidden {
display: none;
}

input[type=range] {
width: 100%;
margin-bottom: 10px;
}

button[type=submit] {
background-color: hsl(0, 0%, 5%);
color: rgb(241, 241, 241);
font-size: 16px;
padding: 8px 16px;
border: none;
cursor: pointer;
border: 2px solid #f7e70b;
margin-top: 20px;
transition: 0.3s;
}

button[type=submit]:hover {
background-color: #f7e70b;
color: rgb(0, 0, 0);

}

#tooltip {
  position: absolute;
  display: none;
  background-color: rgba(0, 0, 20, 0.8);
  color: white;
  padding: 5px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: bold;
  white-space: nowrap;
  z-index: 100;
}

#login-button {
  background-color: hsl(0, 0%, 5%);
  color: rgb(241, 241, 241);
  font-size: 16px;
  padding: 8px 16px;
  border: none;
  cursor: pointer;
  border: 2px solid #f7e70b;
  transition: 0.5s;
}

#login-button:hover {
  background-color: #f7e70b;
  color: rgb(0, 0, 0);
}

.box {
  background-color: hsl(0, 0%, 15%);
  padding: 10px;
  margin-bottom: 10px;
  /* border-radius: 4px; */
}

.box p {
  margin: 0;
  padding-bottom: 2px;
  color: white;
}

.box h2 {
  margin: 0;
  padding-bottom: 10px;
  color: white;
}

.box:hover{
  background-color: hsl(0, 0%, 25%);
}

#box-delete {
  color: #646464;
  cursor: pointer;
}

#box-delete:hover {
  color: hsl(0, 0%, 75%);
  cursor: pointer;
  -webkit-animation: rotate-90-cw 0.5s cubic-bezier(0.785, 0.135, 0.150, 0.860) both;
  animation: rotate-90-cw 0.5s cubic-bezier(0.785, 0.135, 0.150, 0.860) both;
  color: hsl(0, 0%, 75%);
  cursor: pointer;
}

.box img {
  width: auto;
  height: 100px;
}

.ratingInfo {
margin-left: 10px;
}

#ratings {
  margin-top: 10px;
  width: 100%;
  padding: 12px, 20px;

}

#close-rate, #close-modal {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #646464;
  cursor: pointer;
  font-size: 30px;
  /* transition: transform 0.5s;
  transition-timing-function: ease-out; */
}

#close-rate:hover, #close-modal:hover {
  -webkit-animation: rotate-90-cw 0.5s cubic-bezier(0.785, 0.135, 0.150, 0.860) both;
  animation: rotate-90-cw 0.5s cubic-bezier(0.785, 0.135, 0.150, 0.860) both;
  color: hsl(0, 0%, 75%);
  cursor: pointer;
}

.movie-details {
margin-top: 20px;
display: block;
}

.slider {
  appearance: none;
  -webkit-appearance: none;
  width: 50%;
  height: 3px;
  background: hsl(0, 0%, 20%);
  /* margin-bottom: 10px;
  margin-top: 10px; */
}

/* input[type=range] {
  width: 50%;
  margin-bottom: 20px;
} */

/* .slider-label {
  margin-bottom: 20px; 
  margin-top: 40px;
  display: block; 
  width: 50px;
  float: left;
} */

label {
  display: inline-block;
  /* margin-bottom: 10px; */
  text-align: center;
  margin: 0 auto;
  font-weight: 700;
  font-size: x-large;
  color: #646464;
  }

.slider-value{
  margin-top: 20px;
  text-align: center;
  display: block;
}

.sliderRow {  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr;
  gap: 0px 0px;
  grid-auto-flow: row;
  grid-template-areas:
    "label slider slider";
}

.labelContainer {
  grid-area: label;
  justify-self: end;
  display: flex;
  align-items: flex-end;
  padding-right: 20px;

}

.sliderContainer { grid-area: slider; }

/* for chrome/safari */
.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 5px;
  height: 20px;
  background: #f7e70b;
  cursor: pointer;
}

/* for firefox */
.slider::-moz-range-thumb {
  width: 20px;
  height: 60px;
  background: #000;
  cursor: pointer;
  border: 5px solid lawngreen;
  border-radius: 4px;
}

.logo {
width:50%;
display: block;
left: 50%;
transform: translateX(50%);
}

#interface-buttons {
position:absolute;
bottom: 5vh;
left: 5vh;
}

#pauseButton {
position: relative;
display: inline-block;
/* bottom: 5vh;
left: 5vh; */
color: hsl(0, 0%, 40%);
font-size: xx-large;
margin-right: 1em;
/* transform: translateX(-50%); */
}

#resetButton {
position: relative;
display: inline-block;
/* bottom: 5vh;
left: 5vh; */
color: hsl(0, 0%, 40%);
font-size: xx-large;
/* transform: translateX(-50%); */
transition: 0.4s;
}

#resetButton:hover, #pauseButton:hover{
cursor: pointer;
color: hsl(0, 0%, 70%);
}

/* Add styles for the modal */
.modal {
display: none; /* Hidden by default */
position: fixed; /* Stay in place */
z-index: 1; /* Sit on top */
/* left: 0;
top: 0; */
width: 50%; /* Full width */
height: 50%; /* Full height */
/* overflow: auto; Enable scroll if needed */
}

/* Modal Content/Box */
.modal-content {
position:relative;
top:50%;
left:50%;
/* transform:translate(25%,25%); */
background-color: hsl(0, 0%, 5%);
padding:20px;
display: block;
color: white;
}

#close-modal {
position: absolute;
top: 15px;
right: 15px;
}

.modal-content p {
padding-right: 3em;
text-align: justify;
}

/* The Close Button */
.close {
  color:#aaaaaa;
  float:right;
}
.close:hover,
.close:focus {
  color:#000000;
}

/* Add a dark background behind the modal when opened*/
.modal-backdrop{
 position:absolute;
 top:0px;
 left:0px;
 width:100%;
 height:100%;
 background-color:black;
 opacity:.7
}

#openModal {
color:#f7e70b;
font-size: small;
font-style: italic;
}


/* ----------------------------------------------
* Generated by Animista on 2023-3-13 1:9:46
* Licensed under FreeBSD License.
* See http://animista.net/license for more info. 
* w: http://animista.net, t: @cssanimista
* ---------------------------------------------- */

/**
* ----------------------------------------
* animation rotate-90-cw
* ----------------------------------------
*/
@-webkit-keyframes rotate-90-cw {
0% {
  -webkit-transform: rotate(0);
          transform: rotate(0);
}
100% {
  -webkit-transform: rotate(90deg);
          transform: rotate(90deg);
}
}
@keyframes rotate-90-cw {
0% {
  -webkit-transform: rotate(0);
          transform: rotate(0);
}
100% {
  -webkit-transform: rotate(90deg);
          transform: rotate(90deg);
}
}

#hamburger-menu {
position: absolute;
top: 10px;
right: 10px;
font-size: 20px;
background: transparent;
border: none;
cursor: pointer;
z-index: 1000;
color: hsl(0, 0%, 40%);
font-size: xx-large;
}

@media (min-width: 768px) {
#hamburger-menu {
  display: none;
}
}

/* Media query for screen size below 768px */
@media screen and (max-width: 767px) {
#hamburger-menu {
  display: block;
}

.sidebar {
  display: none;
}

.sidebar.open {
  display: block;
}
}

@media (min-width: 769px) {
#hamburger-menu {
  display: none;
}
}

#hamburger-menu.hidden {
display: none;
}

#close-sidebar {
position: absolute;
top: 10px;
right: 10px;
font-size: 20px;
background: transparent;
border: none;
cursor: pointer;
display: none;
color: hsl(0, 0%, 40%);
font-size: xx-large;
}

@media (max-width: 767px) {
#close-sidebar {
  display: block;
}
}