


body {
  background: url(background2.png);
  
  background-repeat: repeat;
}

a {
  color: #0000ff;
  text-decoration: none;
}

.content-wrap {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 1em 0;
  box-sizing: border-box;
}

header {
  background: transparent;
  padding: 1em;
  text-align: center;
}

nav {
  background: #e8fce0;
  text-align: center;
  padding: 0.5em;
}

nav a {
  color: #f53d41;
  text-decoration: none;
  margin: 0 0.5em;
}

footer {
  background: transparent;
  padding: 1em;
  text-align: center;
}

.layout {
  display: flex;
  gap: 1em;
  box-sizing: border-box;
  justify-content: center;  /* <-- center the columns horizontally */
  max-width: 100%;          /* ensure it fits inside .content-wrap */
}

aside, main {
  padding: 16px;
  border: 0px solid #ccc;
  min-height: 300px;
  box-sizing: border-box;
}

.announcement {
  display: inline-block;
  height: 100%;
  text-align: center;
  width: 100%;
  background: black;
  color: white;
  font-family: Arial, sans;
  margin: 0;
  padding: 0;
  vertical-align: middle;
  font-size: 0.8em;
}

.announcement a { 
  color: #ccc; 
}

.announcement a:hover {
  color: red;
}

.left  { flex: 0 0 20%; background: #eeeeee; }
.main  { flex: 0 0 60%; background: #eeeeee; }
.right { flex: 0 0 20%; background: #eeeeee; }

@media (max-width: 768px) {
  .layout {
    flex-direction: column;
  }
  .left, .main, .right {
    flex: 1 1 100%;
  }
}