@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap");

@import url(/styles/book.css);
@import url(/styles/poseidon-md.css);
@import url(/styles/timer.css);
@import url(/styles/browser.css);

@font-face {
  font-family: "Zarathustra";
  src: url("../fonts/zarathustra.otf") format("opentype");
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  cursor: url(/images/trident-cursor.png), default;
}

:root {
  --text-main: white;
  --text-dark: black;

  --border: #ac7b3f;
  --bg-topbar: #17434c;
  --bg-sidebar: #17434c;
  --bg-notes: #efdfb8;

  --gold: #d8ad52;
  --font-title: "Zarathustra", serif;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--text-main);
  text-align: center;
  background-image: url("/images/wallpaper.jpg");
  background-position: 75% 0%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.top-bar {
  position: absolute;
  top: 0;
  width: 100vw;
  height: 6vh;
  display: flex;
  justify-content: space-between;
  border: solid 1px var(--border);
  align-items: center;
  padding: 0 48px;
  user-select: none;
  background-image: url("/images/paper.jpg");
  background-position: top center;
}

#welcome-open-button,
#time {
  background-color: var(--bg-topbar);
  backdrop-filter: blur(12px);
  border-radius: 50px;
  font-family: var(--font-title);
  padding: 12px;
}

.window {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  width: 35vw;
  border-radius: 13px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  user-select: none;
  overflow: hidden;
}

.window-handle {
  width: 100%;
  position: absolute;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  background-color: var(--bg-topbar);
  border-top-left-radius: 13px;
  border-top-right-radius: 13px;
  border-bottom: inherit;
  cursor: grab;
}

#welcome-window {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
}

#welcome-window .window-handle {
  position: static;
}

.main-window-content {
  display: flex;
  flex: 1;
  width: 100%;
  height: fit-content;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 48px;
  background-color: var(--bg-topbar);
  border-bottom-left-radius: 13px;
  border-bottom-right-radius: 13px;
}

.welcome-window-title {
  font-family: var(--font-title);
  font-size: 48px;
  color: transparent;
  background: linear-gradient(to right, white, var(--gold));
  background-clip: text;
}

.close-button {
  cursor: pointer;
  border-radius: 5px;
  padding: 8px;
  background-color: #ff6961;
}

.open-button {
  cursor: pointer;
}

.header-text {
  font-family: var(--font-title);
}

/* Desktop App icons */
.desktop-app {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 25%;
  padding: 8px;
  user-select: none;
  gap: 8px;
  width: 100px;
  font-family: "Zarathustra", serif;
}

.desktop-app img {
  width: 56px;
  height: 56px;
}

.selected {
  background-color: rgba(218, 177, 103, 0.3) !important;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.poseidon-md-sidebar,
.poseidon-book-sidebar {
  background: var(--bg-sidebar);
  position: absolute;
  left: 0px;
  bottom: 0px;
  border-bottom-left-radius: 13px;
  padding: 20px;
  overflow-y: auto;
  padding-top: 24px;
}

.poseidon-md-content,
.poseidon-book-content {
  background: var(--bg-notes);
  display: flex;
  flex-direction: column;
  border-bottom-right-radius: 13px;
  position: absolute;
  bottom: 0px;
  right: 0px;
  text-align: left;
  padding: 24px;
  overflow-y: auto;
}

/* dolphin pet */

.dolphin-img img {
  width: 100px;
  height: 100px;
}

#dolphin {
  display: flex;
  position: absolute;
  top: 40%;
  left: 64%;
  transform: translate(-50%, -50%);
  user-select: none;
}

.dolphin-text {
  display: none;
  position: absolute;
  bottom: 100%;
  left: 100%;
  background-color: #17434c;
  padding: 12px;
  border-radius: 4px;
  width: max-content;
  white-space: no-wrap;
}

#dolphin:hover .dolphin-text {
  display: flex;
  flex-direction: column;
}

/* Dock */
#dock {
  background-color: #17434c;
  padding: 8px;
  position: fixed;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 13px;
  display: flex;
  gap: 12px;
}

#dock button {
  background: rgba(218, 177, 103, 0.5);
  border: none;
}

#dock #poseidon-md-app,
#dock #poseidon-book-app {
  margin: 0;
}

#dock .open-button {
  padding: 4px 0;
}

#dock .desktop-app,
#dock #poseidon-book-app,
#dock #poseidon-md-app {
  width: 80px;
}

#dock .desktop-app img {
  padding: 0;
  width: 50px;
  height: 50px;
}
