/*
  Styling for Obscure Sports
  References used while building layout
  Flexbox and Grid docs
  W3Schools responsive layout notes
*/

* { box-sizing: border-box; }

body{
  margin:0;
  background:#3c2626;
  font-family:Arial, Helvetica, sans-serif;
  overflow-x:hidden;
  overflow-y:auto;
}

button{ cursor:pointer; border:none; background:transparent; padding:0; }

:focus-visible{ outline:4px solid #fff; outline-offset:3px; }

/* Top bar */
.topBar{
  height:64px;
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
  padding:0 16px;
  z-index:60;
}

.topBar h1{
  margin:0;
  color:white;
  font-size:34px;
  user-select:none;
}

/* About button */
.about{
  position:absolute;
  right:10px;
  top:6px;
  width:clamp(74px, 10vw, 140px);
  height:clamp(44px, 7vw, 84px);
  display:grid;
  place-items:center;
  z-index:80;
}

.aboutBag{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
  filter: drop-shadow(0 10px 14px rgba(0,0,0,0.25));
  pointer-events:none;
}

/* Home page */
#home{
  height: calc(100vh - 64px);
  overflow:auto;
  padding-top:34px;
}

.lockerRow{
  height:100%;
  display:flex;
  overflow:auto;
}

.locker{
  width:26%;
  height:100%;
  border:5px solid black;
  flex:0 0 auto;
  position:relative;
  display:flex;
  justify-content:center;
  align-items:flex-start;
  padding-top:84px;

  background: linear-gradient(to bottom, #ff3b3b, #d11212);
  box-shadow:
    inset 0 16px 28px rgba(0,0,0,0.34),
    inset 0 -16px 22px rgba(0,0,0,0.16);

  transition: filter 0.15s ease, transform 0.15s ease;
}

.locker:hover{
  filter: brightness(1.18) saturate(1.05);
  transform: translateY(-2px);
}

.lockerLabel{
  background:#f0a848;
  padding:18px 34px;
  border-radius:14px;
  font-weight:bold;
  font-size:26px;
  line-height:1.1;
  box-shadow:0 5px 0 rgba(0,0,0,0.35);
  user-select:none;
  cursor:pointer;
  transition: transform 0.12s ease, background 0.12s ease;
  z-index:10;

  height:fit-content;
  align-self:flex-start;
  display:inline-block;
  max-width:92%;
  text-align:center;

  color:#000;
  text-decoration:none;
}

.lockerLabel:hover{
  background:#f6b85b;
  transform: scale(1.05);
}

/* Handle */
.handlePlate{
  position:absolute;
  left:26px;
  top:50%;
  transform: translateY(-50%);
  width:72px;
  height:140px;
  background:#bfb2b2;
  border-radius:14px;
  box-shadow:
    inset 0 0 0 6px rgba(0,0,0,0.22),
    0 10px 18px rgba(0,0,0,0.25);
  z-index:3;
  pointer-events:none;
}
.handlePlateInner{
  position:absolute;
  inset:14px;
  background:#a79b9b;
  border-radius:12px;
  box-shadow: inset 0 0 0 6px rgba(0,0,0,0.14);
}

.homeHandle{
  position:absolute;
  left:26px;
  top:50%;
  width:72px;
  height:140px;
  transform: translateY(-50%);
  z-index:4;
  pointer-events:none;
  display:flex;
  align-items:center;
  justify-content:center;
}
.homeHandle svg{ width:38px; height:auto; display:block; }

/* vents */
.homeVents{
  position:absolute;
  left:50%;
  bottom:92px;
  transform: translateX(-50%);
  display:flex;
  flex-direction:column;
  gap:9px;
  pointer-events:none;
  z-index:4;
}
.homeVent{
  width: clamp(140px, 18vw, 240px);
  height:auto;
  display:block;
  filter: drop-shadow(0 10px 10px rgba(0,0,0,0.25));
}

/* Tablet/mobile side panels (hidden on desktop) */
.navPanel{ display:none; }

/* Sport page layout */
#sport{
  display:block;
  min-height:100vh;
  position:relative;
  overflow:visible;
  padding-bottom:18px;
}

