/*Body handles the fixed PNG background image */
body { 
    margin: 0; 
    padding: 0; 
    height: 100vh; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    background-image: url('https://img.freepik.com/free-photo/blue_53876-88970.jpg?semt=ais_hybrid&w=740&q=80'); 
    background-size: cover; 
    background-position: center; 
    background-attachment: fixed; 
    cursor: url('splat_cursor.png'), auto; 
}

/* text settings */
.orbitron-custom { 
    font-family: "Orbitron", sans-serif; 
    font-optical-sizing: auto; 
    font-style: normal; 
}


h1 { 
    font-family: "Orbitron", sans-serif; 
    font-size: 2rem; 
    color: #ffffff; 
    font-weight: 800; 
}

h2 { 
    font-family: Arial, Helvetica, sans-serif; 
    font-size: 2.5rem; 
    color: #e0e0e0; 
    font-weight: 600; 
}

p { 
    font-family: Arial, Helvetica, sans-serif; 
    font-size: 2rem; 
    color: #cccccc; 
    font-weight: 400; 

}
h3 { 
    font-family: Arial, Helvetica, sans-serif; 
    font-size:15px; 
    color: #cccccc; 
    font-weight: 400; 

}

/* The giant scrollable window box */
.giant-container {
  position: relative;     
  width: 90vw;           
  height: 85vh;           
  max-width: 1200px;     
  background-color: rgba(255, 255, 255, 0.85); 
  border: 2px solid #333;
  border-radius: 12px;
  overflow-y: scroll;   
  overflow-x: hidden;     
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

/* Base styles for all internal boxes */
.box {
  position: absolute;     
  border-radius: 8px;
  padding: 15px;
  overflow-y: auto;       
  box-sizing: border-box; 
  border: 1px solid rgba(0,0,0,0.1);
}

/* Individual control for Boxes */
.small-box {
  top: 20px;
  left: 20px;
  width: 250px;
  height: 1000px;
  background-color: #0c71c6;
}

.small-box-content {
  text-align: center;
  color: #FFFFFF;
  font-family: 'Arial', sans-serif;
  padding: 5px;
}

.small-box-content img {
  width: 100%;
  border-radius: 4px;
  display: block;        /* Removes the inline reserved space gap */
  margin-bottom: 0px;    /* Tightens the spacing right under the image */
}

.medium-box {
  top: 415px;
  left: 300px;
  width: 800px;
  height: 400px;
  background-color: #86e750; 
    
   
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Creates 2 equal columns */
    gap: 15px; /* Space between items */
    padding: 15px;
    
    
    overflow-y: auto; 
    overflow-x: hidden;
}


.png-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1; 
  background: url('frame_for_science.png') center/contain no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
}

.text-content-wrapper {
  position: absolute;
  top: 15%;
  left: 15%;
  width: 75%;
  height: 55%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.inner-text-box {
  flex-grow: 1;
  overflow-y: auto;
  background-color: rgba(66, 135, 245, 0.9);
  border-radius: 6px;
  padding: 10px;
  font-size: 5px;
  color: #333;
  box-sizing: border-box;
}

/* Customize the scrollbar track (background) */
.inner-text-box::-webkit-scrollbar-track {
  background: rgba(0, 28, 98, 0.8);
  border-radius: 6px;
}

/* Customize the scrollbar thumb (the draggable part) */
.inner-text-box::-webkit-scrollbar-thumb {
  background-color: #ff91fb;
  border-radius: 0px;
  border: 0px solid rgba(66, 135, 245, 0.9); /* Matches inner-text-box background */
}

/* Set width of the scrollbar */
.inner-text-box::-webkit-scrollbar {
  width: 4px; 
}
.inner-text-box img {
  max-width: 100%;
  height: auto;
  display: block;
}

.large-box {
  top: 850px;
  left: 300px;
  width: 800px;
  height: 200px;          
  background-color: #74e4ff; 
}

/* Base styles for all external images */
.treefrog{
  position: absolute;
  bottom: 0px;
  right: 20px;
  width: 400px;
  height: auto;
  z-index: 9999
}
.goldfish{
  position: absolute;
  top: 0px;
  left: 100px;
  width: 200px;
  height: auto;
  z-index: 9999
}

.sciencetitletext{
  position: absolute;
  top: 15px;
  right: 5%;
  width: 800px;
  height: auto;
  z-index: 9999
}


.fact-container { 
  position: relative; 
  background-color: #74e4ff; 
  top: 150px; 
  left: 300px; 
  width: 800px; 
  min-height: 150px; 
  border-radius: 10px; 
  padding-bottom: 80px; 
} 

.fact-box { 
  position: relative; 
  top: 10px; 
  left: 10px; 
  width: 730px; 
  height: 100px; 
  display: flex; 
  flex-direction: row; /* Changed from column to row */
  align-items: center; 
  justify-content: space-between; /* Spreads text left and image right */
  padding: 15px; 
  background-color: #f8f9fa; 
  border-left: 5px solid #0c71c6; 
  border-radius: 4px; 
  gap: 15px; 
} 

#fact-text { 
  color: #636e72; 
  font-size:12px; 
  line-height: 1.6; 
  font-style: italic; 
  width: 100%; 
  text-align: left; 
} 

/* New styles specifically for the fact image */ 
#fact-image { 
  max-width: 100%; 
  max-height: 100%; 
  object-fit: contain; 
  border-radius: 6px; 
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); 
} 

button { 
  position: absolute; 
  bottom: 15px; 
  left: 20px; 
  width: 150px; 
  height: 50px; 
  background-color: #0c71c6; 
  color: #ffffff; 
  border: none; 
  border-radius: 25px; 
  cursor: pointer; 
  transition: background-color 0.2s ease, transform 0.1s ease; 
  box-shadow: 0 4px 10px rgba(108, 92, 231, 0.3); 
  display: inline-flex; 
  align-items: center; 
  justify-content: center; 
  font-family: "Orbitron", sans-serif; 
  font-size: 15px; 
  font-weight: 600; 
} 

button:hover { 
  background-color: #5b4bc4; 
} 

button:active { 
  transform: scale(0.98); 
}
