@font-face {
  font-family: "BodoniCondC";
  src: local("BodoniCondC"), url("./fonts/BodoniCondC.otf") format("opentype");
  font-weight: normal;
}

@font-face {
  font-family: "GlacialIndifference";
  src: local("GlacialIndifference"), url("./fonts/GlacialIndifference-Regular.otf") format("opentype");
  font-weight: normal;
}

@font-face {
  font-family: "Hexagon";
  src: local("Hexagon"), url("./fonts/hexagon.otf/hexagon.otf") format("opentype");
  font-weight: normal;
}


* {
  margin: 0 auto;
  font-family: "GlacialIndifference";
}

* a {
  color: black;
}

h1 {
  text-align: center;
  font-family: "Hexagon";
  
  padding-top: 10px;
  padding-bottom: 10px;
  padding-left: 10%;
  padding-right: 10%;
}

h3 {
  font-family: "BodoniCondC";
  font-weight: 100;
  font-size: 30px;
}

h4 {
  font-family: "Hexagon";
  padding-bottom: 10px;
  font-size: 20px;
}

p {
  padding-top: 10px;
  padding-bottom: 10px;
  padding-left: 5%;
  padding-right: 5%;
}

.center {
  width: 90%;
  margin: 0 auto;
  text-align: center;
}


/* navigation zones (left, right, bottom) */
.edge-nav .nav-zone {
  position: fixed;
  z-index: 9999;
  color: #fff;
  text-decoration: none;
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .24s, opacity .24s, transform .24s;
  background: var(--nav-bg, #e55bed);
}

.edge-nav .nav-left { left: 0; top: 0; width: 4vw; height: 100%; }
.edge-nav .nav-right { right: 0; top: 0; width: 4vw; height: 100%; }
.edge-nav .nav-bottom { left: 0; right: 0; bottom: 0; height: 5vh; }

/* Visibility helper: toggle .edge-nav--visible on the container to show/hide zones
   Keeps presentation in CSS rather than inline styles. When not visible, nav-zones
   are removed from hit-testing and hidden via opacity for smooth transitions. */
.edge-nav:not(.edge-nav--visible) .nav-zone {
  opacity: 0;
  pointer-events: none;
}

.edge-nav.edge-nav--visible .nav-zone {
  opacity: 1;
  pointer-events: auto;
}

.books img {
  width: 180px;
}

/*room specifics*/
.kitchen {
  display: grid;
  grid-template-columns: auto auto auto auto auto;
  gap: 10px;
}
/*headers*/
.dimensions {
  display: grid;
  grid-template-columns: auto auto auto auto auto auto auto auto auto ;
  gap: 10px;
  height: calc(100% - 10%);
  border-left: 5px solid #472516;
  border-right: 5px solid #472516;
  border-top: 5px solid #472516;
  border-bottom: 5px solid #472516;
}

.neighbours {
  display: grid;
  grid-template-columns: auto auto auto;
  gap: 2px;
}

.twocol {
  display: grid;
  grid-template-columns: auto auto;
  gap: 2px;
}

.blinkies {
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 10%;
}

.vertical {
  display: grid;
  grid-template-columns: auto;
  width: calc(100% - 10%);
  height: 40px;
}

.fourcol {
  display: grid;
  grid-template-columns: auto auto auto auto;
  gap: 10px;
  width: calc(100% - 10%);
  height: calc(100% - 10%);
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

.noticeboard {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: calc(100% - 10%);
  height: calc(100% - 10%);
  background-image: url('./Assets/0_noticeboard.png');
  border-left: 25px solid #472516;
  border-right: 25px solid #472516;
  border-top: 25px solid #472516;
  border-bottom: 25px solid #472516;
}

.desk {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  background-image: url('./Assets/1_transparent.png');
  border: #472516 5px solid;
}

@media (max-width: 1200px) {
  .noticeboard {
    grid-template-columns: 1fr;
  }
  .desk{
    grid-template-columns: 1fr;
  }
  .section {
    width: 100%;
    margin-bottom: 20px;
  }
}

.message {
  width: 250px;
  margin: 0 auto;
  padding: 20px;
  padding-top: 10px;
  box-shadow: 0 10px 10px 2px rgba(0,0,0,0.3);
  margin-bottom: 40px;
  background-color: white;
}

/* colours */

.white {
  background-color: white;
}

.red {
  background-color: #d44141;
}

.redlight {
  background-color: #ffa0a0;
}

.orange {
  background-color: #ed7b12;
}

.orangelight {
  background-color: #ffb169;
}

.yellow {
  background-color: #ffcc00;
}

.yellowlight {
  background-color: #ffd861;
}

.green {
  background-color: #66bd6a;
}

.greenlight {
  background-color: #98dc9b;
}

.blue {
  background-color: #3aa6ed;
}

.bluelight {
  background-color: #b8e3ff;
}

.purple {
  background-color: #ad6cf8;
}

.purplelight {
  background-color: #d9b8ff;
}

.pink {
  background-color: #e55bed;
}

.pinklight {
  background-color: #fbb8ff;
}

.right {
  -webkit-transform: rotate(2deg);
  -moz-transform: rotate(2deg);
  -o-transform: rotate(2deg);
  -ms-transform: rotate(2deg);
  transform: rotate(2deg);
}

.left {
  -webkit-transform: rotate(-2deg);
  -moz-transform: rotate(-2deg);
  -o-transform: rotate(-2deg);
  -ms-transform: rotate(-2deg);
  transform: rotate(-2deg);
}

/* view toggles */
#toggleAbode, #toggleImage {
  position: fixed;
  top: 10px;
  right: 100px;
  display: flex;
  gap: 10px;
  z-index: 1000;
}

/* cross-fade */
#abode {
  transition: opacity 260ms ease, transform 260ms ease;
  opacity: 1;
}

