/* CSS is how you can add style to your website, such as colors, fonts, and positioning of your
   HTML content. To learn how to do something, just try searching Google for questions like
   "how to change link color." */

@font-face { 
  font-family: "basic"; 
  src: url("./fonts/basiic.ttf")format("truetype"); 
  font-weight: normal;
  font-style: normal; 
  font-display: swap; 
}
    
body {
  background-color: beige;
  background-image: url("images/stars.jpg");
  background-repeat: no-repeat; 
  background-position: center center; 
  background-size: cover; 
  background-attachment: fixed;
  color: black;
  font-family: "basic", "jf open huninn", sans-serif;
  font-size: 16px; /* Base font size */
}

/* Centers the welcome text column vertically without pushing artwork down */
.welcome-content {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  flex: 1 !important; 
}

h4 {
  font-size: 1em;
}

h1 {
  font-size: 2.5em;
}

h2 {
  font-size: 1.5em;
}

p {
  font-size: 1.25em;
}
  
.text-center {
  text-align: center;
}

#sidebar img {
  background-color:#d1d8e4;
  margin-left: auto;
  margin-right: auto;
  width: 100px;        
  height: 100px;       
  border-radius: 12px; 
  object-fit: cover;  
  display: block;     
  margin: 5px auto;    
}
  
#main-container {
  background-color:#bdc7d9;
  max-width: 1000px;      
  margin: 0 auto;         
  padding: 15px 60px !important;      
}

#main-header {
  text-align: center;
  margin-bottom: 20px;
}

#main-header img {
  max-width: 100%;
  height: auto;
}

.flex {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 25px;
  width: 100%;
}

#sidebar {
  margin-top: 105px; 
  width: 250px;
  flex-shrink: 0;
  align-self: stretch;
  display: flex;
  flex-direction: column;
}

@media (max-width: 768px) {
  #sidebar {
    margin-top: 0;
  }
}

.launch-date {
  margin-top: auto; 
  padding-bottom: 15px;
}

#content {
  flex-grow: 1;
}

/* Intro Card Box */
.intro-card {
  display: flex;
  flex-direction: row;
  background-color: #d1d8e4; 
  color: black;            
  padding: 40px;
  border-radius: 8px;        
  gap: 40px;                  
  align-items: center;       
  margin-top: 20px;
  margin-bottom: 30px;
}

.intro-image {
  flex: 0 0 35%;      
  max-width: 500px;   
  margin-left: auto;
}

.intro-image img {
  width: 100%;
  height: auto;
  display: block;
}

.updates-wrapper {
  margin-top: 25px;
  max-width: 90%; 
}

.updates-title {
  display: inline-block;
  background-color: #3b5998;
  color: #d1d8e4;
  padding: 3px 10px;
  font-size: 0.9em;
  font-weight: bold;
  border-radius: 4px 4px 0 0;
}

.updates-box {
  background-color: #d1d8e4;
  border: 2px solid #5a5a5a;
  padding: 15px;
  height: 150px;
  overflow-y: scroll;
  border-radius: 0 4px 4px 4px;
}

.updates-box p {
  font-size: 0.95em;
  color: #2b2b2b;
  line-height: 1.4;
  margin-bottom: 15px; 
  margin-top: 0;
}

.updates-box strong {
  color: #000000;
  font-size: 0.9em;
}

/* Project Showcase Box */
.project-card {
  display: flex;
  flex-direction: row;
  background-color:#d1d8e4; 
  color: black;            
  padding: 40px;
  border-radius: 8px;        
  gap: 40px;                  
  align-items: center;       
  margin-bottom: 30px;
}

.project-text {
  flex: 1;                    
}

.project-text h2 {
  color: black;
  margin-top: 0;
  font-size: 1.8em;
  letter-spacing: 1px;
}

.project-text p {
  color: #4a4a4a;        
  line-height: 1.6;
  font-size: 1.1em;
}

.project-image {
  flex: 0 0 40%;      
  max-width: 400px;         
}

.project-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

@media (max-width: 768px) {
  .project-card,
  .intro-card {   
    flex-direction: column-reverse;
    padding: 20px;
    gap: 20px;
  }
  
  .project-image,  
  .intro-image {
    flex: 0 0 100%;   
    max-width: 100%;   
  }
}

.read-more-btn {
  display: inline-block;
  margin-top: 35px !important; 
  padding: 10px 20px;
  background-color: #3b5998;
  color: white;
  text-decoration: none;
  border: 1px solid #ffffff;
  border-radius: 4px;
  font-size: 0.9em;
  font-weight: bold;
  transition: all 0.2s ease-in-out;
}

.read-more-btn:hover {
  background-color: #d1d8e4;
  color: #3b5998; 
  cursor: pointer;
}
  
.world-btn {
  display: inline-block;
  margin-top: 35px !important; 
  padding: 10px 20px;
  background-color: #3b5998;
  color: white;
  text-decoration: none;
  border: 1px solid #ffffff;
  border-radius: 4px;
  font-size: 0.9em;
  font-weight: bold;
  transition: all 0.2s ease-in-out;
}

.world-btn:hover {
  background-color: #d1d8e4;
  color: #3b5998; 
  cursor: pointer;
}

.sub-nav {
  text-align: left;
  margin-top: 75px;
  margin-bottom: 35px;
}

.sub-nav a {
  display: inline-block;
  color: #3b5998;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.15em;  
  padding: 10px 20px; 
  border-radius: 4px;    
  background-color: transparent;
  transition: all 0.2s ease-in-out;
}

.sub-nav a:hover {
  background-color: #3b5998;
  color: #e9e3d5;
}