/* Contains CSS for the dropdown menu in the toolbar,
the code cover for hiding, including everything related to the input block,
and for the media window
 */

#reloadProject {
  position: absolute;
  background-color: white;
  border-radius: 5px;
  top: 20%;
  left: 60%;
  height: 11em;
  width: 25em;
  z-index: 1000;
  color: black;
  margin: 10px;
  padding: 10px;
  display: none;
}

#notLoggedIn {
  position: absolute;
  background-color: white;
  border-radius: 5px;
  top: 10%;
  left: 40%;
  height: 11em;
  width: 25em;
  z-index: 1000;
  color: black;
  margin: 10px;
  padding: 10px;
  display: none;
}

#explorePageLink {
  color: #a06851;
}

#explorePageLink:hover {
  color: rgb(0, 89, 255);
  text-decoration: underline;
  cursor: pointer;
}

#curtain:hover {
  cursor: not-allowed;
}

.dropdown_menu {
  display: flex;
  top: 0px;
  right: 5%;
  position: absolute;
  align-items: center;
  justify-content: center;
  height: 100%;
  box-sizing: border-box;
  vertical-align: middle;
  color: white;
}

.dropdown_menu ul {
  display: flex;
  list-style-type: none;
  margin: 0px;
  height: 100%;
  padding: 0;
}

#toggles_dropdown_text,
#help_dropdown_text,
#file_dropdown_text {
  display: inline-block;
  height: 100%;
  width: 100%;
  transition: all 0.15s ease-in;
  padding: 0px 5px;
  padding-top: 10px;
}

#toggles_dropdown_text:hover,
#help_dropdown_text:hover,
#file_dropdown_text:hover {
  background-color: #414167;
}

.dropdown_menu ul li {
  margin-right: 50px;
  font-size: 20px;
  height: 100%;
}

.toggle_buttons_dropdown,
.help_buttons_dropdown,
.file_buttons_dropdown {
  display: none;
  transition: opacity 1s ease;
}

.dropdown_menu:hover ul li {
  cursor: pointer;
}

#toggles_dropdown:hover .toggle_buttons_dropdown ul,
#help_dropdown:hover .help_buttons_dropdown ul,
#file_dropdown:hover .file_buttons_dropdown ul {
  display: block;
  list-style-type: none;
  margin: 0px;
  width: 100%;
  cursor: pointer;
  border-radius: 1px;
  padding: 0;
}

#toggles_dropdown:hover .toggle_buttons_dropdown ul li,
#help_dropdown:hover .help_buttons_dropdown ul li,
#file_dropdown:hover .file_buttons_dropdown ul li {
  width: 100%;
  margin: 0;
  text-align: left;
  padding: 5px 10px;
  background-color: #12121d;
}

#help_dropdown:hover .help_buttons_dropdown,
#file_dropdown:hover .file_buttons_dropdown,
#toggles_dropdown:hover .toggle_buttons_dropdown {
  display: block;
  position: absolute;
  top: 100%;
}

.toggle_buttons_dropdown ul li:hover,
.help_buttons_dropdown ul li:hover,
.file_buttons_dropdown ul li:hover {
  background-color: #414167 !important;
}

.toggle_buttons_dropdown ul li,
.help_buttons_dropdown ul li,
.file_buttons_dropdown ul li {
  transition: all 0.15s ease-in !important;
}

.button_code_switch {
  padding: 2px 10px;
  margin-left: 10px;
  margin-top: 6px;
  margin-bottom: 4px;
  margin-right: 10px;
  font-size: 1.2em;
  border-radius: 20px;
  background-color: aquamarine;
}

.button_code_switch:focus {
  outline: none;
}

.button_code_switch:hover {
  background-color: rgb(64, 148, 120);
}

#code_cover {
  display: none;
  background-color: #1e1e2f;
  width: 100%;
  height: 100vh;
  z-index: 1;
  position: relative;
}

#curtain {
  display: none;
  background-color: white;
  width: 100%;
  height: 100vh;
  z-index: 1000;
  opacity: 0.2;
  position: relative;
}

#input_params_block {
  border-radius: 1em;
  padding: 0px 20px;
  color: white;
  position: absolute;
  top: 3.5em;
  left: -25em;
  bottom: 2em;
  width: 25em;
  background-color: rgba(56, 54, 54, 0.475);
  z-index: 10;
  transition: all 0.3s ease;
  overflow-x: visible;
  overflow-y: visible;
}

