@font-face {
  font-family: 'NeueBusanComputer';
  src: url('NeueBusanComputer.woff') format('woff');
}

:root {
    --background-color: #F5F5F5; /*org:d8d8d8*/
    --text-color: #16161A;
    --link-color: var(--text-color);
    --filter: none;
    
    --body-font-size: 16px; /*org 15px;*/
    --body-line-height: 20px; /*org 17px;*/
    
    --header-font-size: 16px;
    --header-line-height: 20px;
    
    --footer-font-size: 21px;
    --footer-line-height: 22px;
    
    --japanese-font-size: 14px;
    --japanese-line-height: var(--header-line-height);
    
    --side-margin: 35px;
    
    --left-side-width: 30%; /*38%*/
    --right-side-width: calc(100% - var(--left-side-width));
    
    --header-margin-top: 17px;
    --header-margin-bottom: 17px;
    --header-inner-height: calc(var(--header-line-height) * 2);
    --header-height: calc(var(--header-margin-top) + var(--header-inner-height) + var(--header-margin-bottom));
    
    --footer-margin-top: 17px;
    --footer-margin-bottom: 17px;
    --footer-inner-height: var(--footer-line-height);
    --footer-height: calc(var(--footer-margin-top) + var(--footer-line-height) + var(--footer-margin-bottom));
    --footer-background-color-with-blur: #f5f5f540;
    --footer-background-color-no-blur: var(--background-color);
}


@media only screen and (max-width: 900px) {

    :root {
        --body-font-size: 12px;
        --body-line-height: 15px;
        
        --header-font-size: 12px;
        --header-line-height: 14px;
        
        --footer-font-size: 16px;
        --footer-line-height: 20px;
        
        --japanese-font-size: 9px;
        --japanese-line-height: 11px;
        
        --side-margin: 12px;
         
        --header-margin-top: 12px;
        --header-margin-bottom: 8px;
        
        --footer-margin-top: 19px;
        --footer-margin-bottom: 22px;
        --footer-inner-height: var(--footer-line-height);
    }
    
    .desktop {
        display: none;
    }

}

@media only screen and (min-width: 901px) {

    .mobile {
        display: none;
    }

}

body {
    background: var(--background-color);
	color: var(--text-color);
	margin: 0;
	border: 0;
	-moz-text-size-adjust: 100%;
	-ms-text-size-adjust: 100%;
	-webkit-text-size-adjust: 100%;
	-webkit-font-smoothing: antialiased; /* renders thinner in safari on mac */
	text-size-adjust: 100%;
	font-family: 'NeueBusanComputer', 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
	font-size: var(--body-font-size);
	line-height: var(--body-line-height);
}

a {
    color: var(--link-color);
    text-decoration: none;
}

a:hover {
    color: var(--link-color);
    text-decoration: underline;
}

p, h1 {
    margin: 0;
    padding: 0;
}

.name {
    text-align: right;
}

header {
    position: fixed;
	top: 0;
	left: 0;
	width: 100%;
    padding-top: var(--header-margin-top);
    padding-bottom: var(--header-margin-bottom);
    height: var(--header-inner-height);
    background: var(--background-color);
    font-size: var(--header-font-size);
    line-height: var(--header-line-height);
    z-index: 1;
}

header, header section {
    display: flex;
    flex-direction: row;
    white-space: nowrap;
}

header section {
    justify-content: space-between;
    width: calc(var(--right-side-width) - var(--side-margin));
}

header h1 {
    font-size: var(--header-font-size);
    line-height: var(--header-line-height);
    font-weight: normal;
    width: calc(var(--left-side-width) - var(--side-margin));
    padding-left: var(--side-margin);
}

#info {
    position: fixed;
	top: 0;
	left: 0;
	width: var(--left-side-width);
	height: 100%; /* not 100vh because of ipad and android tablets */
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
}

main {
    margin-top: var(--header-height); /* this is behind header */
	margin-bottom: var(--footer-height); /* this is behind footer */
	margin-left: var(--side-margin);
	margin-right: var(--side-margin);
	padding-bottom: 10px;
	overflow-y: auto;
    overflow-x: hidden;
	scrollbar-width: none; /* hide scrollbar */
}

main::-webkit-scrollbar {
    display: none; /* hide scrollbar */
}

.japanese {
    font-size: var(--japanese-font-size);
    line-height: var(--japanese-line-height);
}

main p + p, .deco {
    margin-top: var(--body-line-height);
}

.deco {   /* svg decoration */
    width: 100%;
    max-width: 500px;
    min-width: 320px;
}

footer {
    position: fixed;
    bottom: 0;
    left: 0;
    height: var(--footer-inner-height);
    padding-top: var(--footer-margin-top);
    padding-bottom: var(--footer-margin-bottom);
    overflow: hidden;
    white-space: nowrap;
    font-size: var(--footer-font-size);
    line-height: var(--footer-line-height);
}

footer p {
    display: inline-block;
    animation: scroller-animation 30s linear infinite;
   width: 115em; /* SCROLLER SCROLLL MARQUEE  set this to be a little wider than the footer text */ 
}

