/* montserrat-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  src: url('montserrat-v26-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}


html {
height: 100vh;
}
body
{
  background: linear-gradient(90deg, var(--mainBackgroundLeft) 0%, var(--mainBackgroundRight) 100%);
}

/* The webpage overall styling */
* {
    padding: 0;
    margin: 0;
    font-family: sans-serif;
    box-sizing: border-box;
    color: #eee;
    -webkit-touch-callout:none;
    -webkit-user-select:none;
    -moz-user-select:none;
    -ms-user-select:none;
    user-select:none;

    --mainBackgroundLeft: #4D4F50;
    --mainBackgroundRight: #0F1112;
    
    --headerLeft: #4D4D4D;
    --headerRight: #6E9E9E;

    --headerHeight:50px;
}

p{
  font-family: 'Montserrat';
}

hr{
  font-family: 'Montserrat';
}

button{
  font-family: 'Montserrat';
}

/*  This is for styling the main container that holds everything */
#container {
    height: 100vh;
    width: 100%;
    position: relative;
    background: #ffffff;
}

#modelviewer_header{
  position: fixed;
  display: flex;
  z-index: 1;
  width: 100%;
  height: var(--headerHeight);
  background: linear-gradient(90deg, #4D4D4D 0%, #6E9E9E 100%);
  justify-content: space-between;
}

.modelviewer_header_element{
  height: 100%;
  width: fit-content;
  display: flex;
  justify-content: row;
}

.modelviewer_header_element > img{
  height: 71%;
  margin: 7px 20px;
}

.modelviewer_header_element > button{
  height: 100%;
  width: auto;
  padding: 0%;
  display: none;
  background-color: transparent;
  border: transparent solid 0px;
  margin-left: 10px;
}

.modelviewer_header_element > button:hover{
  opacity: 80%;
}

.modelviewer_header_element > #corporate_information_button, .modelviewer_header_element > #data_security_button{
  height: 100%;
  width: auto;
  padding: 0%;
  display: block;
  background-color: transparent;
  border: transparent solid 0px;
  font-size:xx-small;
  margin-right: 10px;
}

#modelviewer_dropdown {
  position: absolute;
  display: none;
  flex-direction: column; 
  top: var(--headerHeight);
  width: fit-content;
  height: fit-content;
  max-width: 300px;
  background-color: rgba(20, 20, 20, 0.8);
  padding: 1%;
  max-height: calc(100vh - 50px);
  scroll-behavior: auto;
  overflow: scroll;
  overflow-x: hidden;
  transition: all 0.5s;
}

#modelviewer_dropdown > button{
  font-family: 'Montserrat';
  font-weight: normal;
  color: white;
  min-height: 2rem;
  border: white 2px solid;
  border-radius: 25px;
  margin-bottom: 5%;
}

#modelviewer_dropdown > button:active {
  font-family: 'Montserrat';
  font-weight: normal;
  color: white;
  min-height: 2rem;
  background-color: #8AADAD;
  border: white 2px solid;
  border-radius: 25px;
  margin-bottom: 5%;
}

/* data security page style */
.data_container{
  position: absolute;
  height: fit-content;
  min-height: 100vh;
  width: 100%;
  background: linear-gradient(90deg, var(--mainBackgroundLeft) 0%, var(--mainBackgroundRight) 100%);
}

.data_overlay
{
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  justify-content: flex-start;
  align-items: center;
  background: linear-gradient(90deg, var(--mainBackgroundLeft) 0%, var(--mainBackgroundRight) 100%);
  min-height: 67.5vh;
}

.user_files_container
{
  /* margin-top: 4rem; */
  margin-bottom: 4rem;
  width: 85%;
  max-width: 90%;
  background-color: var(--mainBackgroundLeft);
  margin-top: 7rem;
  border-radius: 10px 10px 10px 10px;
}

.user_files_list_header{
  position: relative;
  color: white;
  width: 100%;
  height: fit-content;
  padding-top: 1em;
  padding-bottom: 1em;
  margin-top: 0%;
  background: linear-gradient(90deg, var(--headerRight) 0%, var(--headerLeft) 100%);
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  border-radius: 10px 10px 0px 0px;
  white-space: nowrap;
}

.user_files_list_header > .user_files_list_header_left{
  margin-left: 1rem;
  width: 50%;
  height: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
}

