/* Global Styles */
* {
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  padding: 10px;
  background: #f1f1f1;
  margin: 0;
}

/* Header */
header {
  padding: 30px;
  text-align: center;
  background: white;
}

header h1 {
  font-size: 50px;
}

/* Navigation Bar */
nav {
  overflow: hidden;
  background-color: #333;
  display: flex;
  justify-content: space-between;
}

nav a {
  display: block;
  color: #f2f2f2;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
}

nav a:hover {
  background-color: #ddd;
  color: black;
}

/* Float right link */
.float-right {
  margin-left: auto;
}

/* Main Layout */
main {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}

/* Main Content */
section.content {
  flex: 2;
  min-width: 60%;
}

/* Sidebar */
aside {
  flex: 1;
  min-width: 30%;
  background-color: #f1f1f1;
  padding: 20px;
}

/* Card Layout */
.card {
  background-color: white;
  padding: 20px;
  margin-top: 20px;
  border-radius: 5px;
  box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}

/* Fake Image */
div.fakeimg {
  background-color: #aaa;
  width: 100%;
  height: 200px; /* Default height */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  font-weight: bold;
}

/* Smaller fake images */
div.fakeimg.small {
  height: 100px;
}

/* Footer */
footer {
  padding: 20px;
  text-align: center;
  background: #ddd;
  margin-top: 20px;
}

/* Responsive Layout */
@media screen and (max-width: 800px) {
  main {
    flex-direction: column;
  }

  section.content, aside {
    width: 100%;
    min-width: unset;
  }
}

@media screen and (max-width: 400px) {
  nav {
    flex-direction: column;
  }

  nav a {
    text-align: left;
    padding: 10px;
  }
}