:root{ --sportGutter: 92px; }

.twoLockers{
  min-height:100vh;
  display:flex;
  justify-content:center;
  align-items:center;
  gap:0;
  padding:20px var(--sportGutter);
}

.sportNav{
  position:fixed;
  top:54%;
  transform: translateY(-50%);
  z-index:80;
  user-select:none;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:6px 8px;
}

#sportBackBtn{ left:10px; }
#sportNextBtn{ right:10px; }

.sportArrow{ width:0; height:0; filter: drop-shadow(0 8px 10px rgba(0,0,0,0.35)); }
.sportArrow.left{
  border-top:36px solid transparent;
  border-bottom:36px solid transparent;
  border-right:60px solid #000;
}
.sportArrow.right{
  border-top:36px solid transparent;
  border-bottom:36px solid transparent;
  border-left:60px solid #000;
}
.sportText{
  font-weight:900;
  font-size:18px;
  color:#000;
  text-shadow:0 3px 0 rgba(0,0,0,0.15);
}

.panel{
  width:40%;
  height:95vh;
  background:red;
  border:6px solid rgb(58, 22, 22);
  padding:12px;
  display:flex;
  flex-direction:column;
  box-shadow: inset 0 18px 30px rgba(0,0,0,0.30);
}

.panelInner{
  flex:1;
  overflow:auto;
  display:flex;
  flex-direction:column;
  gap:12px;
}

