:root {
  --desktop-blur: 0px;
  --desktop-window-alpha: 0.8;
}

.closebutton {
    cursor: pointer;
    color: rgb(0, 0, 0);
    border: 1px solid black;
    background-color: red;
    border-radius: 16px;
    width: 16px;
    height: 16px;
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.closebutton:hover {
    background-color: rgb(205, 19, 19);
}

.closebutton:active,
.closebutton:focus {
  box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.3) inset;
  outline: none;
}

.textnagen {
  width: 100%;
  height: 400px;
  background-color: #000;
  color: #00ff00;
  border: 2px solid #00ff00;
  padding: 10px;
  font-family: 'Courier New', monospace;
  font-size: 16px;
  resize: none;
  margin: 20px 0;
}

.terminal-container {
  width: 90%;
  margin: 0 auto;
  text-align: center;
  font-family: 'Courier New', monospace;
  padding: 20px;

  color: #00ff00;
}

.closetext {
    cursor: pointer;
    margin: 0px;
    text-align: center;
    font-size: 12px;
    font-family: Arial, sans-serif;
}

.welcome {
    background-color: rgba(0, 255, 0, var(--desktop-window-alpha));
    position: absolute;
    transform: translate(-50%, -50%);
    padding: 16px;
    border: dashed black;
    width: 256px;
    border-radius: 16px;
    flex-direction: column;
    resize: both;
    overflow: auto;
    backdrop-filter: blur(var(--desktop-blur));
    -webkit-backdrop-filter: blur(var(--desktop-blur));
    transition: background-color 0.2s ease, backdrop-filter 0.2s ease;
}

.welcomeheader {
  text-align: center;
  font-size: 12px;
  min-height: 16px;
  cursor: grab;
  user-select: none;
  padding-right: 24px;
  margin: 0 0 8px 0;
}

.desktop-apps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 88px));
  gap: 16px 12px;
  padding: 64px 16px 16px;
  width: calc(100% - 32px);
  max-width: 100%;
  box-sizing: border-box;
  align-content: start;
}

.desktop-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 88px;
  gap: 4px;
  cursor: pointer;
  font-family: Courier New, monospace;
  color: white;
  box-sizing: border-box;
}

.desktop-icon img {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  display: block;
}

.icon-label {
  width: 100%;
  margin: 0;
  color: white;
  text-align: center;
  font-size: 15px;
  line-height: 1.2;
}

@media (max-width: 640px) {
  .desktop-apps {
    grid-template-columns: repeat(auto-fill, minmax(72px, 72px));
    gap: 12px 10px;
    padding: 56px 12px 12px;
  }

  .desktop-icon {
    width: 72px;
  }

  .icon-label {
    font-size: 13px;
  }
}

.selected {
    background-color: rgba(0, 0, 255, 0.3);
    border-radius: 8px;
    padding: 4px;
}

#weathercontent {
    margin-top: 8px;
    font-size: 12px;
    text-align: center;
    padding: 4px;
    border: 1px dashed black;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.5);
}






#clock {
  width: 300px;
  max-width: calc(100vw - 32px);
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 12px 12px;
  box-sizing: border-box;
}

.container {
 position: relative;
 display: flex;
 justify-content: center;
 align-items: center;
 width: 256px;
 height: 256px;
 background: transparent;
 margin-top: 0;
}

