/* Page-specific styles for cafe.html */

/* Typography overrides */
h2 {
  font-size: 0.9rem;
  padding: 2px;
  font-weight: 600;
  font-family: "Franklin Gothic Medium";
  text-shadow: black 1px 2px 2px, black 0px 0px 3px;
  color: #ffffff;
}

/* JSPaint iframe
   - there's a lightweight iframe placed at the top of the page (in #wallpaper) used only for previews
     and another iframe inside the paint window. The top/global selector hid all iframes with that id,
     preventing the paint window iframe from showing. Target them specifically.
*/

/* hide the standalone preview iframe that sits directly under #wallpaper */
#wallpaper > iframe#jspaint-iframe {
  display: none;
}

/* show the iframe placed inside the paint window and make it fill the window body */
#paint-window iframe#jspaint-iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: none;
  z-index: 50;
}

/* Window-specific customizations */
#cafe-chat-window {
  min-width: 700px;
  min-height: 500px;
}

#profile-window {
  max-width: 300px;
  min-height: 500px;
}

/* Profile overrides for cafe.html */
.profile-container {
  padding: 16px;
  gap: 16px;
  overflow-y: hidden;
}

.profile-header {
  gap: 8px;
  padding-bottom: 16px;
  border-bottom: 0px solid var(--border-color);
}

.user-profile {
  width: 80px;
  height: 80px;
  border-radius: 0px;
}

.profile-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: bold;
  color: var(--text-color);
}

/* Avatar frame customizations */
.sidebar #avatar-frame {
  height: 80px;
  padding: 8px 8px;
  border-radius: 16px/24px;
  box-shadow: 0 5px 5px #65f0ff;
}

.sidebar #avatar-frame img {
  max-width: 100px;
  border: 1px solid grey;
  border-radius: 5px;
}

/* Profile picture hover effect */
#avatar-frame {
  position: relative;
  cursor: pointer;
  transition: all 0.2s ease;
}

#avatar-frame:hover {
  filter: brightness(0.7);
}

#avatar-frame:hover::after {
  content: "Edit";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
  pointer-events: none;
  z-index: 20;
}

.gloss {
  background: radial-gradient(
    ellipse 200px 140px at 50% 0%,
    rgba(255, 255, 255, 0.25) 0%,
    rgba(255, 255, 255, 0.25) 50%,
    rgba(255, 255, 255, 0) 51%
  );
  border-radius: 16px/24px;
}

/* Radio group overrides */
.radio-group input[type="radio"] {
  margin: 0;
}

.radio-group label {
  font-size: 12px;
  color: var(--text-color);
  cursor: pointer;
}

.profile-actions {
  margin-top: auto;
  padding-top: 16px;
}

.save-btn {
  color: black;
  font-size: 12px;
}

/* Room list customizations */
.room-list-item {
  flex-direction: row;
  transition: background-color 0.2s;
}

.room-list-user-profile {
  border-radius: 0px;
}

.room-list-item-text-container {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.room-list-item-text {
  font-size: 12px;
  font-weight: bold;
  color: var(--text-color);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.room-list-item-details {
  display: flex;
  flex-direction: row;
  gap: 4px;
  font-size: 10px;
  color: #666;
}

/* Window positioning */
.window {
  position: relative;
}

/* Font faces for taskbar */
@font-face {
  font-family: 'Franklin Gothic Medium';
  src: url(https://raw.githubusercontent.com/tdcosta100/WindowsXP/master/fonts/framdit.ttf) format('truetype');
  font-style: italic;
  font-weight: normal;
}

@font-face {
  font-family: 'Tahoma';
  src: url(https://raw.githubusercontent.com/tdcosta100/WindowsXP/master/fonts/tahoma.ttf) format('truetype');
  font-style: normal;
  font-weight: normal;
}

/* Taskbar styles */
.background.sliced {
  display: flex;
  flex-direction: row;
  position: absolute;
  width: 100%;
  height: 100%;
}

.background.sliced.vertical {
  flex-direction: column;
}

.background.sliced .top,
.background.sliced .bottom {
  flex-shrink: 0;
}

.background.sliced .middle {
  flex-grow: 1;
}

.background.sliced .column {
  display: flex;
  flex-direction: column;
}

#desktop {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  height: auto;
  background: transparent;
  z-index: 9999;
  pointer-events: auto;
}

#taskbar {
  display: flex;
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  pointer-events: auto;
  z-index: 9999;
  will-change: transform;
  height: 30px;
}

body.is-dragging-window #taskbar {
  transform: translateZ(0);
}

#start-button {
  flex-shrink: 0;
}

#start-button .container {
  position: relative;
  overflow: hidden;
}

#start-button .overlay {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

#task-band {
  flex-grow: 1;
}

#tray-notify {
  flex-shrink: 0;
}

#tray-notify .container {
  position: relative;
  overflow: hidden;
  height: 100%;
}

#tray-notify .clock {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 100%;
  width: 40px;
  text-align: center;
}

#tray-notify .clock .overlay {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}

/* Taskbar backgrounds */
#taskbar > .background .row {
  background-image: url(https://raw.githubusercontent.com/tdcosta100/WindowsXP/master/images/Themes/Blue/TaskbarBackground.png);
  background-repeat: no-repeat;
  image-rendering: pixelated;
}

