/* CSS Document */
body{
  background-color:black;
  min-height: 100vh;
  color: white;
  font-family: "Montserrat", sans-serif;
}

* {
	margin: 0px;
	padding: 0px;
}

.purpose-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 3rem;
}

/* spøgelserne placering */
.ghosts-grid {
  position: absolute;
  top: 1000px;
  right: 40px; /* står nu til højre */
  width: 200px;
}
.ghosts-section {
  padding-right: 130px; /*teksten står ikke i spøgelserne*/
}

  .ghosts-grid {
    justify-content: right;
}
/* Højre kolonne */
.purpose-visual {
  flex: 1;
  display: flex;
  align-items: stretch;
  justify-content: center;
}


/* Pac-Man billede øverst til højre */
.pacman-img {
  position: absolute;
  top: 40px;
  right: 40px;
  max-width: 160px;
  height: auto;
}

/* RESPONSIVT: stack på mobil */
@media (max-width: 900px) {
  .purpose-inner {
    flex-direction: column;
  }

  .purpose-section {
    padding: 3rem 1.5rem;
  }
}

.menu-bar {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	background: #638A9E;
	color: white;
	height: 10px;
	padding: 1rem;
}

.menu1 {
	display: flex;
	flex-direction: row;
	list-style-type: none;
	font-family: Impact, Haettenschweiler, "Franklin Gothic Bold", "Arial Black", "sans-serif";

}

.menu1 > li {
	padding: 10px;
	overflow: hidden;
	font-family: Impact, Haettenschweiler, "Franklin Gothic Bold", "Arial Black", "sans-serif";

}

.menu-box {
	background: #638A9E;
	height: 100%;
	width: 30px;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}
.menu-icon, .menu-icon::before, .menu-icon::after {
	display: block;
	background: white;
	position: absolute;
	height: 4px;
	width: 30px;
	transition: transform 400ms;
	border-radius: 2px;
}

.menu-icon::before {
	
	content:"";
	margin-top: -8px;
	
}
.menu-icon::after {
	content:"";
	margin-top: 8px;
}

#menu-activate:checked + .menu-box, .menu-icon::before {
	margin-top: 0px;
	transform: rotate(45deg)
}
	
#menu-activate:checked + .menu-box, .menu-icon {
	background: rgba(255, 255, 255, 0)
}

#menu-activate:checked + .menu-box, .menu-icon::after {
	margin-top: 0px;
	transform: rotate(-45deg)
}

#menu-activate {
	
	display: none;
}
/*menu baren responsive*/
@media(max-width: 700px) {
	
	.menu-box {
		display: flex;
	}
	
	.menu1 {
		position: absolute;
		top: 0;
		margin-top: 100px;
		left:0;
		flex-direction: column;
		width: 100%;
		justify-content: center;
		align-items: center;
	}

	#menu-activate ~ .menu1 li {
		height: 0;
		margin: 0;
		padding: 0;
		border: 0;
		transition: height 400ms;
		display: none;
	}
	
	#menu-activate:checked ~ .menu1 li {
		border: 1px solid #333;
		height: 2.5em;
		padding: 0.5em;
		transition: height 400ms;
		display: block;
	}
	
	.menu1 > li {
		display: flex;
		margin: 0;
		padding: 0.5em;
		width: 100%;
		color: white;
		background: #222;	
	}
}

 .welcome h1 {
    font-family: "skope", serif;
	font-weight: 3300px;
	font-style: normal;
}

.flexbox{
	background:white;
	display: flex;
	flex-flow: wrap;
	flex-direction: row;
	justify-content: space-around;
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* gør navbar hvid */
a {
  color: inherit;
  text-decoration: none;
}

/* NAVBAR */
.navbar {
  background: #061a3a;
  border-bottom: 3px solid #000;
  position: sticky;
  top: 0;
  z-index: 10;
	font-family: "cofo-sans-pixel", sans-serif;
font-weight: 400;
font-style: normal;
}
/* NAVBAR bredte */
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 1.5rem;
  padding: 0.75rem 1.5rem;
}

.nav-link {
  font-size: 0.8rem;
  text-transform: uppercase;
  padding: 0.4rem 0.8rem;
  transition: 0.15s;
}

.nav-link:hover {
  background: #0059ff;
}

.nav-link.active {
  background: #0059ff;
}

.hero-text{
font-family: "cofo-sans-pixel", sans-serif;
font-size: 30px;
	
}
.tab-nav{
font-family: "cofo-sans-pixel", sans-serif;
font-weight: 400;
font-style: normal;
	
}
/* LAYOUT */
.page-wrapper {
  max-width: 1100px;
  margin: 2.5rem auto 4rem;
  padding: 0 1.5rem;
}

/*titlerne størrelse og placering*/
.om-spillet-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2rem;
  
}
/* fruits og powerpills */
.ghosts-grid {
  display: grid;
  gap: 1.5rem;
}

