/* Main */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
cursor: url('img/cursor/cursor.png') 16 16, auto;
}

body, html {
height: 100%;
overflow: hidden;
font-family: "Anka Coder Narrow", Courier, monospace;
color: white;
scroll-behavior: smooth;
}

a, button {
  cursor: url('img/cursor/pointer.png') 16 16, pointer;
}

.aff-marquee > a > img {
   cursor: url('img/cursor/pointer.png') 16 16, pointer;
   width: 88px;
   height: 31px;
}

@font-face {
  font-family: 'Anka Coder Narrow';
  src: url(fonts/AnkaCoder-C75-r.ttf) format('truetype');
}

@font-face {
  font-family: 'DJB Get Digital';
  src: url(fonts/DJB-Get-Digital.ttf) format('truetype');
}

h1, h2, h3, h4, h5 {
    font-family: 'DJB Get Digital', Courier, monospace;
    font-weight: normal;
    text-transform: uppercase;
}
h1 {
    font-size: 2.4em;
    line-height: 0.8;
    margin:4px 0;
}

h3 {
    margin-bottom: 4px;
    margin-top: 10px;
}

small {
  margin: 0;
}

li {
    margin: 4px 2px;
    list-style: disc;
}

ul > ul {
  margin-left: 24px;
}

a {
    color: white;
}

li:hover {
    opacity: 0.8;
    animation: wiggle 0.3s linear infinite;
}

@keyframes wiggle {
  0% { transform: translate(2px, 0); }
  50% { transform: translate(-2px, 0); }
  100% { transform: translate(2px, 0); }
}


/* Background */

.parallax-container {
position: relative;
width: 100vw;
height: 100vh;
}

.background-image {
position: absolute;
width: 110%;
height: 110%;
top: -5%;
left: -5%;
background-image: url('img/bg.jpg');
background-size: cover;
background-position: center;
background-repeat: no-repeat;
transition: transform 0.2s ease-out;
transform-origin: center center;
z-index: -2;
}

.computer-gif {
position: absolute;
pointer-events: none;
z-index: -1;
}

.computer-gif img {
width: 100%;
height: 100%;
object-fit: contain;
}

/* Content */

.content-container {
position: absolute;
display: flex;
width: 100vw;
height: 100vh;
top: 0;
left: 0;
padding: 7vh 0;
z-index: 3;
justify-content: center;
align-items: flex-start;
overflow: scroll;
}

.mega-mage {
    position: absolute;
    bottom: -7vh;
    left: 23%;
    z-index: 10;
    height: 55vh;
    width: auto;
    object-fit: cover;
    transition: 1s;
}

.mega-mage:hover {
    opacity: 0;
    pointer-events: none;
}

@keyframes fade {
    from { opacity: 1; }
    to { opacity: 0; }
}



/* Glass Container thanks to this codepen: https://codepen.io/samarkandiy/pen/MYwQwZZ */

.glass-container {
  position: relative;
  display: flex;
  width: 80vw;
  height: 145vh;
  background: transparent;
  border-radius: 1.5rem;
  overflow: scroll;
  box-shadow: 0 6px 6px rgba(0, 0, 0, 0.2), 0 0 20px rgba(0, 0, 0, 0.1);
}

.glass-filter {
  position: absolute;
  inset: 0;
  z-index: 0;
  backdrop-filter: blur(1px);
}

.glass-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  background: rgba(255, 255, 255, 0.25);
}

.glass-specular {
  position: absolute;
  inset: 0;
  z-index: 5;
  border-radius: inherit;
  overflow: hidden;
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.75),
    inset 0 0 5px rgba(255, 255, 255, 0.75);
}

/* Grid */

.glass-content {
  position: relative;
  width: 100%;
  height: 145vh;
  z-index: 6;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(14, 1fr);
  gap: 0.5rem;
  padding: 1rem;
}

