@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;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  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: 4px;
  left: 5px;
  width: 18px;
  height: 20px; 
  cursor: pointer;
  background-image: url('../art/solidice-cube.png');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  border: none;
  font-size: 20px;
  font-family: 'CustomFont';
  visibility: visible;
}
#si_cube:hover {
  filter: brightness(1.12);
}
#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';
}
#topbarNav {
  display: inline-flex;
  align-items: center;
  margin-left: 30px;
  gap: 8px;
  height: 100%;
}

.topbar-option {
  color: #12B0E5;
  text-decoration: none;
  font-family: "Tahoma",Tahoma,Arial,sans-serif;
  font-size: 14px;
  letter-spacing: 0.3px;
  padding: 4px 10px;
  border-radius: 3px;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.topbar-option:hover,
.topbar-option:focus-visible {
  background-color: #35495b;
  color: #8ed8f5;
  outline: 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;
}

.download-block .nav-link {
  text-decoration: none;
  font-size: 13px;
  line-height: 1.3;
  padding: 1px 5px;
  border-radius: 4px;
}

.download-block .nav-link:hover,
.download-block .nav-link:focus-visible {
  background: rgba(53, 73, 91, 0.9);
  color: #c0d7ef;
  outline: none;
}

.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;
}

#download-changelog-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.68);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 21000;
}

#download-changelog-overlay.active {
  display: flex;
}

.download-changelog-dialog {
  width: min(90vw, 860px);
  height: min(78vh, 620px);
  background: rgba(27, 36, 49, 0.99);
  border: 1px solid #3b4f64;
  border-radius: 8px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.download-changelog-titlebar {
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px 0 14px;
  border-bottom: 1px solid #3b4f64;
  background: rgba(32, 42, 51, 0.95);
}

.download-changelog-title {
  color: #c0cedb;
  font-size: 15px;
  letter-spacing: 0.3px;
}

.download-changelog-close {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  border: 1px solid #4d6379;
  background: rgba(32, 42, 51, 0.95);
  color: #9dacbd;
  cursor: pointer;
  font-size: 22px;
  line-height: 24px;
}

.download-changelog-close:hover,
.download-changelog-close:focus-visible {
  background: #35495b;
  outline: none;
}

.download-changelog-frame {
  flex: 1;
  width: 100%;
  border: 0;
  background: rgba(27, 36, 49, 0.99);
}

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;    
}