/* TEKST */
.section-text {
  font-size: 20px;
	font-family: "cofo-sans-pixel", sans-serif;
font-weight: 400;
font-style: normal;
}


/* Maze grid */
.maze-wrapper {
  position: relative;
  width: 100%;
  min-height: 320px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 0 3px #001d6b;
}

.maze {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(#001d6b 1px, transparent 1px),
    linear-gradient(90deg, #001d6b 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Farver */
.tiny-ghost:nth-child(1) { background: #ff0000; }
.tiny-ghost:nth-child(2) { background: #ff9ed1; }
.tiny-ghost:nth-child(3) { background: #00e0ff; }
.tiny-ghost:nth-child(4) { background: #ffb852; }

.ghosts-heading {
	font-family: "cofo-sans-pixel", sans-serif;
font-weight: 400;
font-style: normal;
	color: rgba(255,226,0,1.00);
	
}

.ghosts-text{
font-family: "cofo-sans-pixel", sans-serif;
font-weight: 400;
font-style: normal;
	font-size: 20px;
	
}

/* Store ghosts */
.ghost-shape {
  width: 55px;
  height: 60px;
  border-radius: 30px 30px 8px 8px;
  margin: 0 auto 0.6rem;
  position: relative;
}

.ghost--clyde  .ghost-shape { background: #ffb852; }
.ghost--blinky .ghost-shape { background: #ff0000; }
.ghost--pinky  .ghost-shape { background: #ff9ed1; }
.ghost--inky   .ghost-shape { background: #00e0ff; }

.ghost-feet {
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
}

.ghost-pupil {
  width: 8px;
  height: 8px;
  background: #001d6b;
  border-radius: 50%;
  position: absolute;
  top: 22px;
}

.ghost-pupil.left  { left: 11px; }
.ghost-pupil.right { right: 11px; 
}
/* ===== Spøgelserne – layout ===== */


@media (max-width: 900px) {
  .ghosts-layout {
    grid-template-columns: 1fr;
  }
}

/* ===== Spøgelses-kort ===== */

.ghosts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;

}
.ghost-card h3 {
	font-size:20px;
	font-family:"cofo-sans-pixel", sans-serif;

}
/* FORMÅL-SEKTION - overordnet */
.formaal-section {
  background: #000;
  color: #fff;
  padding: 4rem 2rem;
  font-family: "cofo-sans-pixel", "Montserrat", system-ui, sans-serif;
}

/* Container: 2 kolonner */
.formaal-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 3rem;
  align-items: flex-start;
}

/* VENSTRE TEKST-KOLONNE */
.formaal-left {
  flex-basis: 55%;
  line-height: 1.8;
  font-size: 18px;
}
/*spørgelser navne*/
.ghost-card {
  text-align: center;
  font-family: "Press Start 2P";
  font-size: 0.6rem;
}

/* HØJRE VISUEL KOLONNE */
.formaal-right {
  flex-basis: 45%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1.6rem;
}

/* MAZE-RAMME */
.maze-box {
  position: relative;
  width: 100%;
  max-width: 420px;      /* justér efter behov */
  height: 420px;         /* fast højde for ramme-look */
  background: #000;
  border-left: 6px solid #003bff;
  border-top: 6px solid #003bff;
  border-right: 6px solid #003bff;
  box-shadow: 0 0 0 2px rgba(0,0,0,0.6);
  overflow: hidden;
  border-radius: 6px 6px 0 0;
}

/*pac-man billede på formål*/
.pacman-big {
  position: absolute;
  top: 330px;            
  left: 70%;
  transform: translateX(-50%);
}

.ghost-small {
position: absolute;
  top: 740px;            
  left: 58%;
  width: 200px;
  height: auto;
  display: block;
}

/* RESPONSIV: stack kolonner på mindre skærme */
@media (max-width: 900px) {
  .formaal-inner {
    flex-direction: column-reverse; /* grafik under teksten */
    align-items: center;
  }

  .pacman-big {
    max-width: 160px;
    top: 50px;
  }
}
.fruits {
position: absolute;
  top: 750px;            
  left: 55%;
  width: 250px;
  height: auto;
  display: block;
}

.bandai{
position: absolute;
  top: 150px;            
  left: 100px;
  width: 300px;
  height: auto;
  display: block;
}
.switch{
	position: absolute;
  top: 890px;            
  left: 660px;
  width: 300px;
  height: auto;
  display: block;
}
.joystick{
	position: absolute;
  top: 2px;            
  left: 90px;
  width: 200px;
  height: auto;
  display: block;
}
.front-pacman{
	position: absolute;
  top: 1700px;            
  left: 920px;
  width: 200px;
  height: auto;
  display: block;
	
}
.pil{
	position: absolute;
  top: 200px;            
  left: 90px;
  width: 200px;
  height: auto;
  display: block;
}
.ghost-card{
  display:contents;
}

.power{
position: absolute;
  top: -300px;            
  left: -200px;
  width: 200px;
  height: auto;
  display: block;
}