.div-intro {
  /* mage intro */
  grid-column: span 6 / span 6;
  grid-row: span 2 / span 2;
  background: black;
  box-shadow: inset -1px -1px #ffffff, inset 1px 1px #0a0a0a, inset -2px -2px #dfdfdf, inset 2px 2px #808080;
  padding: 4px 12px 12px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mage-intro {
  position: relative;
}

.mage-intro2 {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: end;
}

.mage-intro-text {
  overflow: hidden;
  white-space: nowrap;
  margin: 0;
  line-height: 1.5;
}

.text1 {
  animation: type1 6s steps(60, end) forwards;
}

.text2 {
  animation: type2 12s steps(60, end) forwards;
}

.text3 {
  animation: type3 20s steps(60, end) forwards;
}

.text3::after {
    content: '_';
    animation: blink-caret 0.5s infinite;
}

/* Typing animations */
@keyframes type1 {
  0% { width: 0 }
  25% { width: 0 }
  100% { width: 100% }
}

@keyframes type2 {
  0% { width: 0 }
  50% { width: 0 }
  100% { width: 100% }
}

@keyframes type3 {
  0% { width: 0 }
  80% { width: 0 }
  100% { width: 100% }
}

/* Cursor movement animations */
@keyframes cursor-move1 {
  from {
    left: 0;
    top: 0;
  }
  to {
    left: 100%;
    top: 0;
  }
}

@keyframes cursor-move2 {
  from {
    left: 100%;
    top: 0;
  }
  to {
    left: 100%;
    top: 1.5em; /* Move to second line */
  }
}

@keyframes cursor-move3 {
  from {
    left: 100%;
    top: 1.5em;
  }
  to {
    left: 100%;
    top: 3em; /* Move to third line */
  }
}

/* Blinking cursor */
@keyframes blink-caret {
  from, to { opacity: 1; }
  50% { opacity: 0; }
}

.div-browser {
    /* code snippet button */
    grid-column: span 3 / span 3;
    grid-row: span 2 / span 2;
    grid-column-start: 1;
    background-image: url('img/stamp173.gif');
    background-size: 100% 100%;
    background-position: center;
    /* box-shadow: inset -1px -1px #ffffff, inset 1px 1px #0a0a0a, inset -2px -2px #dfdfdf, inset 2px 2px #808080; */
    padding: 20px;
}

.browser-list {
    overflow-y: auto;
  overflow: -moz-scrollbars-vertical; 
  overflow-x: hidden;
}

.browser-list > p {
  margin-top: 8px;
}

.div-cat {
    /* cat of the day */
    grid-column: span 3 / span 3;
    grid-row: span 3 / span 3;
    grid-column-start: 1;
    /* grid-row-start: 3; */
    background-image: url('img/tv-static.webp');
    background-size: contain;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-content: space-between;
    padding: 4px 12px;
    text-shadow: -1px -1px black, -2px -2px black;
    box-shadow: inset -2px -2px #0a0a0a,inset 1px 1px #0a0a0a,inset 2px 2px #fff,inset -3px -3px grey,inset 3px 3px #dfdfdf;
}

.cat-img {
    width:100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    box-shadow: inset -1px -1px #ffffff, inset 1px 1px #0a0a0a, inset -2px -2px #dfdfdf, inset 2px 2px #808080;
}

.div-snippets {
  /* add-on button */
  grid-column: span 3 / span 3;
  grid-row: span 1 / span 1;
  grid-column-start: 4;
  grid-row-start: 4;
  background-image: url('img/fish.gif');
  background-position: center;
  background-size: 103% 103%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: inset -1px -1px #ffffff, inset 1px 1px #0a0a0a, inset -2px -2px #dfdfdf, inset 2px 2px #808080;
}

.div-snippets > h1 > a {
  text-shadow:  2px 2px 0px #d5d5d5, 
      4px 4px 0px rgba(219, 234, 14, 0.2);
  text-decoration: none;
}

.div-snippets > h1 > a:hover {
  opacity: 0.8;
}

.div-mp3 {
  /* mp3 player */
  grid-column: span 3 / span 3;
  grid-row: span 1 / span 1;
  grid-column-start: 4;
  grid-row-start: 3;
}

.div-chat {
    /* chat */
    grid-column: span 3 / span 3;
    grid-row: span 6 / span 6;
    grid-column-start: 4;
    /* grid-row-start: 4; */
    overflow: visible !important;
    box-shadow: inset -1px -1px #ffffff, inset 1px 1px #0a0a0a, inset -2px -2px #dfdfdf, inset 2px 2px #808080;
    background: rgba(255, 255, 255, 0.25);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 6px;
}

.div-webring {
    /* webring widget */
    grid-column: span 3 / span 3;
    grid-row: span 2 / span 2;
    grid-column-start: 1;
    /* grid-row-start: 6; */

    background: green;
    box-shadow: inset -1px -1px #ffffff, inset 1px 1px #0a0a0a, inset -2px -2px #dfdfdf, inset 2px 2px #808080;
    /* text-shadow: 0 0 #222; */
    text-shadow: 0.7px 0.7px 0px #222;
    padding: 0 4px 6px 4px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.div-webring-join {
    grid-column: span 3 / span 3;
    grid-row: span 1 / span 1;
    grid-column-start: 1;
    /* grid-row-start: 8; */
    background: black;
    box-shadow: inset -1px -1px #ffffff, inset 1px 1px #0a0a0a, inset -2px -2px #dfdfdf, inset 2px 2px #808080;
    padding: 4px 12px 12px 12px;
    border-radius: 10px;
}

.div-library {
  /* library */
  grid-column: span 6 / span 6;
  grid-row: span 8 / span 8;
  grid-column-start: 7;
  grid-row-start: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  height: 100%;
}

.bar-img {
  width: 100%;
  height: 13rem;
  margin-bottom: 0.5rem;
  box-shadow: inset -1px -1px #ffffff, inset 1px 1px #0a0a0a, inset -2px -2px #dfdfdf, inset 2px 2px #808080;
  background-image: url('img/bar.gif');
  background-size: contain;
  flex-shrink: 0;
  padding: 1.5rem;
  border-radius: 1.5rem;
  overflow: hidden;
}

.bar-img > img {
  position: absolute;
  height: 70px;
  margin-top: -38px;
  right: 4rem;
}

.announcement {
  padding: 22px;
  line-height: 1.3;
  color: black !important;
  border-radius: 1.5rem;
  overflow: hidden;
  height: 100%;
}

.metallic {
  background: #fff;
  background-image:
    linear-gradient(165deg,
    rgb(99, 99, 99)3%,
    rgb(36, 36, 36, 0.4)6%,
    rgb(133, 131, 131)8%,
    rgb(160, 160, 160, 0.6)10%,
    rgb(255, 255, 255, 0.4)14%,
    rgb(199, 199, 199, 0.4)16%,

    rgb(160, 160, 160)30%,
    rgb(255, 255, 255, 0.4)49%,
    rgb(199, 199, 199)50%,
    rgb(255, 255, 255, 0.4)52%,

    rgb(199, 199, 199, 0.4)58%,
    rgb(160, 160, 160)70%,
    rgb(255, 255, 255, 0.4)88%,

    rgb(133, 131, 131, 0.6)90%,
    rgb(99, 99, 99, 0.1)95%,
    rgb(133, 131, 131)95.5%,
    rgb(87, 87, 87));

    box-shadow:
    inset
    0.6rem 0.8rem 1rem
    rgb(231, 231, 231),

    0.4rem 0.4rem 0.9rem
    rgb(0, 0, 0),

    -0.04rem -0.04rem 0.6rem
    rgb(0, 0, 0),

    -0.3rem -0.02rem 0.4rem
    rgb(255, 255, 255),

    inset
    -0.4rem -0.6rem 0.12rem
     rgba(0, 0, 0, 0.4);
}

.library-container {
  width: 100%;
  flex: 1;
  min-height: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  background-image: url('img/starry-bg.gif');
  box-shadow: inset -2px -2px #0a0a0a, inset 1px 1px #0a0a0a, inset 2px 2px #fff, inset -3px -3px grey, inset 3px 3px #dfdfdf;
}

.library-content {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background: rgba(0, 113, 188, 0.65);
  padding: 0.5rem;
  overflow: hidden;
}

.library-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(auto-fit, minmax(0, 1fr));
  gap: 12px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow: -moz-scrollbars-vertical; 
  overflow-x: hidden;
  padding-left: 12px;
  padding-right: 4px;
}

.library-list-icon {
    margin-right:12px;
    margin-bottom:-3px;
}

.div-pokemon {
    /* pokemon and affiliates */
    grid-column: span 6 / span 6;
    grid-row: span 2 / span 2;
    grid-column-start: 7;
    grid-row-start: 9;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 0.5rem;
}

.pokemon-container {
    height: 100%;
    aspect-ratio: 1.25 / 1;
    max-width: 35%;
    background: black;
    /* border: 1px solid white; */
    box-shadow: inset -2px -2px #0a0a0a,inset 1px 1px #0a0a0a,inset 2px 2px #fff,inset -3px -3px grey,inset 3px 3px #dfdfdf;
    background-image: url('img/matrix-bg.gif');
    background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 0.25rem;
    position: relative;
}

.poke-img {
  max-height: 90px;
  width: auto;
}

.poke-icon {
  position: absolute;
  width: 37px;
  height: 25px;
  pointer-events: none;
}

.top-left {
  top: -9px;
  left: -15px;
}

.top-right {
  top: -9px;
  right: -15px;
}

.bottom-left {
  bottom: -6px;
  left: -15px;
}

.bottom-right {
  bottom: -6px;
  right: -15px;
}



.aff-container {
    max-height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-content: space-between;
    gap: 0.2rem;
    position: relative;
    overflow: hidden;
}

.aff-banner {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.aff-content {
    position: relative;
    height: 85%;
    width: 90%;
    background: silver;
    box-shadow: inset -1px -1px #ffffff, inset 1px 1px #0a0a0a, inset -2px -2px #dfdfdf, inset 2px 2px #808080;
    /* text-shadow: 0 0 #222; */
    text-shadow: 0.7px 0.7px 0px #222;
    padding: 0 4px 6px 4px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    overflow: hidden;
    contain: layout;
}

.aff-marquee-wrapper {
    overflow:hidden;
}

.aff-marquee {
    width: max-content;
    min-width: 100%;
    height: 31px;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 5px;
    animation: scroll-left 40s linear infinite alternate;
}

.aff-marquee > a > img:hover {
   scale: 0.95;
}

@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-80%); }
            }

