body {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #000000;
  color: #fff;
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  padding-top: 80px;
  
}

header {
  padding: 20px;
  background-color: #000000;
  text-align: left;
  display: flex;
  align-items: center;
  height: 30px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1;
  
}

nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-left: 20px;
}

nav a {
  color: #fff;
  padding: 14px 20px;
  text-decoration: none;
  text-transform: uppercase;
}

nav a:hover {
  background-color: #ff6600;
  transition: 0.3s;
}

header img {
  max-width: 100%;
  width: auto;
  height: 80px;
  margin: 0;
  vertical-align: middle;
  display: inline-block;
  
}

main {
  width: 100%;
  max-width: 90%;
  margin: 20px auto;
  padding: 0 15px; /* Add padding to prevent content from touching the edges */
}


/* Default layout (for larger screens) */
.content-header {
  width: 100%;
  padding-left: 40px; /* Match content-left padding for alignment */
  margin-bottom: 20px;
  text-align: left;
  margin: 0 auto;
}

/* The title inside the section header */
.content-header h2 {
  color: #ff6600;
  margin: 0; /* Ensure no extra space is added */
}

/* Main content wrapper */
.content-wrapper {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 0 20px;
  margin-bottom: 20px;
}

/* The left content styling */
.content-left {
  width: 60%; /* Allows the left content to take up more space */
  padding: 20px;
  border-radius: 10px;
}

.content-left a{
  color: #ff6600;
}

.content-right {
  width: 40%;
}


h1 {
  text-align: center;
  color: #ff6600;
}

h2 {
  text-align: left;
  color: #ff6600;
}


h1 {
  margin-bottom: 20px;
}

p {
  text-align: justify;
}

.bold-orange {
  font-weight: bold;
  color: #ff6600;
}

/* Tier Container */
.tier-container {
  margin-top: 20px;
  border: 2px solid #444; /* Subtle border change for contrast */
  padding: 15px; /* Increased padding for a better look */
  background-color: #2c2c2c;
  border-radius: 5px;
}

.tier {
  margin-bottom: 20px; /* Space between tiers */
}

.tier h4 {
  color: #fff; /* Text color for tier headings */
  margin-bottom: 10px;
}

.tier-icons {
  display: flex;
  flex-wrap: wrap; /* Ensure items wrap if necessary */
  gap: 5px; /* Space between icons */
  position: relative;
  justify-content: center; /* Center icons horizontally */
}

.tier-icons img {
  width: 70px; /* Uniform width on larger screens */
  transition: transform 0.3s ease; /* Add hover effect */
}

.tier-icons img:hover {
  transform: scale(1.1); /* Slight enlargement on hover */
}

.hover-box {
  display: none;
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  background-color: #333;
  color: #fff;
  padding: 10px;
  border-radius: 5px;
  z-index: 1;
  font-size: 14px;
  text-align: center;
}

.hover-box::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -10px;
  border-width: 10px;
  border-style: solid;
  border-color: #333 transparent transparent transparent;
}

.tier-icons > div {
  position: relative; /* Ensure hover-box is correctly positioned */
}

.tier-icons img:hover + .hover-box {
  display: block;
}

/* For mobile/tap functionality */
.hover-box.clicked {
  display: block;
}





.tier-title {
  background-color: #333;
  color: #fff;
  text-align: center;
  padding: 10px;
  margin-bottom: 10px;
}

.tier {
  margin-bottom: 20px;
}

.tier h4 {
  text-align: center;
  background-color: #222;
  padding: 5px;
  margin-bottom: 5px;
  color: #ff6600;
}

.tier-container h3 {
  text-align: center;
  padding: 5px;
  margin-bottom: 5px;
  color: #ff6600;
}


/* Responsive Image */
.civilization-image {
  width: 100%;
  height: auto;
  border-radius: 5px;
  margin-top: 10px;
}

/* Footer */
footer {
  background-color: #333;
  color: #fff;
  text-align: center;
  margin-top: 40px;
  width: 100%;
}

nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
}

nav ul li {
  margin: 0 15px;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
}

/* Center Content */


.main-article {
  flex: 3;
  background-color: #1e1e1e;
  padding: 25px; /* Increased padding for better spacing */
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  margin-bottom: 20px; /* Add margin to separate from sidebar */
}