#taskbar > .background .top {
  height: 15px;
  background-size: 100% 186.666667%;
}

#taskbar > .background .middle {
  background-size: 100% 1400%;
  background-position-y: 57.692308%;
}

#taskbar > .background .bottom {
  height: 11px;
  background-size: 100% 254.545455%;
  background-position-y: 100%;
}

/* Start Button sizing */
#start-button .background .left {
  width: 6px;
}

#start-button .background .right {
  width: 52px;
}

#start-button .background .top {
  height: 13px;
}

#start-button .background .bottom {
  height: 14px;
}

#start-button .content {
  display: flex;
  align-items: center;
  position: relative;
  margin: 2px 24px 4px 10px;
  height: 26px;
}

#start-button .content .icon img {
  display: block;
  image-rendering: pixelated;
}

#start-button .content .text {
  color: rgb(255, 255, 255);
  font-family: 'Franklin Gothic Medium';
  font-style: italic;
  font-size: 14pt;
  text-shadow: 1px 2px 2px rgb(69, 76, 16), 0 0 3px rgb(69, 76, 16);
  margin-bottom: 1px;
  padding-right: 3px;
}

/* Start Button background states */
#start-button .background .row {
  background-image: url(https://raw.githubusercontent.com/tdcosta100/WindowsXP/master/images/Themes/Blue/StartButton.png);
  background-repeat: no-repeat;
  image-rendering: pixelated;
}

#start-button .background .left .top {
  background-size: 1650% 761.538462%;
}

#start-button .background .left .middle {
  background-size: 1650% 1650%;
}

#start-button .background .left .bottom {
  background-size: 1650% 707.142857%;
}

#start-button .background .middle .top {
  background-size: 241.463415% 761.538462%;
}

#start-button .background .middle .middle {
  background-size: 241.463415% 1650%;
}

#start-button .background .middle .bottom {
  background-size: 241.463415% 707.142857%;
}

#start-button .background .right .top {
  background-size: 190.384615% 761.538462%;
}

#start-button .background .right .middle {
  background-size: 190.384615% 1650%;
}

#start-button .background .right .bottom {
  background-size: 190.384615% 707.142857%;
}

#start-button .background .left .row {
  background-position-x: 0;
}

#start-button .background .middle .row {
  background-position-x: 10.344828%;
}

#start-button .background .right .row {
  background-position-x: 100%;
}

#start-button .background .top {
  background-position-y: 0;
}

#start-button .background .column .middle {
  background-position-y: 13.978495%;
}

#start-button .background .bottom {
  background-position-y: 22.352941%;
}

#start-button.hover .background .top {
  background-position-y: 38.372093%;
}

#start-button.hover .background .column .middle {
  background-position-y: 49.462366%;
}

#start-button.hover .background .bottom {
  background-position-y: 61.176471%;
}

#start-button.pressed .background .top {
  background-position-y: 76.744186%;
}

#start-button.pressed .background .column .middle {
  background-position-y: 84.946237%;
}

#start-button.pressed .background .bottom {
  background-position-y: 100%;
}

/* Tray notify sizing */
#tray-notify .background .left {
  width: 34px;
}

#tray-notify .background .right {
  width: 10px;
}

#tray-notify .background .top {
  height: 12px;
}

#tray-notify .background .bottom {
  height: 12px;
}

#tray-notify .background .row {
  background-image: url(https://raw.githubusercontent.com/tdcosta100/WindowsXP/master/images/Themes/Blue/TaskbarTray.png);
  background-repeat: no-repeat;
  image-rendering: pixelated;
}

#tray-notify .background .left .top {
  background-size: 323.529412% 233.333333%;
}

#tray-notify .background .left .middle {
  background-size: 323.529412% 700%;
}

#tray-notify .background .left .bottom {
  background-size: 323.529412% 233.333333%;
}

#tray-notify .background .middle .top {
  background-size: 166.666667% 233.333333%;
}

#tray-notify .background .middle .middle {
  background-size: 166.666667% 700%;
}

#tray-notify .background .middle .bottom {
  background-size: 166.666667% 233.333333%;
}

#tray-notify .background .right .top {
  background-size: 1100% 233.333333%;
}

#tray-notify .background .right .middle {
  background-size: 1100% 700%;
}

#tray-notify .background .right .bottom {
  background-size: 1100% 233.333333%;
}

#tray-notify .background .left .row {
  background-position-x: 0;
}

#tray-notify .background .middle .row {
  background-position-x: 77.272727%;
}

#tray-notify .background .right .row {
  background-position-x: 100%;
}

#tray-notify .background .top {
  background-position-y: 0;
}

#tray-notify .background .column .middle {
  background-position-y: 50%;
}

#tray-notify .background .bottom {
  background-position-y: 100%;
}

#tray-notify .content {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  position: relative;
  margin: 0 7px 0 19px;
  height: 30px;
  font-family: 'Tahoma';
  font-size: 8pt;
  color: rgb(255, 255, 255);
}

#wallpaper {
  padding-top: 8px;
}