@keyframes scroller-animation {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-100%);
    }
}

#footer-background-blur {
    position: fixed;
    bottom: 0;
    left: var(--left-side-width);
    width: calc(100% - (var(--left-side-width) + var(--side-margin))); /* width of #gallery */
    height: var(--footer-height);
    background-color: var(--footer-background-color-with-blur);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

@supports not ((-webkit-backdrop-filter: none) or (backdrop-filter: none)) {
    /* firefox does not support blur */
    #footer-background-blur {
        background-color: var(--footer-background-color-no-blur);
    }
}


model-viewer {
    display: flex;
    width: 100%;
    height: 900px;
    object-fit: contain;
    background-color: transparent;
    --poster-color: transparent;
    filter:saturate(160%) brightness(106%);
    z-index: 3;
  }

#gallery {
    margin-top: var(--header-height); /* this is behind header */
    margin-bottom: var(--footer-height); /* this is behind footer */
    margin-left: var(--left-side-width); /* this is behind #info */
    margin-right: var(--side-margin);
}

img {
    width: 100%;
    height: auto;
    object-fit: contain;
    margin: 0;
}

article {
    display: flex;
    flex-direction: column;
    width 100%;
}


article + #bg {
    background-repeat: no-repeat;
    background-size: 100% auto;
    background-position: center;
    background-attachment: local;
}


article + article {
    margin-top: 15px;
}

article p {
    margin-top: 7px;
}

video {
    width: 100%;
    pointer-events: none;
    border: none;
}

.pixelated {
    image-rendering: pixelated;
  }

  .glow {
    filter:saturate(160%) brightness(106%);
      }


  #decodemo {
    position: fixed;
    top: -8%;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0;
      height: auto;
      width: 100%;
      display:none;
      justify-content: center;
      /*max-height: 100vh;*/
      opacity: 1;
      transition: .3s ease;
/* fixa sen     z-index: 1; */
      background-color: none;
  /*    filter:invert(42%) sepia(91%) saturate(7493%) hue-rotate(353deg) brightness(106%) contrast(131%);
      -webkit-filter:invert(42%) sepia(91%) saturate(7493%) hue-rotate(353deg) brightness(106%) contrast(131%);*/
    }

    #xxxtarget {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0;
    height: auto;
    width: 100%;
    display: none;
    opacity: 0;
    justify-content: center;
    transition: .3s ease;
    background-color: none;
    z-index: 50;
    
    }

    .show-xxxtarget {
        display: flex !important;
        opacity: 1 !important;
        transition: .3s ease;
      }

/*--------------------------------MOBILE BREAK POINT STARTS HERE ------------------------------*/

@media only screen and (max-width: 900px) 
{
      
      /* 
    .lazy {
        image-rendering: pixelated;
        }  
      
      &.loaded {
          image-rendering: auto;
      
        }
*/
    header {
        justify-content: space-between;
        /*border: 1px solid brown;
        padding-bottom: 100px;*/
        
    }
    
    header h1 {
        width: auto;
    }
    
    #info {
        position: static;
        width: 100%;
        height: auto;
    }
    
    main {
        margin-top: 60px;
        margin-bottom: 0px;
        padding-bottom: 0;
    }
    
    .deco {
        margin-left: var(--side-margin);
        width: calc(100% - var(--side-margin));
        min-width: 280px;
    }

    .stick {
        position: sticky;
        position: -webkit-sticky;
        background: var(--background-color);
        /* 1px removes a gap between the boxes that sometimes appeared on iphone pro max and edge on mac :( */
        top: calc(var(--header-height) - 1px);
        padding-top: 1px;
        width: 100%;
        /*max-width: 400px;*/
        min-width: 280px;
        padding-bottom: var(--side-margin);
        z-index: 3; 
      }
    
    header section, #info section {
        display: flex;
        flex-direction: row;
        justify-content: flex-end;
        flex-grow: 2;
        margin-right: var(--side-margin);
    }
    
    header section p, #info section p {
        text-align: right;
    }
    
    header section p + p, #info section p + p {
        /* right column has fixed width, so the title and japanese columns get the same width */
        width: 81px;
    }
    
    #info section {
        margin-top: var(--header-height);
    }
    
    #info section p {
        display: inline-block;
    }
    
    #gallery  {
        margin: 0;
        margin-bottom: var(--footer-height);
    }
    
    model-viewer {
        display: inline-block;
        width: 100vw;
        height: 70vh;
        background-color: transparent;
        --poster-color: transparent;
        filter:saturate(180%) brightness(106%);
        z-index: 3;
      }

    article + article {
        margin-top: 5px;
    }
    
    article p {
        margin-top: 2px;
        margin-bottom: 5px; /* extra space to the next image */
    }
    
    #footer-background-blur {
        /* behind gallery image */
        width: 100%;
        left: 0;
        margin: 0;
    }

    #decodemo {
        position: fixed;
        display: none;
        z-index: 10;
        top: 0;
        }


}