@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

body {
  background: #b0e0e6 url('https://www.transparenttextures.com/patterns/graphy.png');
  color: #000080;
  font-family: 'Press Start 2P', monospace;
  margin: 0;
  padding: 0;
}

.container {
  display: grid;
  grid-template-areas:
    "header header"
    "nav main"
    "footer footer";
  grid-template-columns: 200px 1fr;
  grid-template-rows: 120px 1fr auto;
  min-height: 100vh;
  max-width: 900px;
  margin: 30px auto;
  border: 4px double #ff69b4;
  background: #fff8dc;
  box-shadow: 0 0 20px #ff69b4;
}

.header {
  grid-area: header;
  background: linear-gradient(90deg, #ffb6c1 0%, #ffe4e1 100%);
  border-bottom: 4px dotted #ff69b4;
  text-align: center;
  padding: 10px 0;
  position: relative;
}
.header h1 {
  font-size: 2rem;
  margin: 0;
  color: #000080;
  text-shadow: 2px 2px #ff69b4;
}
.header .gif {
  position: absolute;
  right: 20px;
  top: 10px;
  width: 60px;
}

.nav {
  grid-area: nav;
  background: #e0ffff;
  border-right: 4px dashed #ff69b4;
  padding: 20px 10px;
}
.nav ul {
  list-style: none;
  padding: 0;
}
.nav li {
  margin-bottom: 18px;
  padding-bottom: 8px;
}
.nav a {
  color: #000080;
  text-decoration: none;
  font-weight: bold;
  background: #ffb6c1;
  padding: 6px 12px;
  border-radius: 8px;
  border: 2px solid #ff69b4;
  box-shadow: 1px 1px 0 #fff, 2px 2px 0 #ff69b4;
  transition: background 0.2s;
}
.nav a:hover {
  background: #ffe4e1;
  color: #ff1493;
}

a:focus, .nav a:focus, .webring a:focus, .footer-images a:focus, button:focus {
  outline: 2px solid #ff69b4;
  outline-offset: 2px;
  background: #ffe4e1 !important;
  color: #ff1493 !important;
  box-shadow: 0 0 6px #ffb6c1, 0 0 0 4px #fff8dc;
  border-color: #ff69b4 !important;
}

.main {
  grid-area: main;
  padding: 30px;
  background: #fff8dc url('https://www.transparenttextures.com/patterns/diamond-upholstery.png');
  min-height: 300px;
}
.main h2 {
  color: #ff1493;
  margin-top: 0;
}
.main .gif {
  margin-top: 20px;
  width: 120px;
}

.webring {
  margin-top: 40px;
  padding: 18px 20px;
  background: #e0ffff;
  border: 3px dashed #ff69b4;
  border-radius: 12px;
  box-shadow: 2px 2px 0 #ffb6c1;
  text-align: center;
}
.webring h3 {
  font-size: 1.1rem;
  color: #000080;
  margin: 0 0 10px 0;
  text-shadow: 1px 1px #ff69b4;
}
.webring ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 22px;
}
.webring li {
  display: inline;
}
.webring a {
  color: #ff1493;
  background: #fff8dc;
  border: 2px solid #ff69b4;
  border-radius: 6px;
  padding: 4px 14px;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.9rem;
  text-decoration: none;
  box-shadow: 1px 1px 0 #ffb6c1;
  transition: background 0.2s, color 0.2s;
}
.webring a:hover {
  background: #ffb6c1;
  color: #000080;
}

.footer {
  grid-area: footer;
  background: #ffb6c1;
  border-top: 4px dotted #ff69b4;
  text-align: center;
  font-size: 0.9rem;
  color: #000080;
  padding: 10px 0 10px 0;
  min-height: 60px;
  box-sizing: border-box;
  overflow: visible;
  position: relative;
}
.footer-images {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.footer-images img {
  height: 36px;
  background: #fff8dc;
  border: 2px solid #ff69b4;
  border-radius: 6px;
  padding: 2px 4px;
  box-shadow: 1px 1px 0 #ffb6c1;
  transition: transform 0.2s;
}
.footer-images img:hover {
  transform: scale(1.12);
  border-color: #ff1493;
}
