@font-face {
    font-family: "Windows XP";
    src: url("windows-xp-tahoma.ttf") format('truetype');
  }
@font-face {
    font-family: "Handwriting";
    src: url("Danielhandwriting-Regular.otf") format('opentype');
  }
  body {
    width: 100vw;
    height: 100vh;
    display: flex;
    margin: 0px;
    padding: 0px;
  }
  body {
    padding: 0px;
    margin: 0px;
    background-image: url("img/defaultbg.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: top;
    overflow: hidden;
    cursor: url(cursor.cur), default
  }
  h1{
    font-size: 56px;
    margin: 10px;
  }
  section#start {
    background-color: black;
    font-family: monospace;
    color: white;
    font-family: "Windows XP";
    border: 5px solid #e1ddd2;
    width: calc(100vw - 10px);
    height: calc(100vh - 10px);
    margin: 0px;
    font-weight: lighter;
    letter-spacing: 0.15cm;
    margin: 0px;
  }
  header{
    background-color: blue;
    height: 40px;
    display: flex;
    border-bottom: 5px solid #e1ddd2;
    letter-spacing: 0cm;
    font-size: 36px;
    align-items: center;
    padding: 0px 10px;
  }
  header img{
    width: 30px;
    height: 30px;
    margin: 0px 10px;
  }
  custom-icon-grid::part(iconGrid){
    display: flex;
    flex-wrap: wrap;
    position: relative;
    /* height: 100%; */
    max-width: 1200px;
    justify-content: start;
    align-items: start;
    gap: 0px;
    /* flex-direction: column; */
  }
  custom-icon-grid::part(dropSpot){
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
  }
  custom-icon::part(draggableLink) {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 7.5px;
    font-size: 20px;
    text-shadow: 1px 1px 2px black;
    color: white;
    font-family: Arial, Helvetica, sans-serif;
    text-align: center;
    text-decoration: none;
    cursor: url(select.cur), pointer;
  }
  custom-icon::part(iconImg) {
    width: 40px;
  }
  footer {
    position: absolute;
    bottom: 0;
    display: flex;
    width: 100%;
    background:linear-gradient(to bottom, #245DDA 0%, #3f8cf3 9%, #245DDA 18%, #245DDA 92%, #333 100%) center/cover no-repeat;
    align-items: center;
    justify-content: space-between;
    cursor: url(cursor.cur), default;
  }
  .menu{
    cursor: url(cursor.cur), default;
    height: 85%;
    width: 140px;
    text-align: center;
    justify-content: center;
    color: white;
    font-size: 36px;
    font-style: italic;
    text-shadow: 1px 1px 1px #333;
    font-family: Arial, Helvetica, sans-serif;
    padding: 5px 35px 5px 15px;
    display: flex;
    align-items: center;
    box-shadow: 0px 5px 10px #79ce71 inset;
    background: radial-gradient(circle, #5eac56 0%, #3c873c 100%) center / cover no-repeat;
    border-radius: 0px 20px 35px 0px;
    transform: skewX(-3deg);
    left: -5px;
    position: relative;
    gap: 10px;
  }
  .menu img{
    width: 50px;
    height: 50px;
  }
  #time {
    justify-self: flex-end;
    color: white;
    font-size: 18px;
    font-family: Arial, Helvetica, sans-serif;
    display: flex;
    height: 100%;
    width: 150px;
    padding: 5px 20px;
    align-items: center;
    justify-content: center;
  }
#projects-popup{
    width: 850px;
}
.popup{
  position: absolute;
  z-index: 9;
  text-align: center;
  border: 5px solid #245DDA;
  border-radius: 20px;
  background-color:  #efede0;
  height: 600px;
  overflow: hidden;
  display: none;
  width: 830px;
}

.popup-header {
  background:linear-gradient(to bottom, #245DDA 0%, #3f8cf3 9%, #245DDA 18%, #245DDA 92%, #333 100%) center/cover no-repeat;
  height: 40px;
  display: flex;
  letter-spacing: 0cm;
  font-size: 18px;
  align-items: center;
  padding: 0px 10px;
  color: white;
  font-family: monospace;
  font-family: "Windows XP";
  font-weight: lighter;
  letter-spacing: 0.01cm;
  justify-content: space-between;
}
.window-controls {
  display: flex;
  justify-content: space-between;
}
.window-controls span{
  border: 1px solid white;
  padding: 5px;
  border-radius: 5px;
  color: white;
  opacity: 0.95;
  display: inline-block;
  transform: scale(0.75);
  cursor: url(select.cur), pointer;
}
.window-controls span:last-child{
  background-color: red;
}
.first-letter {
  text-decoration: underline;
}
.popup-body {
  display: flex;
  flex-wrap: wrap;
}
.popup form{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  width: 100%;
  height: calc(100% - 40px);
  color: black;
}
.popup form .form-group {
  width: 100%;
  display: flex;
  justify-content: start;
  gap: 5px;
}
.form-group label{
  text-align: end;
  width: 25%;
}
.form-group input, .form-group textarea {
  width: 60%;
}
.form-group textarea {
  height: 100px;
}

#contact-popup .popup{
  height: 360px;
  width: 500px;
}
#contact-popup-header {
  width: unset;
}