.aff-icon {
  position: relative;
  width: 70px;
  height: auto;
  pointer-events: none;
  margin-left: -2rem;
  z-index: 10;
}

.div-sudoku {
    grid-column: span 3 / span 3;
    grid-row: span 4 / span 4;
    grid-column-start: 1;
    grid-row-start: 11;
    background: rgba(255, 255, 255, 0.4);
    box-shadow: inset -2px -2px #ffffff, inset 2px 2px #0a0a0a, inset -3px -3px #dfdfdf, inset 3px 3px #808080;
    overflow: hidden;
    padding: 10px;

}

.div-video {
    grid-column: span 6 / span 6;
    grid-row: span 4 / span 4;
    grid-column-start: 4;
    grid-row-start: 11;
    background: silver;
    display: flex;
    align-items: center;
    justify-content: center;
  box-shadow: inset -2px -2px #0a0a0a, inset 1px 1px #0a0a0a, inset 2px 2px #fff, inset -3px -3px grey, inset 3px 3px #dfdfdf;

}

.div-aquarium {
    grid-column: span 3 / span 3;
    grid-row: span 4 / span 4;
    grid-column-start: 10;
    grid-row-start: 11;
    background-image: url('img/aquarium.webp');
    background-size: cover;
    box-shadow: inset -4px -4px #ffffff, inset 4px 4px #0a0a0a, inset -6px -6px #dfdfdf, inset 6px 6px #808080;

}


