/* Global Styles */
body {
  background-color: #000; /* A parchment-like background for a vintage feel */
  margin: 0;
  padding: 0;
  color: #333;
  font-family: 'Georgia', serif;
}

/* Fixed-width container for old-school design */
.container {
  width: 850px;
  margin: 20px auto;
  background-color: #ccc;
  padding: 20px 40px;
  border: 3px solid red;  /* The border that gives it an old-school look */
  background: linear-gradient(to bottom, #a2d907 0%, #ffd100 100%);
}

/* Header and Navigation */
header {
  text-align: center;
  padding-bottom: 20px;
  border-bottom: 2px solid red;

}

header h1 {
  margin-bottom: 10px;
  font-size: 2.5em;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

nav ul li {
  display: inline;
  margin: 0 15px;
}

nav ul li a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
}

/* Main Content */
main {
  padding: 20px 0;
}

section {
  margin-bottom: 40px;
}

section h2 {
  font-size: 1.8em;
  border-bottom: 2px solid red;
  padding-bottom: 10px;
}

/* Fossil Gallery */
.gallery {
  flex-wrap: wrap;
  justify-content: center;
}

.gallery img {
  width: 350px;
  height: auto;
  border: 1px dotted red;
  padding: 3px;
}

/* 3D Model Container */
#container3D {
  width: 800px;
  height: 600px;
  margin: 0 auto; /* centers the container */
  position: relative;
}


/* Footer */
footer {
  text-align: center;
  padding: 15px 0;
  font-size: 0.9em;
  border-top: 2px solidred;
  margin-top: 20px;
}

/* Styles for the info box overlay */
.info-box {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  color: white;
}

.info-content {
  background-color: #000;
  padding: 20px;
  max-width: 500px;
  position: relative;
  text-align: center;
}

.close-btn {
  position: absolute;
  top: 5px;
  right: 10px;
  cursor: pointer;
  font-size: 1.5em;
  font-weight: bold;
}


.gallery div {
  display: flex; flex-direction: column; align-items: center; margin-bottom: 40px; cursor: pointer;
}
.dino-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 20px;
}

.dino-card {
  border: 2px dashed red;
  padding: 15px;
  border-radius: 10px;
  font-family: 'Georgia', serif;
}

.dino-card h3 {
  margin-top: 0;
  color: red;
  font-size: 1.2em;
}