form button {
  border-radius: 3px;
  padding: 3px 25px;
  border: 1px solid blue;
  font-family: 'Windows XP';
  font-size: medium;
  font-weight: 500;
}
.bar {
  background: linear-gradient(to bottom, #f1eee5 0%, #f9f8f0 9%, #f1eee5 18%, #f1eee5 92%, #d5d4bf 100%) center/cover no-repeat;
}
#menuBar {
  display: flex;
  justify-content: start;
  gap: 20px;
  padding: 10px 15px;
  font-family: 'Windows XP';
  font-size: larger;
  width: 90%;
  border-radius: 1px;
  border-right: 2px solid #d5d4bf;
  height: 20px;
  align-items: center;
}
#menuBar2 {
  display: flex;
  justify-content: start;
  gap: 20px;
  padding: 10px 15px;
  font-family: 'Windows XP';
  font-size: larger;
  width: 100%;
  border-radius: 1px;
  border-right: 2px solid #d5d4bf;
  height: 20px;
  align-items: center;
}
#menuBarLogo {
  background: linear-gradient(to bottom, white 0%, #f9f8f0 9%, white 18%, white 92%, #d5d4bf 100%) center/cover no-repeat;
  position: absolute;
  width: 6%;
  top: 0px;
  right: 0px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
}
#menuBarLogo img {
  width: 28px;
  height: 28px;
}
.popup-body{
  position: relative;
}
#navBar{
  height: 40px;
  padding: 10px;
  display: flex;
  gap: 7px;
  align-items: center;
  width: 28%;
}
#navBar img, #search img, #idek img{
  width: 30px;
  height: 30px;
}
#navBar select {
  background-color: transparent;
  border: none;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-appearance: none;
  -moz-appearance: none;
  font-size: 25px;
  font-family: 'Windows XP';
  background-image:
    linear-gradient(45deg, transparent 50%, gray 50%),
    linear-gradient(135deg, gray 50%, transparent 50%);
  background-position:
    calc(100% - 20px) calc(1em + 2px),
    calc(100% - 15px) calc(1em + 2px),
    calc(100% - 2.5em) 0.5em;
  background-size:
    5px 5px,
    5px 5px,
    1px 1.5em;
  background-repeat: no-repeat;
  line-height: 40px;
  padding: 10px 35px 10px 0px;
  cursor: url(cursor.cur), default;
}
#search {
  width: 12%;
  display: flex;
  border-left: 2px solid #d5d4bf;
  padding: 10px;
  align-items: center;
  justify-content: center;
  font-family: 'Windows XP';
  font-size: 25px;
  gap: 10px;
}
#folders {
  width: 12%;
  display: flex;
  padding: 10px;
  align-items: center;
  justify-content: center;
  font-family: 'Windows XP';
  font-size: 25px;
  gap: 10px;
  border: 1px solid black;
  border-radius: 5px;
  background: linear-gradient(to bottom, white 0%, #f9f8f0 9%, white 18%, white 92%, #d5d4bf 100%) center/cover no-repeat;
}
#idek{
  width: calc(38% - 1px);
  display: flex;
  padding: 10px;
  align-items: center;
}
#address {
    display: flex;
    width: 100%;
    font-family: 'Windows XP';
    font-size: larger;
    align-items: center;
}
#address span {
    padding: 10px;
    display: inline-block;
}
#address #address_input_container {
    height: 100%;
    width: 80%;
    position: relative;
}
#address #address_input_container input{
    width: 100%;
    height: 80%;
    padding-left: 35px;
    font-family: 'Windows XP';
    font-size: large;
}
#address #address_input_container::before{
    content: '';
    display: block;
    position: absolute;
    top: calc(50% - 13px);
    left: 5px;
    width: 25px;
    height: 25px;
    background-image: url("icons/ICON/64.ico");
    background-size: contain;
}
#folders-select {
  width: 30%;
  height: 360px;
}
#folders-list-container {
  background-color: white;
  height: calc(100% - 20px);
  border-right: 5px solid #f1eee5;
  padding-top: 20px;
}
ul {
  list-style: none;
  text-align: start;
  font-family: 'Windows XP';
  font-size: large;
  margin-top: 2px;
  padding-left: 25px;
}
ul:first-child {
  padding-left: 5px;
  margin: 0px;
}
li {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0px 20px 3px 0px;
  padding: 2px 5px;
}
li img {
  width: 15px;
  height: 15px;
}
li.no-subfolder::before{ 
  display: none;
}

li.selected {
  color: white;
  background-color: #245DDA;
  text-decoration: underline;
}