#input_params_block_btn {
  position: absolute;
  top: 50%;
  right: -7%;
  background-color: #1e1e2f;
  border: none;
  z-index: 100;
}

#input_params_block_btn:focus {
  outline: none;
}

html {
  height: 100%;
}

#input-params-ul {
  list-style: none;
  padding: 0;
  max-height: 80%;
}

#input-params-ul li {
  padding: 15px;
  color: yellow;
  font-family: "Fira Code", monospace;
  position: relative;
  transition: all 0.3s ease-in;
}

#input-params-ul li input {
  background-color: rgba(128, 128, 128, 0.524);
  border: none;
  border-radius: 0.5em;
  color: rgb(233, 207, 211);
}

#input-params-ul li input:focus {
  outline: none;
}

#input-params-ul li:hover {
  background-color: rgb(2, 56, 56);
}

#input-params-ul-container {
  width: 20em;
  top: 4em;
  bottom: 3em;
  position: absolute;
  overflow: scroll;
}

#add-new-param {
  position: absolute;
  bottom: 0;
  margin-bottom: 10px;
  padding-top: 5px;
  border-top: 1px rgba(200, 198, 198, 0.569) solid;
  width: 80%;
  text-align: center;
}

#new-param-created,
#reload-virtual-world-btn {
  background-color: rgb(29, 160, 29);
  color: black;
}

#new-param-cancelled,
#close-reload-project-btn {
  background-color: grey;
  color: black;
}

#add-new-param button {
  border: 0;
  border-radius: 5px;
  background-color: white;
  transition: all 0.3s ease;
}

#add-new-param button:hover {
  background-color: rgb(192, 249, 249);
}
#add-new-param button:focus {
  outline: none;
}

#create-edit-param-name {
  position: absolute;
  background-color: white;
  border-radius: 5px;
  top: 20%;
  left: 30%;
  height: 17em;
  width: 25em;
  z-index: 1000;
  color: black;
  margin: 10px;
  padding: 10px;
  display: none;
}

#create-edit-param-name h3,
#reloadProject h3,
#notLoggedIn h3 {
  border-bottom: 1px rgba(200, 198, 198, 0.569) solid;
  padding-bottom: 5px;
}

#reloadProject span,
#notLoggedIn span {
  margin-bottom: 5px;
  display: block;
}

#create-edit-param-name span,
#create-edit-param-name input {
  margin-bottom: 10px;
  display: block;
}

#create-edit-param-name input {
  border-radius: 0.5em;
  border: none;
  background-color: rgba(128, 128, 128, 0.358);
}

#create-edit-param-name input:focus {
  outline: none;
}

#create-edit-param-name button,
#reloadProject button,
#notLoggedIn button {
  padding: 0.25em 1em;
  border-radius: 0.3em;
  border: none;
  margin-top: 0.75em;
  margin-right: 1em;
  transition: opacity 0.3s ease;
  font-size: 1em;
}

#create-edit-param-name button:focus,
#reloadProject button:focus,
#notLoggedIn button:focus {
  outline: none;
}

#create-edit-param-name button:hover,
#reloadProject button:hover,
#notLoggedIn button:hover {
  opacity: 0.85;
}

#remove-input-param-btn {
  position: absolute;
  color: white;
  top: 0;
  right: 0;
  border: none;
  background-color: rgba(56, 54, 54, 0.475);
}

.isMoving {
  cursor: move;
  user-select: none;
}

/* Everything below is for the media window  */

#media-container nav button {
  padding: 5px;
  color: white;
  transition: all 0.15s ease-in;
  border-top-width: 0px;
  border-bottom-width: 0px;
}

#media-container nav button:first-of-type {
  border-left-width: 0px;
}

#media-container nav button:last-of-type {
  border-right-width: 0px;
}

#media-container nav button:hover {
  background-color: rgba(23, 20, 20, 0.905) !important;
}

#media-container nav button:focus {
  outline: none;
}

#media-container header:hover {
  cursor: move;
}

#media-container {
  transition: opacity 0.3s ease-in;
}

#close-media,
#reload_media {
  transition: opacity 0.15s ease-in;
}

#close-media:focus,
#reload_media:focus {
  outline: none;
}

#close-media:hover,
#reload-media:hover {
  opacity: 0.5;
}

@media (max-width: 1300px) {
  .dropdown_menu ul li {
    margin-right: 25px;
  }
}
