/* styles.css */

:root {
  --primary-color: darkred;
  --secondary-color: rgba(0, 0, 0, 0.5);
  --text-color: #ddd;
  --font-family: 'Roboto Condensed', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  overflow: hidden;
  background-color: white;
  text-align: center;
  font-family: var(--font-family);
  color: var(--text-color);
}

button, select {
  cursor: pointer;
  background: var(--secondary-color);
  color: #ddd;
  font-weight: bold;
  font-variant: small-caps;
  font-size: 16px;
  padding: 8px;
  min-width: 120px;
  border: none;
  -webkit-appearance: none;
}

button:hover {
  background: rgba(0, 0, 0, 0.8);
  color: white;
}

.content {
  height: 100%;
  width: 100vw;
  display: flex;
  flex-direction: column;
}

.header {
  width: 100%;
  height: 70px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  background: linear-gradient(45deg, var(--primary-color), #ff5252);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
}

.headerTitle {
  font-size: 24pt;
  font-weight: bold;
}

#JeelizVTOWidget {
  flex-grow: 1;
  width: 100%;
  max-width: calc(100vh - 70px);
  margin: 0 auto;
  position: relative;
  background-color: #f9f9f9;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

#JeelizVTOWidgetCanvas {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  margin: 0 auto;
}

.JeelizVTOWidgetControls {
  position: absolute;
  z-index: 2;
  width: 100%;
}

.buttonIcon {
  display: inline-block;
  margin-right: 8px;
}

.JeelizVTOWidgetControlsTop {
  top: 16px;
  height: 40px;
  display: flex;
  justify-content: space-between;
}

.JeelizVTOWidgetControlsTop > button {
  width: 45%;
  min-width: auto;
}

#JeelizVTOWidgetChangeModelContainer {
  bottom: 16px;
  height: 40px;
  display: flex;
  justify-content: space-between;
}

#JeelizVTOWidgetChangeModelContainer > button {
  width: 20%;
  min-width: auto;
}

#JeelizVTOWidgetLoading {
  position: fixed;
  z-index: 4;
  cursor: wait;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
}

.loading-widget {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100px;
  background-color: #f0f0f0;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.JeelizVTOWidgetLoadingText {
  font-size: 18px;
  color: #333;
  text-align: center;
}

.spinner-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.circle {
  width: 12px;
  height: 12px;
  margin: 0 4px;
  background-color: #3498db;
  border-radius: 50%;
  display: inline-block;
  animation: pulse 1s infinite ease-in-out;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.5);
  }
  100% {
    transform: scale(1);
  }
}


#JeelizVTOWidgetAdjustNotice {
  width: 100%;
  position: absolute;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  z-index: 3;
  font-size: 16px;
  bottom: 0;
  justify-content: center;
  padding-top: 2em;
  padding-bottom: 2em;
  display: none;
}

#JeelizVTOWidgetAdjustExit {
  border: 1px solid white;
  background: transparent;
  position: absolute;
  right: 8px;
  bottom: 8px;
}

/* Hide everything, stuff will be displayed by JeelizVTOWidget: */
#JeelizVTOWidgetAdjust,
#JeelizVTOWidgetChangeModelContainer,
#buttonResizeCanvas {
  display: none;
}