li::before {
  content: '';
  display: inline-block;
  height: 10px;
  width: 10px;
  background-size: contain;
  background-image: url("img/list-plus.png");
  margin-right: 3px;
}

li:has(+ul)::before {
  background-image: url("img/list-minus.png");
}

.fs-header {
  display: flex;
  font-family: 'Windows XP';
  font-size: larger;
  align-items: center;
  padding: 10px;
  height: 20px;
  border-right: 2px solid #d5d4bf;
  width: calc(20% - 22px);
}

#folders-content {
  display: flex;
  flex: auto;
  background-color: white;
  height: 400px;
  width: 70%;
  flex-wrap: wrap;
}

.file-column {
  width: calc(20% - 2px);
  height: calc(100% - 40px);
  padding-right: 2px;
}

.file-item {
  width: 100%;
  padding: 3px;
  height: 20px;
  display: flex;
  gap: 5px;
  align-items: center;
  font-family: 'Windows XP';
  font-size: large;
}

.file-item img {
  width: 15px;
  height: 15px;
}

#column-size {
  width: calc(20% - 10px);
  padding-right: 10px;
}

#column-size .file-item{
   justify-content: end;
}

#notepad-popup{
  height: 600px;
  width: 720px;
}

#file-text{
  background-color: white;
  height: 640px;
  border-top: 1px solid blue;
}

*.unselectable {
   -moz-user-select: -moz-none;
   -khtml-user-select: none;
   -webkit-user-select: none;

   /*
     Introduced in IE 10.
     See http://ie.microsoft.com/testdrive/HTML5/msUserSelect/
   */
   -ms-user-select: none;
   user-select: none;
}

#tools{
  border-radius: 1px;
  border-right: 2px solid #d5d4bf;
  border-bottom: 2px solid #d5d4bf;
  height: 410px;
  width: 10%;
}
#comics-window{
  height: 410px;
  width: calc(90% - 2px);
  background-color: white;
  display: flex;
  justify-content: center;
}
#comics-window img{
    max-width: 100%;
    object-fit: cover;
    max-height: 100%;
    object-position: center;
    border-left: 1px solid black;
    border-right: 1px solid black;
}
#comic-instructions{
  font-family: 'Windows XP';
  font-size: larger;
  padding: 10px 0px 0px 10px;
}

#sticky-popup .popup{
  width: 300px;
  height: 300px;
  border-radius: 10px;
  border: 1px solid black;
  color: black;
  background:linear-gradient(to bottom, #fff 20%, #f1df73 100%) center/cover no-repeat;
}

#sticky-popup .bar{
  padding: 5px 15px;
}

#sticky-popup .message{
  font-family: "Handwriting";
  padding: 10px;
  text-align: left;
}

#sticky-popup .popup .popup-header{
  height: 30px;
  background: #f4de60;
  color: black;
  font-weight: 600;
}

#sticky-popup .window-controls span:not(:last-child){
  background-color: #e5a63c;
}

.prev-comic:hover, .next-comic:hover{
  transform: scale(1.1);
}

#colors {
    height: 50px;
    border-bottom: 2px solid #d5d4bf;
    display: grid;
    width: 100%;
    padding: 10px;
    padding-right: 55%;
    grid-template-columns: repeat(15, 1fr);
    grid-gap: 2px;
    justify-content: center; /* horizontal centering */
    align-content: center;   /* vertical centering */
}

.cbox{
  border-left: 1px solid #a5a594;
  border-top: 1px solid #a5a594;
  border-right: 1px solid #FBFBFB;
  border-bottom: 1px solid #FBFBFB;
}

.preset-box{
  width: 44px;
  height: 44px;
  background: 
    repeating-conic-gradient(#e7e7d6 0 25%, #fff 0 50%) 
      50% / 5px 5px;

  grid-row: 1 / 3;
  grid-column: 1;
}

.preset-box.cbox{
  border-left: 1px solid black;
  border-top: 1px solid black;
  position: relative;
}

.color-box {
  width: 20px;
  height: 20px;
}
.color-box:hover {
  transform: scale(1.05)
}

.bar a {
  cursor: url(select.cur), pointer;
}

.preset-box .color-box{
  position: absolute;
}

#preset1{
  top: 7px;
  left: 7px;
  z-index:1;
}
#preset2{
  bottom: 7px;
  right: 7px;
}

.tool-select{
  display: flex;
  flex-wrap: wrap;
  column-gap: 5px;
  padding: 10px;
  row-gap: 1px;
  justify-content: center;
}

.tool-select img{
  width: calc(50% - 5px);
  aspect-ratio: 1;
  border: 1px solid transparent;
}

.tool-select img:hover{
  background-color: white;
  border-radius: 5px;
  cursor: url(select.cur), pointer;
  border: 1px solid black;
}

.empty-rect{
  margin-top: 30px;
  width: 100%;
  height: 120px;
}