body {
  background-color: #0c1d12;
  font-family: "Courier New", "Momo Trust Display", monospace;
  font-size: large;
  margin: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  color: #e29a9a;
  
  position: relative;
}

body::before {
    content: ''; 
    background-image: url('/images/clube-da-luta.jpg'); 
    background-repeat: no-repeat; 
    background-size: cover; 
    background-attachment: fixed; 
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.15; 
    z-index: -1; 
}

body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(139, 0, 0, 0.1) 2px, rgba(139, 0, 0, 0.1) 4px);
    pointer-events: none;
    z-index: -1;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(to bottom, #8b0000, #0c1d12);
  color: #ffd700;
  padding: 15px 40px;
  border-bottom: 3px solid #d4af37;
  position: relative;
}

header::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 0;
    right: 0;
    height: 3px;
    background: #d4af37;
    clip-path: polygon(0 0, 100% 0, calc(100% - 20px) 100%, 20px 100%);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}

nav a {
  text-decoration: none;
  color: #ffd700;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 2px;
  padding: 8px 16px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  font-family: "Courier New", monospace;
}

nav a:hover {
  color: #8b0000;
  background: #ffd700;
  border: 2px solid #8b0000;
  transform: skew(-5deg);
}

main {
  flex: 1;
  width: 90%;
  margin: 0 auto;
  padding: 20px 15px;
  position: relative;
}

footer {
  background: linear-gradient(to top, #8b0000, #0c1d12);
  color: #ffd700;
  text-align: center;
  padding: 15px;
  border-top: 3px solid #d4af37;
  font-family: "Courier New", monospace;
}

.main-content {
  display: flex;
  flex-direction: column;
  align-items: center;   
  min-height: 70vh; 
  color: #7e0a0a;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
  background: rgba(0, 0, 0, 0.7);
  border: 3px solid #d4af37;
  padding: 2rem;
  margin: 1rem 0;
  position: relative;
}

.main-content::before {
    content: "⚠️";
    position: absolute;
    top: -15px;
    left: -15px;
    background: #8b0000;
    color: #ffd700;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    border: 2px solid #ffd700;
}

.home-content {
  font-family: "Courier New", "Momo Trust Display", sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;   
  min-height: 50vh;
  color: #ffd700;
  font-weight: bold;
  width: 100%;
  background: rgba(12, 29, 18, 0.8);
  border: 2px solid #8b0000;
  padding: 1.5rem;
}

.itens-lado {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  margin: 2rem auto;
  width: 100%;
  gap: 2.5rem;
  max-width: 10000px;
  text-align: center;
}

.itens-lado div {
  display: flex;
  flex-direction: column; 
  justify-content: center;
  align-items: center; 
  padding: 1.5rem;
  background: rgba(139, 0, 0, 0.2);
  border: 1px solid #d4af37;
  transition: all 0.3s ease;
}

.itens-lado div:hover {
  background: rgba(139, 0, 0, 0.4);
  transform: translateY(-5px);
  border-color: #ff6b6b;
}

.foto-projetos {
  display: block;
  margin: 10px 0;
  width: 300px;
  border-radius: 5px;
  border: 2px solid #8b0000;
  transition: all 0.3s ease;
}

.foto-projetos:hover {
  transform: scale(1.05);
  border-color: #ffd700;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.momo-trust-display-regular {
  font-family: "Momo Trust Display", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.tyler-highlight {
  color: #ff6b6b;
  font-weight: 900;
  text-transform: uppercase;
  text-shadow: 2px 2px 0px #000000;
}

.rule-text {
  background: linear-gradient(45deg, #8b0000, #ffd700);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 900;
  font-size: 1.2em;
}

@media (min-width: 1200px) {
  main {
    width: 85%;
  }
  
  .foto-projetos {
    max-width: 350px;
  }

  .itens-lado div {
    padding: 1.5rem;
    max-width: 380px;
  }

  .itens-lado {
    gap: 2rem;
  }

  h1, h2 {
    letter-spacing: 2px;
  }
}

@media (max-width: 1199px) and (min-width: 768px) {
  .itens-lado {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
  }

  .itens-lado div {
    width: 45%;
    max-width: 320px;
    padding: 1rem;
  }

  .foto-projetos {
    width: 100%;
    max-width: 280px;
  }

  main {
    width: 90%;
    padding: 20px 15px;
  }

  h1 {
    font-size: 1.8em;
  }

  h2 {
    font-size: 1.4em;
  }

  .home-content {
    min-height: 60vh;
    padding: 1.5rem;
  }
}

@media (max-width: 767px) {
  .itens-lado {
    flex-direction: column;
    align-items: center;
    padding-bottom: 30px;
    gap: 1.5rem;
    margin: 1rem 0;
  }

  .itens-lado div {
    width: 85%;
    padding: 1rem;
    margin: 0.5rem 0;
  }

  .foto-projetos {
    width: 100%;
    max-width: 250px;
    margin: 8px 0;
  }

  main {
    width: 95%;
    padding: 15px 10px;
  }

  header {
    flex-direction: column;
    align-items: center;
    padding: 8px 15px;
  }

  nav ul {
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
  }

  h1 {
    font-size: 1.6em;
    text-align: center;
  }

  h2 {
    font-size: 1.3em;
    text-align: center;
  }

  footer {
    font-size: 0.85em;
    padding: 10px;
  }

  .home-content, .main-content {
    padding: 0rem;
    min-height: 50vh;
  }
}

@media (max-width: 400px) {
  body {
    font-size: medium;
    border-width: 3px;
    padding-bottom: 60px;
  }

  .foto-projetos {
    max-width: 220px;
  }

  header {
    padding: 6px 8px;
  }

  nav a {
    font-size: 0.75em;
    padding: 5px 10px;
  }

  .home-content, .main-content {
    padding: 0.8rem;
    min-height: 45vh;
  }

  .itens-lado div {
    width: 90%;
    padding: 0.8rem;
  }

  h1 {
    font-size: 1.4em;
  }

  h2 {
    font-size: 1.2em;
  }

  footer {
    padding: 6px;
    font-size: 0.8em;
  }

  .itens-lado {
    gap: 1rem;
  }
}

@media (max-width: 1024px) and (min-width: 768px) and (orientation: portrait) {
  .itens-lado div {
    width: 48%;
    max-width: 300px;
  }
  
  .foto-projetos {
    max-width: 260px;
  }
}

.gif-centralizado {
    max-width: 250px; 
    width: 100%; 
    display: block;
    margin: 30px auto;
    border: 2px solid #bb0921; 
    border-radius: 5px;
}

.gif-tyler-about {
    max-width: 700px; 
    width: 100%; 
    height: auto;
    display: block;
    margin: 30px auto;
    border: 2px solid #bb0921;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}