html {
  box-sizing: border-box;
  box-shadow: inset 0 0 100px #000;
  overflow-x: hidden;
}
/* Scrollbar */

::-webkit-scrollbar{
    width: 4px;
    height: 4px;
 }
 
 ::-webkit-scrollbar-track{
    border-radius: 50px;
    background: rgba(119, 119, 119, 0);
 }
 
 ::-webkit-scrollbar-thumb{
    background: #FF4500;
    border-radius: 50px;
 }
 
 ::-webkit-scrollbar-thumb:hover{
    background: #962900;
    border-radius: 50px;
 }
*,
*::before,
*::after {
  box-sizing: inherit;
}
body {
  margin: 0;
  padding: 0;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  background-color: #1A1A1B;
  background-repeat: repeat;
}
button {
    cursor: pointer;
    border: none;
    background: none;
    padding: 0px;
    -webkit-tap-highlight-color: transparent;
    text-size-adjust: none;
    user-select: none;
    bottom: 3%;
    position: fixed;
    left: 46.3%;
}
.fullscreen {
    width: 142px;
    height: 46px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: rgb(255, 255, 255);
    background-color: #d93a00;
    font-size: 14px;
    position: relative;
}
.pixeled {
    border: 3px solid #000000;
    box-shadow: 8px 8px 0px rgba(0, 0, 0, 0.75);
    font-family: -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,'Apple Color Emoji','Segoe UI Emoji','Segoe UI Symbol',sans-serif;
}
.site-header {
  background-color: white;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 180px;
  width: 100vw;
  position: sticky; top: 0;
  z-index: 1000;
  border-bottom: 1px solid #343536;
}
.board {
  width: 1520px;
  height: 1020px;
  margin: auto;
  /*border-radius: 10px;*/
  padding: 10px;
  position: relative;
  overflow: hidden;
  background-color: #1A1A1B;
  /*margin-bottom: 50px;*/
  /*aspect-ratio: 16/9;*/
}
#panzoom {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}


#grid {
  display: block;
  background: #fff;
  image-rendering: pixelated;
  }

header {
  /*margin-bottom: 50px;*/
}
#colorpicker {
  width: 100px;
  height: 30px;
}

#colorlabel {
  font-weight: bold;
}

.headercontrols {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: 20px;
}
#controlsbtn {
  width: 100px;
  height: 30px;
  font-weight: bold;
}

.logo {
  font-weight: bold;
  text-decoration: none;
  white-space: nowrap;
}
#wrapper {
  display: flex;
  align-items: center;
}

.main-navigation {
  display: flex;
  justify-content: center;
  align-items: center;
}

#timer {
  display: none;
}

#timer.visible {
  display: block;
  font-size: 16px;
  font-weight: bold;
}

.toggle {
  cursor: pointer;
  display: inline-block;
  margin-left: 15px;
}

.toggle-switch {
  display: inline-block;
  background: #ccc;
  border-radius: 16px;
  width: 58px;
  height: 32px;
  position: relative;
  vertical-align: middle;
  
}
.toggle-switch:before, .toggle-switch:after {
  content: "";
}
.toggle-switch:before {
  display: block;
  background: linear-gradient(to bottom, #fff 0%, #eee 100%);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);
  width: 24px;
  height: 24px;
  position: absolute;
  top: 4px;
  left: 4px;
  transition: left 0.25s;
}
.toggle:hover .toggle-switch:before {
  background: linear-gradient(to bottom, #fff 0%, #fff 100%);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5);
}
.toggle-checkbox:checked + .toggle-switch {
  background: #56c080;
}
.toggle-checkbox:checked + .toggle-switch:before {
  left: 30px;
}

.toggle-checkbox {
  position: absolute;
  visibility: hidden;
}

.toggle-label {
  margin-left: 5px;
  position: relative;
  top: 2px;
  font-weight: bold;
}

