/* =============================================
   WUNDERKAMMER — basic stylesheet
   ============================================= */

/* --- Reset --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* --- Make the page fill the whole browser window --- */
html, body {
  width: 100%;
  height: 100%;
  overflow: hidden; /* prevents the browser's own scrollbars */
}

/* ==============================================
   THE VIEWPORT
   The window the user looks through.
   Clips everything that goes outside its bounds.
   ============================================== */
#viewport {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;

  cursor: grab;
  user-select: none;        /* stops text from being selected while dragging */
  -webkit-user-select: none;

  /* Your background goes here.
     Option A — solid color: */

  /* Option B — a background image (comment out Option A first):
     Save your image as bg.jpg in the same folder, then use:

  background-image: url('bg.jpg');
  background-size: cover;       <- stretches to fill the viewport
  background-position: center;  <- anchors the center of the image
  background-repeat: no-repeat;
  */
}

/* Swap cursor while actively dragging */
#viewport.dragging {
  cursor: grabbing;
}

/* ==============================================
   THE WORLD
   A huge canvas that slides inside the viewport.
   All your items live in here.
   ============================================== */
#world {
  position: absolute;
  top: 0;
  left: 0;
  width: 3000px;   /* <- must match WORLD_W in the script */
  height: 2000px;  /* <- must match WORLD_H in the script */
  /* will-change tells the browser to put this element
     on its own GPU layer for smoother movement */
  will-change: transform;
  /* Option C — background image on the WORLD instead of the viewport.
     This makes the texture scroll with your items (more immersive):

  background-image: url('bg.jpg');
  background-size: cover;
  */
   background-image: url('/deco-imgs/fondo17.jpg');
   background-size: cover;
}

/* ==============================================
   ITEMS
   Every object on the canvas shares this base.
   position:absolute + left/top places each one.
   transform:rotate() gives the hand-placed feel.
   ============================================== */
.item {
  position: absolute;
  /* left, top, and transform:rotate() are set inline
     on each item in the HTML, since every one is different */
}

/* ==============================================
   ITEM STYLES
   ============================================== */

/* Parchment card */
.card {
  padding: 16px 18px;
  background: #f0e0a8;
  border: 1px solid #b8943e;
  font-family: Georgia, 'Times New Roman', serif;
  box-shadow: 3px 5px 16px rgba(0, 0, 0, 0.65);
}

.card-title {
  font-size: 13px;
  font-style: italic;
  color: #2a1a06;
  margin-bottom: 6px;
}

.card-body {
  font-size: 11px;
  color: #6a5020;
  line-height: 1.6;
}

/* Portrait frame */
.frame {
  padding: 10px;
  background: #f5e8c8;
  border: 7px solid #7a5a2a;
  width: 160px;
  box-shadow: 3px 5px 14px rgba(0, 0, 0, 0.6);
}

/* The image area inside the frame.
   In a real project: replace this with an <img> tag. */
.frame-image {
  width: 100%;
  height: 120px;
  background: #c0d4b8;
  border: 1px solid #7a9468;

  /* If you use an <img> instead, set:
  display: block;
  width: 100%;
  height: auto;
  */
}

.frame-caption {
  font-size: 9px;
  font-family: Georgia, serif;
  font-style: italic;
  color: #4a3010;
  text-align: center;
  padding-top: 7px;
}

/* Narrow label / banner */
.label {
  padding: 6px 16px;
  background: #f0e4b8;
  border: 1px solid #a08040;
  font-family: Georgia, serif;
  font-size: 14px;
  font-style: italic;
  letter-spacing: 2px;
  color: #3a2a0a;
  border-top: 1px solid #c0a060;
  border-bottom: 1px solid #c0a060;
  box-shadow: 2px 3px 9px rgba(0, 0, 0, 0.4);
}

/* ==============================================
   HINT OVERLAY
   Sits on top of the viewport (not inside #world)
   so it stays fixed while the canvas moves.
   pointer-events:none means it won't block dragging.
   ============================================== */
.hint {
  position: absolute;       /* relative to #viewport, not #world */
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);

  background: rgba(0, 0, 0, 0.55);
  border-radius: 20px;
  padding: 6px 18px;

  color: rgba(255, 230, 180, 0.8);
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 16px;
  white-space: nowrap;

  pointer-events: none; /* lets clicks/drags pass through to the canvas */
}
.music-player{
  position:absolute;
  top:20px;
  left:50%;
  transform: translateX(-50%);
  font-family: Georgia, serif;
  font-size: 16px;
  pointer-events: clicks;
}
.home{
  position:absolute;
  top:20px;
  left:90%;
  transform: translateX(-50%);
  font-family: Georgia, serif;
  font-size: 16px;
  pointer-events: clicks;
}
.home button {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
}
.image-container {
  overflow: hidden;
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* see options below */
}

#overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: #27EBF5;
filter:alpha(opacity=20);
-moz-opacity:1;
-khtml-opacity: 1;
opacity: 1;
z-index: 100;
display: none;
}
.popup-content{
   padding: 14px 10px;
   line-height: 1.5;
}
.cnt223 a{
text-decoration: none;
}
.popup-onload{
margin: 0 auto;
display: none;
position: fixed;
z-index: 101;
top: 40%;
left: 50%;
margin-top: -300px;
margin-left: -300px;
}
.cnt223{
min-width: 600px;
width: 600px;
min-height: 150px;
margin: 100px auto;
background: #f3f3f3;
position: relative;
z-index: 103;
padding: 15px 35px;
border-radius: 5px;
box-shadow: 0 2px 5px #000;
}
.cnt223 p{
clear: both;
    color: #555555;
    /* text-align: justify; */
    font-size: 20px;
    font-family: sans-serif;
}
.cnt223 p a{
color: #d91900;
font-weight: bold;
}
.cnt223 .x{
float: right;
height: 35px;
left: 22px;
position: relative;
top: -25px;
width: 34px;
}
.cnt223 .x:hover{
cursor: pointer;
}