.breadcrumbs{
  margin:8px 0;
  padding:8px 10px;
  background: rgba(255,255,255,0.22);
  border:2px solid rgba(0,0,0,0.25);
  font-weight:800;
  user-select:none;
}
.breadcrumbs a{ color:#000; text-decoration:underline; font-weight:900; }
.breadcrumbs .sep{ padding:0 8px; font-weight:900; }

.lockerTitle{
  text-align:center;
  color:#000;
  font-weight:900;
  margin:0;
  font-size:22px;
  user-select:none;
}

.videoBox{
  width:100%;
  padding-top:52%;
  background:#b29b9b;
  position:relative;
  overflow:auto;
}
.videoBox iframe{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  border:0;
}

/* Sticky notes */
.stickyArea{
  margin-top:14px;
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap:16px;
}

.sticky{
  position:relative;
  width:100%;
  min-height:150px;
  background:transparent;
  display:grid;
  place-items:center;
  cursor:pointer;
  user-select:none;
  overflow:visible;
  transition: transform 0.12s ease;
}

.sticky:hover{ transform: scale(1.02); }

.stickyBg{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
  filter: drop-shadow(0 10px 12px rgba(0,0,0,0.22));
  pointer-events:none;
}

.stickyText{
  position:absolute;
  top: 30%;
  transform: translateY(-50%);
  font-weight:900;
  font-size: clamp(22px, 2.4vw, 34px);
  color:#000;
  text-align:center;
  padding:0 10px;
  pointer-events:none;
  text-shadow:0 2px 0 rgba(255,255,255,0.35);
}

/* Hinges */
.boltStrip{
  width:54px;
  height:95vh;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:space-between;
  margin:0 6px;
  padding:10px 0;
  filter: drop-shadow(0 10px 14px rgba(0,0,0,0.22));
}
.hingeImg{
  width:100%;
  height:auto;
  object-fit:contain;
  display:block;
  pointer-events:none;
}

/* Right panel object */
.objectZone{
  flex:1;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  align-items:center;
  gap:12px;
  padding-bottom:18px;
}
.objectPlaceholder{
  width:min(78%, 260px);
  aspect-ratio:1/1;
  background:#e0e0e0;
  border:6px solid rgba(0,0,0,0.22);
  box-shadow:
    inset 0 16px 22px rgba(0,0,0,0.18),
    0 12px 18px rgba(0,0,0,0.25);
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:800;
  color: rgba(0,0,0,0.6);
  user-select:none;
}
.objectShelf{
  width:78%;
  height:18px;
  background:#f0b35a;
  box-shadow:0 6px 10px rgba(0,0,0,0.25);
  margin-bottom:6px;
}

/* Pop-up modal */
.stickyExpandedOverlay{
  display:none;
  position:fixed;
  inset:0;
  backdrop-filter: blur(8px);
  background: rgba(0,0,0,0.15);
  align-items:center;
  justify-content:center;
  z-index:200;
  padding:18px;
}

.stickyExpandedCard{
  width:min(820px, 94vw);
  max-height: 88vh;
  background:#fff8d0;
  border: 4px solid rgba(0,0,0,0.35);
  border-radius: 18px;
  box-shadow: 0 12px 22px rgba(0,0,0,0.35);
  position:relative;
  padding: 18px;
  overflow:auto;
}

.stickyExpandedContent{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.stickyExpandedContent h3{
  margin:0;
  font-size: clamp(18px, 2.4vw, 28px);
}

.stickyExpandedContent p{
  margin:0;
  line-height:1.35;
  font-weight:700;
  font-size: clamp(14px, 1.6vw, 18px);
  max-width:60ch;
}

.citation{
  margin-top:6px;
  font-weight:800;
  font-size: clamp(12px, 1.4vw, 16px);
}
.citation a{
  color:#000;
  text-decoration:underline;
  font-weight:900;
  word-break: break-word;
}

.close{
  margin-top:auto;
  align-self:flex-start;
  background:#f0a848;
  padding:10px 16px;
  border-radius:10px;
  font-weight:bold;
  user-select:none;
}

/* Tablet and phone home layout */
@media (max-width: 1024px){
  #home{ padding-top:18px; }
   .homeVent{
    width: clamp(180px, 32vw, 320px);
  }
  .lockerRow{
    display:grid;
    grid-template-columns: 20% 60% 20%;
    height:100%;
    overflow:hidden;
    gap:0;
  }

  .locker{
    display:none;
    width:100%;
    height:100%;
    padding-top:40px;
  }

  .locker.active{
    display:flex;
    grid-column:2;
  }

  .navPanel{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:18px;
    padding:16px 10px;
    border:5px solid black;
    background: linear-gradient(to bottom, #ff3b3b, #d11212);
    box-shadow:
      inset 0 16px 28px rgba(0,0,0,0.34),
      inset 0 -16px 22px rgba(0,0,0,0.16);
    user-select:none;

    --arrowH: clamp(44px, 6.2vw, 70px);
    --arrowW: clamp(72px, 9.2vw, 110px);
  }

  .navLeft{ grid-column:1; }
  .navRight{ grid-column:3; }

  .navArrow{ width:0; height:0; filter: drop-shadow(0 8px 10px rgba(0,0,0,0.35)); }
  .navArrow.left{
    border-top: var(--arrowH) solid transparent;
    border-bottom: var(--arrowH) solid transparent;
    border-right: var(--arrowW) solid #000;
  }
  .navArrow.right{
    border-top: var(--arrowH) solid transparent;
    border-bottom: var(--arrowH) solid transparent;
    border-left: var(--arrowW) solid #000;
  }

  .navText{
    font-weight:900;
    font-size: clamp(18px, 3.2vw, 34px);
    color:#000;
    text-shadow: 0 3px 0 rgba(0,0,0,0.15);
  }
}

/* Phone sticky note grid */
@media (max-width: 767px){
  #home{ padding-top:14px; }

  .twoLockers{
    flex-direction:column;
    gap:12px;
    padding:10px;
    align-items:stretch;
  }

  #rightPanel{ display:none; }
  .boltStrip{ display:none; }
  .panel{ width:100%; height:auto; }
  .sportNav{ display:none; }

  .stickyArea{
    display:grid;
    grid-template-columns: repeat(2, 1fr);
    gap:14px;
    margin-top:12px;
  }

  .sticky{
    min-height:150px;
  }

  .stickyText{
    font-size: clamp(20px, 5vw, 28px);
    top: 30%;
  }
}

/* Multi-page helper: index.html uses body.home and sport pages use body.sport */
body.home #sport{ display:none; }
body.sport #home{ display:none; }

/* Make sport pages keep the top bar visible */
body.sport .topBar{ display:flex; }
/* Overides the blue from the hrefs for indexs */
.lockerLabel:visited{ color:#000; }
.lockerLabel:hover{ text-decoration:none; }