/* RESPONSIVE CSS */

/* 2XL screen */

@media only screen and (min-width: 1536px) {
    .glass-container {
        max-width: 1400px;
    }

}

/* Small screen */

@media only screen and (max-width: 1300px) {
    .glass-container, .glass-content {
        width: 90vw;
    }

    .mega-mage {
        left: 15%;
    }

    h1 {
      font-size: 1.8rem;
    }

    .poke-img {
    max-height: 100px;
    width: auto;
}

}

/* Tablet */
@media only screen and (max-width: 840px) {
.glass-container, .glass-content {
    width: 95vw;
    height: 220vh;
}

h1 {
    font-size: 1.5em;
    margin-bottom: 0;
}

h3 {
    font-size: 16px;
}

.library-list-icon {
    width: 18px;
    height: 18px;
    margin-bottom: -2px;
    margin-right: 8px;
}

li {
    font-size: 14px;
}

.mega-mage {
    bottom: 1%;
    left: 3%;
    height: 20vh;
    width: 10vw;
    pointer-events: none;
}

.glass-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(20, 1fr);
    gap: 8px;
}

.div-intro {
    grid-column: span 4 / span 4;
    grid-row: span 1 / span 1;
}

.div-mp3 {
    grid-column: span 2 / span 2;
    grid-row: span 1 / span 1;
    grid-row-start: 2;
    grid-column-start: 1;
}