.sidebar {
  flex: 1;
  background-color: #ffffff;
  padding: 20px;
  border-radius: 10px;
  margin-top: 20px; /* Increase space between main article and sidebar */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* Slight shadow for emphasis */
}

.main-article h2, .main-article h3 {
  color: #e0e0e0;
}

.news-image {
  width: 100%;
  height: auto;
  margin: 20px 0;
  border-radius: 5px;
}

/* Sidebar */
.sidebar {
  flex: 1;
  background-color: #333;
  padding: 20px;
  border-radius: 10px;
  color: #f0f0f0;
  display: flex;
  flex-direction: column;
}

.sidebar h3 {
  color: #fff;
}

.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar ul li {
  margin-bottom: 20px;
}

.sidebar ul li img {
  width: 100%;
  height: auto;
  border-radius: 5px;
  margin-bottom: 10px;
}

.sidebar ul li a {
  color: #9bd6ff;
  text-decoration: none;
  display: block;
}

.sidebar ul li a:hover {
  text-decoration: underline;
}

.footer1 {
  background-color: #111;
  color: white;
  padding: 30px 0;
  text-align: center;
  font-size: 14px;
  position: relative;
  bottom: 0;
  width: 100%;
  box-shadow: 0px -2px 10px rgba(255, 255, 255, 0.1);
}

/* Vertical Footer links */
.footer1 a {
  color: #ccc;
  display: block;
  margin: 15px 0;
  text-decoration: none;
}

.footer1 a:hover {
  color: #fff;
}

/* Footer container */
.footer-container1 {
  max-width: 1200px;
  margin: 0 auto;
}

/* Footer Styles */
footer {
  background-color: #333;
  color: #fff;
  margin-top: 0;
  clear: both;
}

footer p {
  text-align: center;
}

@media (max-width: 900px) {
  main {
    margin: 0 auto;
    text-align: left;
    padding: 10px;
    max-width: 90%; /* Make the main container narrower */
  }

  .h1 {
    font-size: 0.5em;

  }


  .content-wrapper {
    flex-direction: column; /* Stack the content vertically */
    align-items: center; /* Center the items horizontally */
    gap: 15px; /* Reduce gap size */
    margin: 0 auto;
    width: 100%;
    max-width: 90%; /* Prevent content from stretching too wide */
  }
  .content-left, .content-right {
    flex: 100%; /* Stack vertically */
    max-width: 90%;
    text-align: left; /* Align text left */
    margin-left: 5%;
    width: 100%;
  }


  .content-header {
    order: 1;
    max-width: 80%;
  }

  .content-right {
    order: 2; /* Ensure the tier list appears below the content */
  }

  .content-left {
    order: 3; /* Ensure the content appears first */
  }

  .tier-icons img {
    width: 70px; /* Resize icons for smaller screens */
  }
}

@media (max-width: 768px) {
  main {
    margin: 0 auto;
    text-align: center;

    max-width: 95%; /* Narrow the main container */
  }


  nav {
   display: none;
  }

  .content-wrapper {
    flex-direction: column; /* Stack the content vertically */
    align-items: center; /* Center the items horizontally */
    gap: 15px; /* Reduce gap size */
    margin: 0 auto;
    width: 100%;
    max-width: 90%; /* Prevent content from stretching too wide */
  }
  .content-left, .content-right {
    flex: 100%; /* Stack vertically */
    max-width: 90%;
    text-align: left; /* Align text left */
    width: 100%;
  }

  .content-header {
    order: 1;
  }

  .content-right {
    order: 2; /* Ensure the tier list appears below the content */
  }

  .content-left {
    order: 3; /* Ensure the content appears first */
  }

  .tier-icons img {
    width: 65px; /* Resize icons */
  }
}

@media (max-width: 600px) {
  .tier-icons img {
    width: 60px;
  }

  .main-article, .sidebar {
    padding: 15px;
    text-align: left; /* Center text on very small screens */
  }

  main {
    max-width: 90%; /* Ensure full width on very small screens */
    padding: 10px;
  }

  .content-wrapper {
    flex-direction: column; /* Stack the content vertically */
    align-items: center; /* Center the items horizontally */
    gap: 10px; /* Reduce gap size */
    margin: 0 auto;
    width: 100%;
    max-width: 90%; /* Prevent content from stretching too wide */
  }
}
