@charset "UTF-8";

* {
  box-sizing: border-box;
}

html {
  cursor: url('./imagens/pontinha.cur'), auto;
}

body {
  font-family: 'Courier New', monospace;
  background-image: url('./imagens/MusiciansDay_background.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: center;
  color: #CED7F2;
  margin: 0 auto;
  line-height: 1.6;
  max-width: 800px;
  padding: 0 1rem;
}

html a:hover {
  cursor: url('./imagens/desinho.cur'), pointer;
}

/* Header */
.header-container {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
  margin-bottom: 0;
  border-radius: 5px;
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.5);
  perspective: 1000px;
}

.header-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.header-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: shake 0.6s infinite;
  pointer-events: auto;
  width: 50%;
  max-width: 300px;
  height: auto;
}

.header-overlay:hover {
  animation: shake 0.6s infinite, pulse 2s infinite;
}

@keyframes shake {
  0% { transform: translate(-50%, -50%) translate(0px, 0px); }
  10% { transform: translate(-50%, -50%) translate(-2px, -2px); }
  20% { transform: translate(-50%, -50%) translate(2px, -2px); }
  30% { transform: translate(-50%, -50%) translate(-2px, 2px); }
  40% { transform: translate(-50%, -50%) translate(2px, 2px); }
  50% { transform: translate(-50%, -50%) translate(-1px, -1px); }
  60% { transform: translate(-50%, -50%) translate(1px, -1px); }
  70% { transform: translate(-50%, -50%) translate(-1px, 1px); }
  80% { transform: translate(-50%, -50%) translate(1px, 1px); }
  90% { transform: translate(-50%, -50%) translate(0px, 0px); }
  100% { transform: translate(-50%, -50%) translate(0px, 0px); }
}

/* Navegação com texto rolando */
nav.marquee-container {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  background: linear-gradient(90deg, #513973, #3E3159, #383A59, #2E4559, #284B59);
  border-radius: 5px;
  height: 2.5rem;
  display: flex;
  align-items: center;
  margin: 0 0 1rem 0;
}

nav.marquee-container .marquee {
  display: inline-block;
  padding-left: 100%;
  animation: scroll-left 15s linear infinite;
  font-weight: bold;
  color: #CED7F2;
}

@keyframes scroll-left {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-100%); }
}

/* Post com imagem + texto + links */
.post-with-image {
  background-color: #313E59;
  border: 2px solid #C9BDF2;
  border-radius: 5px;
  padding: 1rem;
  margin-bottom: 1rem;
  color: #CED7F2;
}

.image-text-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.image-side img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 5px;
  border: 2px solid #C9BDF2;
  display: block;
}

.text-side {
  flex: 1;
}

.text-side h4 {
  margin: 0 0 0.5rem 0;
}

.text-side p {
  margin: 0;
  text-align: justify;
  font-family: "Kalam", cursive;
}

.links-below {
  margin-top: 1rem;
  display: inline-flex;
  justify-content: center;
  gap: 1rem;
  width: 100%;
}

.links-below a {
  text-decoration: none;
  color: #CED7F2;
  font-weight: bold;
  border: 1.5px solid #CED7F2;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  transition: background-color 0.2s, color 0.2s;
  white-space: nowrap;
}

.links-below a:hover {
  background-color: #CED7F2;
  color: #1D1340;
}

/* Botão voltar */
.back-button {
  text-align: center;
  margin: 2rem 0;
}

.back-button a {
  text-decoration: none;
  color: #CED7F2;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  border: 1.5px solid #CED7F2;
  border-radius: 4px;
  transition: background-color 0.2s, color 0.2s;
  display: inline-block;
  cursor: pointer;
}

.back-button a:hover {
  background-color: #CED7F2;
  color: #1D1340;
}

/* Rodapé */
footer {
  text-align: center;
  font-size: 0.85rem;
  color: #CED7F2;
  padding: 2rem 0;
  margin-top: 4rem;
}

/* Responsividade */
@media (max-width: 600px) {
  body {
    padding: 0 0.5rem;
  }

  .header-container {
    height: auto;
  }

  nav.marquee-container {
    margin: 0 0 1rem 0;
  }

  .header-overlay {
    width: 100%;
    max-width: 180px;
  }

  .image-text-wrapper {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .links-below {
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
  }

  /* Ocultar scrollbar apenas em mobile */
  html, body {
    overflow: -moz-scrollbars-none; /* Firefox antigo */
    -ms-overflow-style: none;       /* IE 10+ */
    scrollbar-width: none;           /* Firefox moderno */
  }

  html::-webkit-scrollbar,
  body::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
  }
}

/* Scrollbar personalizada (Desktop) */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #191A26;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb {
  background-color: #CED7F2;
  border-radius: 5px;
  border: 2px solid #191A26;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #AEBBE0;
}

/* Scrollbar para Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: #CED7F2 #191A26;
}
