@media (-webkit-device-pixel-ratio: 1.25) {
  * {
    zoom: 0.98;
  }
}

@media (-webkit-device-pixel-ratio: 1.50) {
  * {
    zoom: 0.96;
  }
}

/*============[ MAIN ]============*/

html,
body
{
    width: 100%;
    height: 100%;
    min-height:  100vh;
    min-width: 100vw;
    scrollbar-width: thin;
    overflow: hidden;


    background-image: url("../img/bg.png");
    background-repeat: no-repeat;
    background-size: cover;
    z-index: -10;
    background-position: bottom right;    
}







/* Webkit browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 4px; /* Set the scrollbar width */
}

::-webkit-scrollbar-thumb {
    background-color: var(--light-gray-2); /* Default color for the thumb (clickable part) */
    border-radius: 4px; /* Rounded corners for the thumb */
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--bg-gray-1); /* Color when thumb is hovered */
}

::-webkit-scrollbar-thumb:active {
    background-color: var(--bg-gray-1); /* Color when thumb is active (clicked) */
}

::-webkit-scrollbar-track {
    background-color: transparent; /* Set the track background to transparent */
    /* or use black if you prefer */
    /* background-color: black; */
}

/* Firefox */
* {
    scrollbar-width: thin; /* Thin scrollbar */
    scrollbar-color: var(--light-gray-2) transparent; /* Thumb color and track color */
}

*::-webkit-scrollbar-track {
    background-color: transparent; /* Transparent background for WebKit browsers */
}


/*============[ UI ]============*/




header
{
  height: 112;
}


main
{
    
    height: calc(100vh - 112px);
    flex-direction: column;
}





#bg
{
  position: absolute;
  width: calc(100% - 50px);
  height: calc(100% - 50px);
  z-index: 10000;
  display: block;
  padding: 25px;
  background-color: var(--bg-gray-1);
  top: 0px;
  left: 0px;
  min-height:calc(100% - 100px);
  overflow: none;
  overflow-y: auto;
}



#bg > *
{
  position: relative;
  float: left;
  width: 100px;
  height: 100px;
  display: block;
  
  margin-top: 44px;
  margin-left: 10px;
  z-index: 1;


  background-image: 
    linear-gradient(var(--click-bg) 1px, transparent 1px),
    linear-gradient(90deg, var(--click-bg) 1px, transparent 1px);
  background-size: 20px 20px; /* Set grid size to 20px by 20px */ 
  border:thin solid var(--click-bg);

    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;  
    cursor: pointer;  
}

#bg > * > .icon
{
  position: relative;
  float: left;
  width: 100px;
  height: 100px;
  display: block;
  background-color: var(--light-gray-2);
  z-index: 1;
  pointer-events: none;
}

.icon_name
{
  position: absolute;
  top: -34px;
  left: 0px;
  background-color: var(--click-bg);
  color: var(--white);
  padding: 3px;
  display: block;
  font-size: 12px;
  border-radius: 5px;
}


#bg.nbg
{
  background-color: var(--black);
}


#bg.nbg > *
{
  background-image: none; 
}

#bg.nbg > div:nth-of-type(35),
#bg.nbg > div:nth-of-type(31),
#bg.nbg > div:nth-of-type(27),
#bg.nbg > div:nth-of-type(23),
#bg.nbg > div:nth-of-type(19),
#bg.nbg > div:nth-of-type(15),
#bg.nbg > div:nth-of-type(11),
#bg.nbg > div:nth-of-type(8),
#bg.nbg > div:nth-of-type(6),
#bg.nbg > div:nth-of-type(5),
#bg.nbg > div:nth-of-type(3)
{
  clear: left;
}



@media only screen and (min-width: 32em) {
/*512px*/
    
    
}
@media only screen and (min-width: 48em) {
/*768px*/
    

}
  

@media only screen and (min-width: 61.25em) {
/*980px*/
    

    

}
@media only screen and (min-width: 75em) {
/*1200px*/



}
@media only screen and (min-width: 85em) {

     
    
    
    
}
@media only screen and (min-width: 95em) {

    
    
    
}
@media only screen and (min-width: 100em) {
	/*1600px*/
    
}
@media only screen and (min-width: 110em) {

    
}
@media only screen and (min-width: 120em) {
/*1920px*/	
 
}
@media only screen and (min-width: 160em) {
/*2560px*/	
 
}