.clock-outer {
 width: 0;
 height: 0;
 position: absolute;
 left: 50%;
 top: 50%;
 transform: translate(-50%, -50%);
 background: transparent;
}
.clock {
 width: 220px;
 height: 220px;
 border: 2px solid black;
 border-radius: 50%;
 font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
 position: absolute;
 left: 50%;
 top: 50%;
 transform: translate(-50%, -50%);
 background: #f1f1f1;
}
.clock .number {
 position: absolute;
 inset: 0;
 text-align: center;
 font-size: 1rem;
}
.clock .hand {
 --rotation: 10;
 position: absolute;
 background-color: black;
 border: 1px solid white;
 border-top-left-radius: 10px;
 border-top-right-radius: 10px;
 left: 50%;
 bottom: 50%;
 transform-origin: bottom;
 transform: translateX(-50%) rotate(calc(var(--rotation) * 1deg));
}
.clock .hand.minute {
 height: 38%;
 width: 4px;
}
#small-circle {
 position: absolute;
 width: 14px;
 height: 14px;
 border-radius: 50%;
 background-color: red;
 left: 50%;
 bottom: 48%;
 transform: translateX(-50%);
}
.clock .hand.second {
 height: 44%;
 width: 2px;
 background: red;
}
.clock .hand.hour {
 height: 28%;
 width: 6px;
}
.container-2 {
 display: flex;
 position: absolute;
 bottom: 44%;
 left: 66%;
 border: 2px solid black;
 border-radius: 10px;
 width: 56px;
 height: 34px;
 font-size: 0.9rem;
}
.container-2 #date {
 display: flex;
 justify-content: center;
 align-items: center;
 border-right: 1px solid black;
 width: 28px;
 height: 34px;
 font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}
.container-2 #month {
 display: flex;
 justify-content: center;
 align-items: center;
 width: fit-content;
 height: 34px;
 font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}
.number1 {
 transform: rotate(30deg);
}
.number2 {
 transform: rotate(60deg);
}
.number3 {
 transform: rotate(90deg);
}
.number4 {
 transform: rotate(120deg);
}
.number5 {
 transform: rotate(150deg);
}
.number6 {
 transform: rotate(180deg);
}
.number7 {
 transform: rotate(210deg);
}
.number8 {
 transform: rotate(240deg);
}
.number9 {
 transform: rotate(270deg);
}
.number10 {
 transform: rotate(300deg);
}
.number11 {
 transform: rotate(330deg);
}



canvas {
    border: 2px solid black;
    cursor: crosshair;
    width: 100%;
    height: 100%;
}

.paint-tools {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    max-width: 500px;
    align-items: center;
}

#brush-size {
    padding: 10px;
    background-color: #333;
    color: white;
    border: none;
    cursor: pointer;
}

#pen {
    padding: 10px;
    background-color: #0800ff;
    color: white;
    border: none;
    cursor: pointer;
}

#eraser {
    padding: 10px;
    background-color: #ee00cf;
    color: white;
    border: none;
    cursor: pointer;
}

.download {
    padding: 10px;
    background-color: #ee00cf;
    color: white;
    border: none;
    cursor: pointer;
}

#color-picker {
    cursor: pointer;
}

#clear-canvas {
    padding: 10px;
    background-color: #ff3333;
    color: white;
    border: none;
    cursor: pointer;
}


#kuuppabrowser-container {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}

#calcu {
border: 1px solid black;
margin-left: auto;
margin-right: auto;
}

.calcbutton {
width: 100%;
padding: 20px 40px;
background-color: rgb(0, 238, 255);
color: white;
font-size: 24px;
font-weight: bold;
border: none;
border-radius: 16px;
cursor: pointer;
}

.calcbutton:active{
  box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.3) inset;
  outline: none;
}

.calcbutton:hover{
    background-color: rgb(17, 192, 205);
}

#result {
padding: 20px 30px;
font-size: 24px;
font-weight: bold;
border: none;
border-radius: 16px;
border: 2px solid black;
}



.calendar {
  height: fit-content;
  width: max-content;
  background-color: rgba(135, 133, 133, 0);
  border-radius: 25px;
  overflow: hidden;
  padding: 35px 50px 0px 50px;
}

.calendar {
  box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
}

.calendar-header {
  background: #8089FE;
  display: flex;
  justify-content: space-between;
  border-radius: 7px;
  align-items: center;
  font-weight: 700;
  color: #ffffff;
  padding: 10px;
}

.calendar-body {
  padding: 10px;
}

.calendar-week-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  font-weight: 600;
  cursor: pointer;
  color: rgb(104, 104, 104);
}

.calendar-week-days div:hover {
  color: black;
  transform: scale(1.2);
  transition: all .2s ease-in-out;
}

