:root {
  --primary-color: #3e4a47;
  --accent-color: #3e4a47;
  --light: #efe9dc;
  --dark: #3e4a47;
  --font: 'Segoe UI', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font);
}

body {
  background: var(----light);
  color: var(--light);
  line-height: 1.6;
}

header {
  background: var(--primary-color);
  padding: 0.5rem 1rem;
}

.site-header {
  text-align: center;
}

.header-socials {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.header-socials a {
  margin-left: 0.5rem;
  color: var(--primary-color);
  font-size: 1.2rem;
  text-decoration: none;
}

nav {
  background: var(--primary-color);
  padding: 0.5rem 1rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  text-align: center;
}

nav a {
  color: var(--light);
  margin: 0 0.8rem;
  text-decoration: none;
  font-weight: bold;
}

section {
  padding: 3rem 2rem;
  max-width: 1000px;
  margin: auto;
}

.game, .article {
  display: flex;
  flex-wrap: wrap;
  margin: 2rem 0;
  padding: 1.5rem;
  border-radius: 10px;
  background: #dfd8c5;
  gap: 1.5rem;
  align-items: center;
  color: var(--primary-color);
}

.game img, .article img {
  width: 300px;
  border-radius: 10px;
}

.game-description, .article-description {
  align-self: flex-start;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.game-description h2, .article-description h2 {
  color: var(--accent-color);
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

form input, form textarea {
  padding: 0.8rem;
  border: 2px solid var(--primary-color);
  border-radius: 5px;
  font-size: 1rem;
  background-color: white;
  color: black;
}

form button {
  background: var(--accent-color);
  color: var(--light);
  padding: 0.8rem;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
}

footer {
  background: var(--primary-color);
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.9rem;
  color: var(--light);
}

footer .socials {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.socials a {
  margin: 0 0.5rem;
  color: var(--light);
  text-decoration: none;
  font-size: 1.2rem;
}

.logo {
  width: 128px;
  height: 128px;
  margin: 1rem auto;
}

#about,
#contact {
  background: #e0dbcc;
  padding-left: 1rem;
  color: var(--primary-color);
  border-left: 4px solid var(--accent-color);
}

#games, #news, #text {
  padding: 1rem 2rem;
}

#text {
  margin: 3rem auto;
  background: var(--light);
  color: var(--dark);
}

.chat-bubble {
  max-width: 75%;
  padding: 0.8rem 1rem;
  border-radius: 1rem;
  position: relative;
}

.incoming {
  background-color: #ffffff;
  align-self: flex-start;
  border-top-left-radius: 0;
}

.outgoing {
  background-color: var(--primary-color);
  color: white;
  align-self: flex-end;
  border-top-right-radius: 0;
}

.chat-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (max-width: 600px) {
  header img.logo {
    width: 64px;
    height: 64px;
    margin: 0.5rem auto;
  }

  header h1 {
    font-size: 1.5rem;
  }

  nav a {
    display: inline-block;
    margin: 0.5rem;
    font-size: 0.9rem;
  }

  section {
    padding: 1.5rem 1rem;
  }

  #about,
  #contact {
    border-left: none;
  }

  nav a {
    display: inline-block;
    margin: 0.5rem;
    font-size: 0.9rem;
  }

  .game, .article {
    flex-direction: column !important;
    align-items: flex-start;
  }

  .game img, .article img {
    width: 100%;
    max-width: 100%;
  }
}