.user_files_list_header > .user_files_list_header_left >label {
  font-size: 1.5em;
  overflow-wrap:normal;
  white-space: pre-wrap;
}

.user_files_container > .user_files_list_container {
  padding: 2em;
  white-space: pre-line;
  overflow-wrap: break-word;
}

.user_files_container > .user_files_list_container > .user_files_list > p{
  white-space: pre-wrap;
  user-select: text;
}

.user_files_container > .user_files_list_container > .user_files_list > h3{
  user-select: text;
}

.user_files_list{
  width: 95%;
  height: fit-content;
  margin: auto;
}

.modelviewer_footer{
  position: fixed;
  bottom: 0%;
  background-color: var(--headerRight);
  height: fit-content;
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 10px;
}

.modelviewer_footer > button{
  font-size: small;
  background-color: transparent;
  border: solid 0px transparent;
}

/* This styles the descriptions of the 3D object */
#content {
    height: 500px;
    width: 700px;
    position: absolute;
    left: 12%;
    top: calc(50% - 250px);
}

/* This styles the heading in the 3D description */
#content h2 {
  font-size: 80px;
  color: grey;
}

/* This styles the paragraph in the 3D description*/
#content p {
    font-size: 20px;
    color: rgb(189, 189, 189);
}

/* This styles the aside container */
#aSide {
    height: 100%;
    width: 100%;
    position: absolute;
    left: 0%;
}

/* This styles the 3D object inserted in the aside container */
#aSide model-viewer {
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    border: none;
}

:not(:defined) > * {
    display: none;
  }

  model-viewer {
    background-color: #eee;
    overflow-x: hidden;
  }

  
.progress-bar {
  display: block;
  width: 33%;
  height: 10%;
  max-height: 2%;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate3d(-50%, -50%, 0);
  border-radius: 25px;
  box-shadow: 0px 3px 10px 3px rgba(0, 0, 0, 0.5), 0px 0px 5px 1px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.9);
  background-color: rgba(0, 0, 0, 0.5);
}

.progress-bar.hide {
  visibility: hidden;
  transition: visibility 0.3s;
}

.update-bar {
  background-color: rgba(255, 255, 255, 0.9);
  width: 0%;
  height: 100%;
  border-radius: 25px;
  float: left;
  transition: width 0.3s;
}

#ar-button{
  bottom: 50px;
  right: 50px;
  position: absolute;
  z-index: 1;    
  border: none;
  border-radius: 10px;
  padding: 0.5%;
  width: 7em;
  height: 7em;
}

#ar-button img {
  width: 100%;
}

#ar-button:active {
  background-color: #8AADAD;
}

.activeButton
{
  background-color: #8AADAD;
}

.inactiveButton
{
  background-color: #6B979780;
}

#ar-button:focus {
  outline: none;
}

#ar-button:focus-visible {
  background-color: #8AADAD;
}

@keyframes circle {
  from { transform: translateX(-50%) rotate(0deg) translateX(50px) rotate(0deg); }
  to   { transform: translateX(-50%) rotate(360deg) translateX(50px) rotate(-360deg); }
}

@keyframes elongate {
  from { transform: translateX(100px); }
  to   { transform: translateX(-100px); }
}

model-viewer{}

model-viewer > #ar-prompt {
  position: absolute;
  left: 50%;
  bottom: 175px;
  animation: elongate 2s infinite ease-in-out alternate;
  display: none;
}

model-viewer[ar-status="session-started"] > #ar-prompt {
  display: block;
}

model-viewer > #ar-prompt > img {
  animation: circle 4s linear infinite;
}

model-viewer > #ar-failure {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 175px;
  display: none;
}

model-viewer[ar-tracking="not-tracking"] > #ar-failure {
  display: block;
}

.slider {
  width: 100%;
  text-align: center;
  overflow: hidden;
  position: absolute;
  bottom: 16px;
}

.slides {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.slide {
  scroll-snap-align: start;
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: #fff;
  margin-right: 10px;
  border-radius: 10px;
  border: none;
  display: flex;
}

.slide.selected {
  border: 2px solid #fff;
}

.slide:focus {
  outline: none;
}

.slide:focus-visible {
  outline: 1px solid #fff;
}