.calendar-week-days div {
  display: grid;
  place-items: center;
  color: #6D67CF;
  height: 50px;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  color: #0A0921;
}

.calendar-days div {
  width: 37px;
  height: 33px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  position: relative;
  cursor: pointer;
  animation: to-top 1s forwards;
}

.month-picker {
  padding: 5px 10px;
  border-radius: 10px;
  cursor: pointer;
}

.year-picker {
  display: flex;
  align-items: center;
}

.year-change {
  height: 30px;
  width: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0px 10px;
  cursor: pointer;
}

.year-change:hover {
  background-color: #9796f0;
  transition: all .2s ease-in-out;
  transform: scale(1.12);
}

.calendar-footer {
  padding: 10px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

#year:hover {
  cursor: pointer;
  transform: scale(1.2);
  transition: all 0.2 ease-in-out;
}

.calendar-days div span {
  position: absolute;
}

.calendar-days div:hover {
  transition: width 0.2s ease-in-out, height 0.2s ease-in-out;
  background-color: #fbc7d4;
  border-radius: 20%;
  color: #f8fbff;
}

.calendar-days div.current-date {
  color: #f8fbff;
  background-color: #9796f0;
  border-radius: 20%;
}

.month-list {
  position: relative;
  left: 0;
  top: -130px;
  background-color: #ebebeb;
  color: #151426;
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 5px;
  border-radius: 20px;
}

.month-list>div {
  display: grid;
  place-content: center;
  margin: 5px 10px;
  transition: all 0.2s ease-in-out;
}

.month-list>div>div {
  border-radius: 15px;
  padding: 10px;
  cursor: pointer;
}

.month-list>div>div:hover {
  background-color: #9796f0;
  color: #f8fbff;
  transform: scale(0.9);
  transition: all 0.2s ease-in-out;
}

.month-list.show {
  visibility: visible;
  pointer-events: visible;
  transition: 0.6s ease-in-out;
  animation: to-left .71s forwards;
}

.month-list.hideonce {
  visibility: hidden;
}

.month-list.hide {
  animation: to-right 1s forwards;
  visibility: none;
  pointer-events: none;
}

.date-time-formate {
  height: 4rem;
  width: 100%;
  font-family: Dubai Light, Century Gothic;
  position: relative;
  display: flex;
  top: 50px;
  justify-content: center;
  align-items: center;
}

.day-text-formate {
  font-family: Microsoft JhengHei UI;
  font-size: 1.4rem;
  padding-right: 5%;
  border-right: 3px solid #9796f0;
}

.date-time-value {
  display: block;
  position: relative;
  text-align: center;
  padding-left: 5%;
}

.time-formate {
  font-size: 1.5rem;
}

.time-formate.hideTime {
  animation: hidetime 1.5s forwards;
}

.day-text-formate.hidetime {
  animation: hidetime 1.5s forwards;
}

.date-formate.hideTime {
  animation: hidetime 1.5s forwards;
}

.day-text-formate.showtime {
  animation: showtime 1s forwards;
}

.time-formate.showtime {
  animation: showtime 1s forwards;
}

.date-formate.showtime {
  animation: showtime 1s forwards;
}

@keyframes to-top {
  0% {
    transform: translateY(0);
    opacity: 0;
  }

  100% {
    transform: translateY(100%);
    opacity: 1;
  }
}

@keyframes to-left {
  0% {
    transform: translatex(230%);
    opacity: 1;
  }

  100% {
    transform: translatex(0);
    opacity: 1;
  }
}

@keyframes to-right {
  10% {
    transform: translatex(0);
    opacity: 1;
  }

  100% {
    transform: translatex(-150%);
    opacity: 1;
  }
}

@keyframes showtime {
  0% {
    transform: translatex(250%);
    opacity: 1;
  }

  100% {
    transform: translatex(0%);
    opacity: 1;
  }
}

@keyframes hidetime {
  0% {
    transform: translatex(0%);
    opacity: 1;
  }

  100% {
    transform: translatex(-370%);
    opacity: 1;
  }
}