.body{
  font-family: 'VT323',monospace;
  background-color: bisque;
  background-image: url(images/backrooms_wall.png);
  height:98vh;
  font-size:large;
  animation: pan 60s linear infinite;
}
.topBar{
  display:flex;
  justify-content:space-around;
  background-color:#d8cfa8;
  border-bottom: 2px solid #555;
  box-shadow: inset 0 2px white;
  align-items: center;
  position:fixed;
  top:0;
  left:0;
  width:100%;
}
.infinitySymbol{
  height:50px;
  cursor:pointer;
}
.welcomeWindow{
  border: solid 2px;
  border-color: #b8a13a;
  background-color:#e8dfc0 ;
  width:max-content;
  border-radius: 4px;
  padding:10px;
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  box-shadow: 0px 6px 5px 2px rgba(0,0,0,0.3);
}
.mainWindowTitle{
  font-size:40px;
  margin:0;
  padding-top:3px;
}
.welcomeSlideshow{
  width:100%;
  max-width:490px;
  border-radius:12px;
  padding-top:10px;
  padding-bottom:10px;
  aspect-ratio:4/3;
  object-fit:cover;
}
.titlebar{
  cursor:grab;
  font-size:28px;
  display:flex;
  justify-content: space-between;
  align-items:center;
  background-color: #b8a13a;
  color:#2b2410;
  padding: 2px 4px 2px 10px;
  margin: -10px -10px 10px;
}
.close-btn{
  width: 28px;
  height: 26px;
  font-family: 'VT323',monospace;
  font-size:large;
  background-color: #e8dfc0;
  border:2px solid;
  border-color:rgb(88, 85, 85);
  cursor:pointer;
  padding:0;
  transition: background 0.3s;
}
.close-btn:hover{
  transition: background 0.3s;
  background: #c94a3a;
  color:white;
}
.close-btn:active{
  transform:scale(0.96)
}
.notes_App, .keypadApp, .photosApp, .tapesApp, .terminalApp, .settingsApp, .desmilerApp{
  text-align: center; 
  padding: 8px; 
  filter: drop-shadow(0 0 6px black); 
  width: 96px;
}
.notes_icon, .keypadIcon, .photosIcon, .tapesIcon, .terminalIcon, .settingsIcon, .desmilerIcon{
  width: 64px; 
  height: 64px; 
  border-radius: 4px;
  transition: transform 0.3s;
  cursor: pointer;
}
.icon_selected{
  transform:scale(0.96);
  transition: transform 0.3s;
}
.notesWindow{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width:clamp(250px,50vw,500px);
}
.notesTitlebar{
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  background-color: #8a7a4a;
  padding: 6px 6px 0 6px;
  border-radius: 6px 6px 0 0;
  cursor:grab;
  margin-bottom:0;
}
.notesTitlebar .close-btn{
  align-self: center;
  margin-bottom:6px;
  flex-shrink:0;
}
.folderTabs{
  display:flex;
  gap: 4px;
  overflow-x: auto;
  min-width:0;
  scrollbar-width: none;
  mask-image: linear-gradient(to right, black 80%, transparent);
}
.folderTab{
  background-color: #c4b074;
  padding:4px 14px;
  border-radius: 8px 8px 0 0;
  cursor:pointer;
  max-width: 12ch;
  min-width: 4ch;
  white-space: nowrap;
  overflow: hidden;
  text-overflow:ellipsis;
}
.activeFolderTab{
  background-color: #d9c48a;
  max-width:none;
  flex-shrink:0;
}
.folderPage{
  background-color: #d9c48a;
  padding: 12px;
  width:auto;
  height:clamp(200px,50vh,400px);
  overflow-y:auto;
  border: 6px solid #8a7a4a;
  border-top: none;
  border-radius: 0 0 8px 8px;
  scrollbar-width:thin;
  scrollbar-color: #c4b074 #d9c48a;
}
#timeElement{
  width:22ch;
  text-align:right;
  white-space:nowrap;
  overflow:hidden;
  border: 2px solid;
  border-color: #555 white white #555;
  padding: 2px 8px;
}
.noteDate{
  white-space:nowrap;
  height:24px;
  text-align:right;
  overflow:hidden;
}
#noteDate{
  display: inline-block;
  width: 12ch;
  overflow:hidden;
  text-align:left;
  vertical-align:bottom;
}
#newNote, #deleteNote{
  background-color: #d9c48a;
  padding:4px 14px;
  border-radius: 8px 8px 0 0;
  cursor:pointer;
  border:none;
  font-family: inherit;
  font-size: inherit;
  margin-left:4px;
  flex-shrink:0;
}
#newNote{
  margin-right:auto;
}
#noteText{
  min-height:330px;
  outline:None;
}
.keypadWindow{
  border: solid 2px;
  border-color: #b8a13a;
  background-color:#cfc49a ;
  width:max-content;
  border-radius: 4px;
  padding:10px;
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  box-shadow: 0px 6px 5px 2px rgba(0,0,0,0.3);
}
.keypadGrid{
  display:grid;
  grid-template-columns: repeat(3, 70px);
  gap:6px;
}
#keypadDisplay{
  background-color: #0d1a0d;
  color: #33ff66;
  text-shadow: 0 0 6px #33ff66;
  font-size: 40px;
  padding:8px;
  margin-bottom: 10px;
  text-align:center;
  letter-spacing:8px;
  border: 3px solid;
  border-color: #555 white white #555;
  width: 222px;
  box-sizing: border-box;
  white-space: nowrap;
  overflow: hidden;
}
.keypadKey, .keypadAction{
  background-color: #d8cfa8;
  color: #2b2410;
  font-family: inherit;
  font-size: 28px;
  padding: 10px 0;
  border: 3px solid;
  border-color: white #555 #555 white;
  cursor:pointer;
}
.keypadKey:active, .keypadAction:active{
  border-color: #555 white white #555;
}

