@font-face {
  font-family: "ChicagoFLF";
  src:
    local("ChicagoFLF"),
    url("ChicagoFLF.ttf?#iefix") format("truetype");
}

@font-face {
	font-family: "uni";
	src: url("uni.ttf?#iefix") format("truetype");
}


* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 10px;
  font-family: "uni", 'ChicagoFLF', sans-serif;
  font-smooth: none;
  color: darkslategray;
  /*background-image: url("sky1.jpg");*/
  background: linear-gradient(to bottom, rgb(37, 86, 157), rgba(112, 170, 235));
  background-size: cover;
  cursor: url("sugarshrew.png"), auto;
  overflow: hidden;
  height: 100vh;
}

body::-webkit-scrollbar {
  width: 1em;
}
 
body::-webkit-scrollbar-track {
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
}
 
body::-webkit-scrollbar-thumb {
  background-color: blue;
  outline: 1px solid blue;
}

img {
  image-rendering: auto;
  image-rendering: crisp-edges;
}

/* ==========Container - now draggable and resizable========= */
.container {
  display: flex;
  flex-wrap: wrap;
  position: absolute;
  border: 3px outset lightgray;
  outline-color: gray;
  outline-offset: 0px;
  background-color: lightgray;
  z-index: 1;
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.4),
    0 8px 32px rgba(0, 0, 0, 0.5),
    inset 0 0 0 1px rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  z-index: 10;
  background: rgba(255, 255, 255, 0.25);
}

.container.active {
  z-index: 100;
}

/* ==========window content wrapper========= */
.window-content {
  display: flex;
  flex-wrap: wrap;
  padding: 5px;
  gap: 5px;
  overflow: auto;
  max-height: 98%;
  max-width: 100%;
  width: 100%;
}

.window-content > .full {
  flex: 1 1 100%;
  width: 100%;
}
.small { flex: 1 1 9%; min-width: 150px; }
.large { flex: 1 1 82%; }
.full {flex: 1 1 100%; }
.half { flex: 1 1 49%; }


.close {
  width: 20px;
  height: 20px;
  background-color: rgba(256, 0, 0, .5);
  position: absolute;
  right: 5px;
  top: 5px;
  cursor: pointer;
  border: 2px outset rgba(256, 200, 200, .5);
}

.close:hover {
  transition: opacity 0.2s;
  border-style: inset;
          }


.close:active {
  border-style: inset;
}

header {
  backdrop-filter: blur(10px);
  z-index: 10;
  background: linear-gradient(to right, rgba(256,256,256,.35), rgba(0,0,0,0));
  background-size: cover;
  background-position: center;
  width: 100%;
  height: 30px;
  position: relative;
  cursor: move;
  user-select: none;
}

header.active {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  z-index: 10;
}

header span {
  font-family: "chicagoflf";
  font-size: 1rem;
  position: absolute;
  bottom: 5px;
  left: 10px;
  color: white;
  pointer-events: none;
}

nav {
  padding: 10px;
}

nav div {
  text-align: left;
  font-size: 1rem;
  margin: 5px 5px 10px 5px;
}

nav a {
  display: block;
  margin: 5px;
  background: linear-gradient(to right, rgba(256,256,256,.75), rgba(0,0,0,0));
  padding: 2px 7px;
  text-decoration: none;
  cursor: pointer;
}

nav a:link, nav a:visited { 
  color: darkslategray;
}

nav a:hover, nav a:focus {
  background: linear-gradient(to right,rgba(256,256,256,.35), rgba(0,0,0,0));
}

/* ==========taskbar========= */
.taskbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 5px;
  z-index: 1000;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.25);
}

.taskbar > div {
  padding: 10px;
  cursor: pointer;
}


section {
  background-color: rgb(256, 256, 256, .5);
  padding: 10px;
}

footer {
  text-align: center;
  margin-bottom: 5vw;
  font-size: 0.8rem;
}

footer a { 
  text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "chicagoflf";
  margin: 5px;
  line-height: 1;
}

h1 { 
  font-size: 1.4rem;
}

h2 { 
  font-size: 1.25rem;
}

h3 { 
  font-size: 1rem;
}

h4 { 
  font-size: 1rem;
  color: white;
}

h6 { 
  font-size: .8rem;
}

p {
  margin: 5px;
  line-height: 1.2;
}


a:hover, a:focus {
  font-style: italic;
  font-weight: bold;
}

a:visited {
  color: purple;
}

/* ===========Prevents overflow on smaller screens=========== */
img { max-width: 100%; }
pre { overflow-x: auto; }

/* ==========image hover========= */
.imgtxt {
  position: relative;
  display: inline-block;
  width: fit-content;
  height: fit-content;
}

.imgtxt span {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 99;
  opacity: 0;
  transform: translate(-50%, -50%);
  font-size: 1rem;
  color: #fff;
  filter:
    drop-shadow(2px 2px 0 black)
    drop-shadow(-1px 1px 0 black)
    drop-shadow(1px -1px 0 black)
    drop-shadow(-1px -1px 0 black);
  pointer-events: none;
}

.imgtxt:hover span,
.imgtxt:focus span {
  opacity: 1;
}

.imgtxt:hover img,
.imgtxt:focus img {
  transform: rotate(3deg);
}

.tasktext {
  position: relative;
  display: inline-block;
  width: fit-content;
  height: fit-content;
}

.tasktext span {
  position: absolute;
  top: -30px;
  left: 50%;
  z-index: 99;
  opacity: 0;
  transform: translateX(-50%);
  font-size: 1rem;
  font-family: "chicagoflf";
  color: #fff;
  padding: 3px 8px;
  white-space: nowrap;
  pointer-events: none;
  transition: opacity 0.2s;
}

.tasktext:hover span,
.tasktext:focus span {
  opacity: 1;
}

.tasktext:hover img,
.tasktext:focus img {
  transform: scale(1.2);
}

/* Image container */
.image {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}