@font-face {
  font-family: 'CustomFont';
  src: url('../fonts/oc-font.ttf') format('truetype');
}      
body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  overflow: hidden;
  background-color: rgba(27, 36, 49, 1.0);
  background-size: cover;
}
#log { border: 1px solid #ccc; padding: 1em; height: 300px; overflow-y: auto; visibility: hidden; }
    .ping { color: green; }
    .msg { color: blue; }

#logged_in_buttons {
  position: absolute;
  color: #12B0E5 !important;
  top: 5px;
  right: 40px;
  width: 200px;
  height: 100%;
  cursor: pointer;
  background: transparent;
  border: none;
  font-size: 20px;
  font-family: 'CustomFont';
 visibility: visible;   
}
#logged_out_buttons {
  position: absolute;
  color: #12B0E5 !important;
  top: 5px;
  right: 40px;
  width: 200px;
  height: 100%;
  cursor: pointer;
  background: transparent;
  border: none;
  font-size: 20px;
  font-family: 'CustomFont';
 visibility: hidden;   
}
#userMessageButton {
  position: absolute;
  color: #12B0E5 !important;
  top: 1px;
  right: 12px;
  width: 22px;
  cursor: pointer;
  background: transparent;
  border: none;
  font-size: 18px;
  font-family: 'CustomFont';
}
#userProfileButton {
  position: absolute;
  color: #12B0E5 !important;
  top: 1px;
  right: 42px;
  width: 22px;
  cursor: pointer;
  background: transparent;
  border: none;
  font-size: 18px;
  font-family: 'CustomFont';
}

#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
}
#toolbarDiv {
  position: absolute;
  background-color: #2C3343 ;
  padding: 2px;
  border-radius: 2px;
  width: 100%;
  height: 28px;
  top: 2px;
  text-align: center;
  visibility: visible;
  z-index: 10001;
}
#tooltrayDiv {
  position: fixed;
  background-color: #2C3343 ;
  padding: 2px;
  border-radius: 2px;
  width: 100%;
  height: 28px;
  bottom: 0;
  left: 0;
  text-align: center;
  visibility: visible;
  z-index: 10001;
}
.dialog {
  position: relative;
  background-color: white;
  padding: 2px;
  border-radius: 8px;
  text-align: center;
  visibility: hidden;
  display: none;
}
.dialog.active {
  display: block;
  visibility: visible;
}

.window {
  position: relative;
  background-color: white;
  padding: 2px;
  border-radius: 8px;
  text-align: center;
  visibility: hidden;
  display: none;
}
.window.shown {
  display: block;
  visibility: visible;
}
.window.active {  /* change color of window title bar */
  display: block;
}


#loginDiv {
  position: relative;
  background-color: white;
  padding: 2px;
  border-radius: 8px;
  text-align: center;
  visibility: hidden;
}
#registerDiv {
  position: relative;
  background-color: white;
  padding: 2px;
  border-radius: 8px;
  text-align: center;
  visibility: hidden;
}
#closeButton {
  position: absolute;
  top: 5px;
  right: 5px;
  cursor: pointer;
  background: transparent;
  border: none;
  font-size: 16px;
  font-family: 'CustomFont';
}
#si_cube {
  position: absolute;
  color: #12B0E5 !important;
  top: 5px;
  left: 5px;
  width: 18px;
  height: 20px; 
  cursor: pointer;
  background-image: url('../art/solidice-cube.png');
  background-size: 100% 100%;
  border: none;
  font-size: 20px;
  font-family: 'CustomFont';
  visibility: visible;
}
#si_power {
  position: absolute;
  color: #12B0E5 !important;
  bottom: 0px;
  left: 5px;
  height: 32px;
  width: 100px;
  background-image: url('/art/solidice_logo.png');
  background-size: auto 100%;
  background-repeat: no-repeat;
  background-position: center;
  cursor: pointer;
  border: none;
  font-size: 20px;
  font-family: 'CustomFont';
}

.icon-off-1::before {
  content: '\e888';
  font-family: 'CustomFont';
}