#keypadClear{
  background-color: #c9a08a;
}
#keypadEnter{
  background-color: #a9c48a;
}
#bootScreen, #endScreen{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  background-color:#0d0a04;
  display:flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #ffb000;
}
#endScreen{
  z-index:3000;
  transition: background-color 2s, color 2s;
}
#endScreen.whiteout{
  background-color: white;
  color: white;
}
#bootScreen img{
  height:80px;
  filter: invert(1) sepia(1) saturate(5) hue-rotate(5deg) drop-shadow(0 0 6px #ffb000);
}
#bootVersion{
  display:inline-block;
  width:7ch;
  text-align: left;
  height:1em;
  overflow:hidden;
  line-height:1em;
}
#bootText{
  text-align:center;
}
.photosWindow{
  border: solid 2px #b8a13a;
  background-color:#141414;
  border-radius: 4px;
  padding:10px;
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  box-shadow: 0px 6px 5px 2px rgba(0,0,0,0.3);
}
#photoWall{
  width: 60vw;
  min-width: 320px;
  max-width: 720px;
  background-color: #141414;
  padding: 12px;
  overflow: auto;
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 8px;
  align-content: start;
}
.filmFrame img{
  width: 100%;
  aspect-ratio: 3/2;
  object-fit:cover;
  display:block;
}
.filmFrame p{
  font-size: 14px;
  color: #e8a33a;
  margin: 2px 0 0;
  text-align: center;
}
.filmFrame{
  cursor: pointer;
  position: relative;
}
#viewerImage{
  width:100%;
  max-height:50vh;
  object-fit: contain;
}
#photoViewer{
  width:60vw;
  min-width:320px;
  max-width:720px;
  padding:12px;
  background-color: #141414;
}
#viewerLocation, #viewerCaption{
  color: #e8a33a;
  font-size: 18px;
  margin: 6px 0 0;
}
#viewerBack, .settingsButton{
  font-family: inherit;
  font-size: inherit;
  background-color: #d9d6cf;
  border:2px solid;
  border-color: white #555 #555 white;
  padding: 4px 12px;
  margin-top: 8px;
  cursor:pointer;
}
#viewerBack:active, .settingsButton:active{
  border-color: #555 white white #555;
}
.marked::after{
  content:"";
  position:absolute;
  inset: -10px;
  background-image:url(images/redcircle.png);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  pointer-events:none;
}
.tapesWindow{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border: solid 2px #b8a13a;
  background-color: #e8dfc0;
  border-radius: 4px;
  padding: 10px;
  box-shadow: 0px 6px 5px 2px rgba(0,0,0,0.3);
}
.cassette{
  width: 420px;
  background-color: #2a2a2a;
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 10px;
}
.cassetteLabel{
  background-color:#e8dfc0;
  color:#2b2410;
  border-radius: 4px;
  padding: 6px 10px;
  margin-bottom: 12px;
  text-align: center;
  font-size: 22px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cassetteWindow{
  display:flex;
  justify-content:space-around;
  align-items: center;
  background-color: #111;
  border-radius: 30px;
  padding: 10px;
}
.reel{
  width:70px;
  height:70px;
  border-radius: 50%;
  border: 6px dashed #ddd;
  background-color: #444;
}
.tapeControls{
  display:flex;
  justify-content: center;
  gap:20px;
}
.tapeButton{
  background-color: #d8cfa8;
  color: #2b2410;
  font-family: inherit;
  font-size: 24px;
  width: 60px;
  padding: 6px 0;
  border: 3px solid;
  border-color: white #555 #555 white;
  cursor: pointer;
}
.tapeButton:active{
  border-color: #555 white white #555;
}
.tapeProgress{
  display:flex;
  align-items: center;
  gap: 8px;
  margin-bottom:12px;
  font-size:18px;
}

.tapeBar{
  flex-grow: 1;
  height:8px;
  background-color: #2a2a2a;
  border: 2px solid;
  border-color: #555 white white #555;
}
#tapeBarFill{
  height:100%;
  width:0%;
  background-color: #e8a33a;
}
@keyframes spin{
  from{ transform: rotate(0deg);}
  to{ transform: rotate(360deg);}
}
.spinning{
  animation: spin 4s linear infinite;
}