.div-browser {
    grid-column: span 2 / span 2;
    grid-row: span 2 / span 2;
    grid-row-start: 3;
    grid-column-start: 1;
}

.div-snippets {
    grid-column: span 2 / span 2;
    grid-row: span 1 / span 1;
    grid-row-start: 2;
    grid-column-start: 3;
}

.div-cat {
    grid-column: span 2 / span 2;
    grid-row: span 4 / span 4;
    grid-row-start: 5;
    grid-column-start: 1;
}

.div-chat {
    grid-column: span 2 / span 2;
    grid-row: span 4 / span 4;
    grid-column-start: 3;
    grid-row-start: 12;
}

.div-sudoku {
    grid-column: span 2 / span 2;
    grid-row: span 4 / span 4;
    grid-column-start: 1;
    grid-row-start: 12;
    overflow: scroll;
    padding: 20px;
}

.div-webring {
    grid-column: span 2 / span 2;
    grid-row: span 2 / span 2;
    grid-row-start: 9;
    grid-column-start: 1;
}

.div-webring-join {
    grid-column: span 2 / span 2;
    grid-row: span 1 / span 1;
    grid-row-start: 11;
    grid-column-start: 1;
}

.div-library {
    grid-column: span 2 / span 2;
    grid-row: span 9 / span 9;
    grid-row-start: 3;
    grid-column-start: 3;
}

.div-pokemon {
    grid-column: span 4 / span 4;
    grid-row: span 2 / span 2;
    grid-row-start: 16;
    grid-column-start: 1;
}

.div-video {
    grid-column: span 3 / span 3;
    grid-row: span 3 / span 3;
    grid-row-start: 18;
    grid-column-start: 1;
}

.div-aquarium {
    grid-column: span 1 / span 1;
    grid-row: span 3 / span 3;
    grid-row-start: 18;
    grid-column-start: 4;
}


.aff-content {
    font-size: 13px;
    color: black;
    text-shadow: none;
    width: 95%;
}

.aff-icon {
    width: 70px;
}

.announcement {
  overflow: scroll;
  font-size: 0.9rem;
}


}

/* Smartphone */
@media only screen and (max-width: 600px) {
* {
    font-size: 14px;
}
.body, html {
    overflow: auto;
    background-image: url('img/bg.jpg');
}

h1 {
  font-size: 1.7rem !important;
}

.div-snippets > h1 > a {
  font-size: 1.7rem;
}

.content-container {
  padding: 4vh 0;
}

.parallax-container {
    display: none;
}

.mega-mage {
    position: fixed;
    bottom: 0;
    left: 2px;
}

.glass-container, .glass-content {
    height: 230vh;
}

.glass-content {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(20, 1fr);
    gap: 8px;
}

.mage-intro > p {
  font-size: 11px;
}

.div-mp3 {
  grid-row-start: 3;
  grid-column-start: 3;
}


.div-browser {
  grid-column-start: 1;
  grid-row-start: 2;
  padding: 22px 15px;
}

.div-browser > div {
  padding: 3px !important;
}

.div-snippets {
  grid-row-start: 2;
  grid-column-start: 3;
}

.div-library {
    grid-column: span 4 / span 4;
    grid-row: span 5 / span 5;
    grid-row-start: 4;
    grid-column-start: 1;
}

.div-cat {
  grid-row-start: 10;
  grid-row: span 3 / span 3;
  grid-column: span 4 / span 4;
}

.div-sudoku {
  grid-row-start: 12;
  grid-row: span 4 / span 4;
  grid-column: span 4 / span 4;
}

.div-chat {
 display: none;
}

.div-webring {
  grid-row-start: 16 !important;
  grid-row: span 1 / span 1;
  grid-column-start: 1;
}

.div-webring-join {
  grid-row-start: 16 !important;
  grid-row: span 1 / span 1;
  grid-column-start: 3;
}

.div-pokemon {
  grid-row-start: 17 !important;
  grid-row: span 1 / span 1;
  grid-column: span 4 / span 4;
  grid-column-start: 1;
}

.div-aquarium {
  display: none;
}

.div-video {
  grid-column: span 4 / span 4;
  grid-row-start: 18;
}

.aff-icon {
    width: 20%;
}


.poke-img {
  max-height: 70px;
  width: auto;
}



}
