/*
 * file: main.css
 * git: leonardus/Index
 */

html {
  --header-background-color: #F9FAFC;
  --header-separator-color: #C4CFE5;
  --page-link-color: #3D578C;
  --font-family-normal: Roboto,sans-serif;
  --border-color: #E0E0E0;
  --background-color-page: #F4F4F4;
}

body, table, div, p, dl {
	font-weight: 400;
	font-size: 14px;
	font-family: var(--font-family-normal);
	line-height: 22px;
  margin: 0;
  padding: 0;
  background-color: var(--background-color-page);
}

a {
	color: var(--page-link-color);
	font-weight: normal;
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

div.header {
	background-color: var(--header-background-color);
  padding: 10px;
  text-align: center;
  border-bottom: 1px solid var(--header-separator-color);
}

div.title {
  font-size: 150%;
  font-weight: bold;
}



.main-content-wrapper {
  display: flex; /* Activates Flexbox for the main content columns */
  padding: 20px;
  max-width: 1200px;
  margin: 20px auto; /* Centers the content and adds the original margin-top from contents */
  background-color: white;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05); /* Light shadow */
  border: 1px solid var(--border-color); /* Light border around the main area */
}

.image-column {
  display: flex;
  flex-direction: column; /* Stack items vertically */
  align-items: center;
  flex: 0 0 250px; /* Fixed width for the image column, not flexible */
  margin-right: 30px;
  padding-top: 20px;
}

.image-column img {
  max-width: 100%;
  height: auto;
  display: block; /* Removes extra space below the image */
  border: 1px solid var(--border-color); /* Border matching the theme */
  padding: 5px;
  background-color: #fff;
  margin-bottom: 10px; /* Add space below the image */
}

.image-column p {
    text-align: center; /* Center the "Welcome" text */
    margin-top: 0;
}


.text-column {
  flex: 1; /* Takes up the remaining available space */
  padding-left: 30px;
  padding-top: 20px;
  border-left: 1px solid var(--border-color); /* A separator line between columns */
}

/* List styling in the text area for more space */
.text-column ul {
  list-style-type: disc;
  margin-left: 25px;
  padding-left: 0; /* Important to avoid double indentation */
}

.text-column ul li {
  margin-bottom: 8px;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
  .main-content-wrapper {
    flex-direction: column; /* Columns stack below each other */
    padding: 15px; /* Slightly less padding on small screens */
    margin: 15px; /* Slightly smaller outer margin */
  }

  .image-column {
    margin-right: 0;
    margin-bottom: 20px; /* Bottom margin when image is on top */
    flex: 0 0 auto;
    padding-top: 0;
  }

  .image-column img {
    max-width: 180px; /* Limit image size on smaller screens */
    margin: 0 auto 10px auto; /* Center the image and add bottom margin */
  }

  .text-column {
    padding-left: 0;
    border-left: none;
  }
}