/*This code was genarated and upgraded with the help of chatgpt*/
/* Global Styles */
body {
  font-family: 'Times New Roman', Times, serif;
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  background-color: #f9f9f9;
}

/* Heading styles */
h1, h2, h3 {
    color: #000000;
    margin-bottom: 0.5em;
  }

/* Header and Navigation */
header {
  background-color: #333;
  color: white;
  padding: 1rem 0;
  text-align: center;
}

nav {
  background-color: #333;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column; /* stacked by default */
  align-items: center;
}

nav ul li {
  margin: 0 0.5rem;
  padding: 0 0.5rem;
  border-right: 1px solid white;
}

nav ul li:last-child {
  border-right: none;
}

nav ul li a {
  color: white;
  text-decoration: none;
}

nav ul li a:hover {
  color: #e0e0e0;
}

/*Active Page Indicator */
nav ul li a.active {
  border-bottom: 2px solid white;
}

/* Intro Section */
.intro {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background-color: #E3BC9A;
  padding: 2rem;
  border-radius: 10px;
  margin: 2rem;
}

.intro-left,
.intro-side {
  width: 100%;
  text-align: center;
}

.about-text h2 {
  margin-top: 0;
}

.my-image img {
  width: 100%;
  max-width: 200px;
  height: auto;
  border-radius: 50%;
  border: 3px solid #333;
  object-fit: cover;
}

.intro-cont {
  background-color: #e0e0e0;
  padding: 1rem;
  border-radius: 8px;
  margin-top: 1rem;
}

/* Flatland Section (words + square) */
.flatland-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin-top: 2rem;
  flex-wrap: wrap;
  text-align: right;
}

#words {
  width: 250px;
  font-size: 25px;
  padding: 5px;
  border-radius: 10%;
  border-right: 5px solid red;
}

#square {
  width: 100px;
  height: 100px;
  background-color: gray;
  transition: background-color 0.3s;
}

/* Footer */
footer {
  background-color: #333;
  color: white;
  text-align: center;
  padding: 1rem;
  margin-top: 3rem;
  font-size: 0.9rem;
}

/* Responsive Enhancements */
@media (min-width: 768px) {
  .intro {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    text-align: left;
  }

  .intro-left,
  .intro-side {
    width: 48%;
  }

  nav ul {
    flex-direction: row;
    justify-content: center;
  }
  
  nav ul li{
    margin: 0 1rem;
  }
}
