/* Reset default browser spacing */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #000000;
}

/* Wrapper flex column */
.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
header {
    background-color: #fff;
    text-align: center;
    padding: 0; 
}

header .logo {
    max-width: 1500px;
    width: 100%;
    display: block;
    margin: 0 auto;
}

/* Nav bar */
nav {
    background-color: #9c9d9d;
    display: flex;
    justify-content: center; 
    align-items: flex-start;
    padding: 10px 20px;
    position: relative;
}

/* Nav links */
.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: rgb(0, 0, 0);
    text-decoration: none;
    padding: 5px 10px;
}

.nav-links a.active {
    background-color: white;
    color: black;
    border-radius: 4px;
}

.nav-links a:hover {
    color: #6e6e6e;
}

/* Social icons in nav */
.nav-socials {
    position: absolute;
    right: 20px;
    display: flex;
    gap: 25px;       
}

.nav-socials a {
    color: rgb(0, 0, 0);
    font-size: 26px; 
    text-decoration: none;
}

.nav-socials a:hover {
    color: #838383;
}

.nav-socials a.youtube:hover {
    color: rgb(227, 16, 16);
}

/* Main content area */
main {
    flex: 1;
    display: flex;
    justify-content: center; 
    align-items: flex-start;    
    background-color: white;
    border-radius: 5px;
}

main .content {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 40px;
}

/* Text container */
main .content .text {
    max-width: 500px; 
    font-size: 18px;  
}

main .content .text h2 {
    font-size: 32px;
}

main .content .text h3 {
    font-size: 24px;
}

/* Lists */
ul {
    list-style-type: square;
    padding-left: 20px;
}

/* Footer */
footer {
    background-color: #9c9d9d;
    color: rgb(0, 0, 0);
    text-align: center;
    padding: 10px;
}

footer i {
    font-size: 24px;
    margin: 0 10px;
}

footer a {
    color: rgb(0, 0, 0);
    text-decoration: none;
    margin: 0 10px;
}

footer a:hover {
    color: #707070;
}

footer a.youtube:hover i {
    color: rgb(227, 16, 16);
}

footer p {
    font-size: 10px;
    margin-top: 10px;
    margin-bottom: 0;
}

/* Animations */
.slide-left,
.slide-right {
    opacity: 0;
    transition: 0.8s;
}

.slide-left { transform: translateX(-100%); }
.slide-right { transform: translateX(100%); }

.show {
    transform: translateX(0);
    opacity: 1;
}

/* FAQ */
.faq-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

/* FAQ */
.faq-section {
  max-width: 800px;
  margin: 0 auto;   
  padding: 20px;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: #7a7a7a;        
  color: #000000;             
  border: none;
  padding: 15px 20px;
  font-size: 18px;
  cursor: pointer;
  margin-bottom: 5px;
}

.faq-question:hover {
  background: #949494;        
}

.faq-answer {
  display: block;
  max-height: 0;
  overflow: hidden;
  background: #f5f4f4;        
  color: #000000;             
  padding: 0 20px;         
  transition: max-height 0.2s ease-out, padding 0.2s ease-out;
  border-left: 3px solid #000000;
}

.faq-answer p {
  margin: 10px 0;
}

/* This class is toggled via JS to open the box */
.faq-answer.active {
  max-height: 500px;       
  padding: 10px 20px;
}

/* FAQ item entrance animation */
.faq-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Used for the entrance animation only */
.faq-item.entry-show {
  opacity: 1;
  transform: translateY(0);
}

/* ================= MOBILE FIX (MUST BE LAST) ================= */
@media (max-width: 768px) {
  nav {
    flex-direction: column;
    align-items: center;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }

  .nav-socials {
    position: relative;   /* FIX */
    right: auto;          /* FIX */
    margin-top: 10px;
    justify-content: center;
    width: 100%;
  }

  main .content {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 768px) {
  model-viewer {
    width: 280px;
    height: 280px;
  }
}

a {
  color: rgb(5, 5, 5);
}

.model-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.model-credit {
  margin-top: 8px;
  font-size: 0.85rem;
  opacity: 0.7;
}