.terminalWindow{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  border: solid 2px #b8a13a;
  background-color: #0d0a04;
  border-radius: 4px;
  padding: 10px;
  box-shadow: 0px 6px 5px 2px rgba(0,0,0,0.3);
}
#terminalOutput{
  width: 500px;
  height: 300px;
  overflow-y:auto;
  color: #ffb000;
  text-shadow: 0 0 6px #ffb000;
  font-size: 20px;
  white-space: pre-wrap;
  scrollbar-width: thin;
  scrollbar-color: #ffb000 #0d0a04;
}
.terminalLine{
  display:flex;
  align-items:center;
  gap:6px;
  color:#ffb000;
  text-shadow:0 0 6px #ffb000;
  font-size: 20px;
}
#terminalInput{
  flex-grow:1;
  background:none;
  border:none;
  outline:none;
  color: #ffb000;
  text-shadow: 0 0 6px #ffb000;
  font-family: inherit;
  font-size: inherit;
  caret-color: #ffb000;
}
.settingsIcon, #notesIcon{
  filter:sepia(0.4);
}
#terminalIcon{
  filter:sepia(0.43)
}
.settingsWindow{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background-color: #cfcabd;
  border: solid 2px #b8a13a;
  border-radius: 4px;
  padding: 10px;
  width: 340px;
  box-shadow: 0px 6px 5px 2px rgba(0,0,0,0.3);
  color: #2b2410;
  font-size: 20px;
}
.settingsWindow fieldset{
  border: 2px solid;
  border-color: #555 white white #555;
  margin-bottom: 10px;
  padding: 8px 12px;
}
.settingsWindow legend{
  padding: 0 6px;
}
.settingsWindow label{
  display: block;
  margin: 6px 0;
  cursor: pointer;
}
.settingsWindow select{
  font-family: inherit;
  font-size: inherit;
}
.unavailable{
  color: #8f8a7e;
  cursor: not-allowed;
}
.settingsFooter{
  font-size:16px;
  margin: 0;
  color: #6b6658;
}
@keyframes pan{
  from{background-position: 0 0;}
  to{background-position: -1000px 0;}
}
@keyframes panFun{
  from{background-position: 0% 0%;}
  to{background-position: 100% 0%;}
}
#wallpaperVideo{
  position:fixed;
  top:0;
  left:0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1
}
#dimmer{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: black;
  opacity: 0;
  pointer-events: none;
  z-index: 999;
}
.desmilerWindow{
  position: absolute;
  left:50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background-color: #cfcabd;
  border:solid 2px #b8a13a;
  border-radius: 4px;
  padding: 10px;
  box-shadow: 0px 6px 5px 2px rgba(0,0,0,0.3);
}
.desmilerStatus{
  display:flex;
  justify-content:center;
  align-items: center;
  gap: 12px;
  padding: 6px;
  margin-bottom: 10px;
  border: 2px solid;
  border-color: #555 white white #555;
}
.desmilerCounter{
  background-color: #1a0d0d;
  color: #ff4433;
  text-shadow: 0 0 6px #ff4433;
  font-size: 24px;
  letter-spacing: 3px;
  padding: 2px 8px;
}
#desmilerGrid{
  display: grid;
  grid-template-columns: repeat(8,40px);
  border:2px solid;
  border-color: #555 white white #555;
}
#desmilerRestart{
  margin-top: 0;
}
.tile{
  width: 40px;
  height: 40px;
  box-sizing:border-box;
  background-color: #d8cfa8;
  border: 3px solid;
  border-color: white #555 #555 white;
  cursor:pointer;
  text-align: center;
  line-height: 34px;
  font-size: 28px;
}
.tile.revealed{
  background-color: #bfb796;
  border: 1px solid #8f8a7e;
  cursor: default;
  line-height: 38px;
}
.tile.chalked{
  color: #f4f1e8;
  text-shadow: 0 0 3px white;
}
.desmilerMessage{
  text-align: center;
  margin: 8px 0 0;
  min-height: 1.2em;
}
.desktop{
  display:flex;
  flex-direction: column;
  justify-content: center;
  height: 100vh;
  padding-left: 16px;
  box-sizing: border-box;
}