#abode.abode--hidden {
  opacity: 0;
  transform: translateY(6px);
}

/* typewriter effect*/
.typewriter {
  overflow: hidden; /* Ensures the content is not revealed until the animation */
  border-right: .15em solid orange; /* The typwriter cursor */
  white-space: nowrap; /* Keeps the content on a single line */
  margin: 0 auto; /* Gives that scrolling effect as the typing happens */
  letter-spacing: .15em; /* Adjust as needed */
  animation: 
    typing 3.5s steps(40, end),
    blink-caret .75s step-end infinite;
}

/* The typing effect */
@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

/* The typewriter cursor effect */
@keyframes blink-caret {
  from, to { border-color: transparent }
  50% { border-color: orange; }
}


/* honeycomb/floorplan */
.abode--honeycomb {
  display: flex;
  margin: auto;
  padding: 20px;
  width: calc(var(--s) * 3 + 6 * var(--m)); 
  /*variables for honeycomb & hexagons*/
  --s: 240px;
  --m: 4px;
  --f: calc(var(--s) * 1.732 + 4 * var(--m) - 1px);
}

div.hexagon {
  width: var(--s); 
  height: calc(var(--s) * 1.1547);
  margin: var(--m);
  display: inline-block;

  text-align: center;
  line-height: calc(var(--s) * 1.1547);

  clip-path: polygon(0% 25%, 0% 75%, 50% 100%, 100% 75%, 100% 25%, 50% 0%);
  
  margin-bottom: calc(var(--m) - var(--s) * 0.2886);

  transition: all 150ms ease-in-out;
}

.honeycomb::before {
  content: "";
  width: calc(var(--s) / 2 + var(--m));
  float: left;
  height: 20%;
}

.honeycomb::after {
  content: "";
  width: calc(var(--s) / 2 + var(--m));
  float: left;
  height: 20%;
}


/* dimensions/blueprint */
.abodetable, td, th {
  text-align: left;
  padding: 10px;
  border-collapse: collapse;
	border: 1px solid black;
  border-bottom: 2px solid white;
}


div.star {
  height: 200px;
  width: 200px;
  -webkit-clip-path: polygon(50% 0, 79% 90%, 2% 35%, 98% 35%, 21% 90%);
  clip-path: polygon(50% 0, 79% 90%, 2% 35%, 98% 35%, 21% 90%);
  text-align: center;
  line-height: 200px;
  display: inline-block;
}

/* envelope */

.envelope{
  border: 1px solid white;
  border-top: 1px solid lightblue;
  height: 120px;
  width: 200px;
  background-color: white;
  position: relative;
}

.envelope-flap {
  position: absolute;
  border-top: 50px solid lightblue;
  border-left: 100px solid transparent;
  border-right: 100px solid transparent;
}