#footerPowerButton {
  position: absolute;
  left: 5px;
  top: 5px;
  width: 18px;
  height: 20px;
  background: transparent;
  border: none;
  color: #6f7a85;
  font-size: 20px;
  line-height: 20px;
  text-align: center;
  opacity: 0.65;
  cursor: default;
  pointer-events: none;
}
#showLoginButton {
  position: absolute;
  top: 1px;
  right: 90px;
  width: 35px;
  background-color: transparent;
  border: 0px;
  color: #12B0E5 !important;
  font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
  font-size: 15px;
}
.showLoginButton:hover {
  background-color: #35495b;
}        
#showRegisterButton {
  position: absolute;
  top: 1px;
  right: 1px;
  width: 75px;
  background-color: transparent;
  border: 0px;
  color: #12B0E5 !important;
  font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
  font-size: 15px;
}
.showRegisterButton:hover {
  background-color: #35495b;
}
#cogwheel {
  position: absolute;
  color: #12B0E5 !important;
  top: 5px;
  right: 12px;
  width: 24px;
  cursor: pointer;
  background: transparent;
  border: none;
  font-size: 20px;
  font-family: 'CustomFont';
}
#menu {
  position: absolute;
  top: 30px;
  left: 5px;
  color: #12B0E5 !important;
  background-color: #202a33;
  border: 0px solid #ccc;
  border-radius: 4px;
  border-bottom: 0px;
  box-shadow: 5px 5px 8px rgba(0, 0, 0, 0.55);
  font-family: "Tahoma",Tahoma,Arial,sans-serif;
  font-size: 15px;
  display: none;
  z-index: 10002;
}

.menu-option {
  display: block;
  padding: 8px 16px;
  cursor: pointer;
  border-bottom: 0px solid #ccc;
  color: #12B0E5 !important;
  text-decoration: none;
}

.menu-option:last-child {
  border-bottom: none;
}

#ctor_container {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
}

#ctor_anime {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  display: flex;
  justify-content: center; /* horizontal centering */
  align-items: center;     /* vertical centering */
  height: 360vh;    
}

#ctor_list {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  display: block;
  justify-content: center; /* horizontal centering */
  align-items: center;     /* vertical centering */
  height: 360vh;    
  color: aqua;
  width: 600px;
  height: 300px;
}

.ctor_panel {
  position: absolute;
  top: 10%;
  right: 10%;
  bottom: 10%;
  left: 10%;
  z-index: 9999;
  display: block;
  overflow-y: auto;
  overflow-x: hidden;
  color: #9dacbd;
  scrollbar-width: thin;
  scrollbar-color: #4e6f91 #1f2a36;
}

.ctor_panel::-webkit-scrollbar {
  width: 10px;
}

.ctor_panel::-webkit-scrollbar-track {
  background: #1f2a36;
}

.ctor_panel::-webkit-scrollbar-thumb {
  background-color: #4e6f91;
  border-radius: 8px;
  border: 2px solid #1f2a36;
}

.ctor_panel::-webkit-scrollbar-thumb:hover {
  background-color: #6d8fb3;
}

.ctor_panel a {
  color: #80ade7;
}

.download-block {
  background-color: rgba(31, 42, 54, 0.7);
  border: 1px solid #35495b;
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 12px;
}

.download-block h4 {
  margin: 0 0 6px 0;
  color: #d9e5f2;
}

.download-block p {
  margin: 0 0 8px 0;
  color: #9dacbd;
}

.outdated-title {
  margin: 18px 0 10px 0;
  color: #c0cedb;
}

.outdated-block {
  opacity: 0.92;
}

.download-sep {
  margin: 0 8px;
  color: #607b98;
}

.nav-link {
  color: #80ade7;
}

.menu-option:hover {
  background-color: #35495b;
}        

#download-media-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 20000;
}

#download-media-overlay.active {
  display: flex;
}

.download-media-dialog {
  position: relative;
  width: min(92vw, 1100px);
  height: min(88vh, 760px);
  background: rgba(27, 36, 49, 0.98);
  border: 1px solid #3b4f64;
  border-radius: 8px;
  box-sizing: border-box;
  padding: 48px 56px 44px 56px;
}

.download-media-stage {
  width: 100%;
  height: calc(100% - 40px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.download-media-image,
.download-media-video {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 4px;
}

.download-media-nav,
.download-media-close {
  position: absolute;
  border: 1px solid #4d6379;
  background: rgba(32, 42, 51, 0.95);
  color: #9dacbd;
  cursor: pointer;
}

.download-media-close {
  top: 10px;
  right: 12px;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  font-size: 22px;
  line-height: 24px;
}

.download-media-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 60px;
  border-radius: 6px;
  font-size: 28px;
  line-height: 54px;
}

.download-media-prev {
  left: 10px;
}

.download-media-next {
  right: 10px;
}

.download-media-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  text-align: center;
  color: #9dacbd;
  font-size: 14px;
}

.download-media-nav:hover,
.download-media-close:hover {
  background: #35495b;
}

input[type="text"] {
  margin-bottom: 10px;
}
#counter {
  position: fixed;       /* or absolute */
  top: 200px;                /* top edge of the page */
  left: 125px;               /* left edge */
  width: 250px;           /* full width */
  z-index: 9999;         /* very high stacking order */
  color: white;          /* white text */
  background: rgba(0, 0, 0, 0.7);  /* optional: dark semi-transparent background */
  padding: 10px;
  font-size: 16px;    
}
