/* Resetting margins and paddings for full-size display */
html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: Arial, sans-serif; /* Primary font and fallback */
  font-size: 16px; /* Base font size */
  font-weight: normal; /* Can be bold, lighter, etc. */
  color: #333; /* Font color */
}

/* Wrapper for the Google Spreadsheet */
.spreadsheet-container {
  width: 100%;
  height: 100vh; /* Full viewport height */
  display: flex;
  justify-content: space-between; /* Space between text and image */
  align-items: stretch; /* Make both text and image divs the same height */
  margin: 20px; /* Prevent content from touching the edges */
  padding: 20px; /* Optional padding inside the container */
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Optional shadow */
  border: 1px solid #ccc; /* Optional border for visibility */
  border-radius: 8px; /* Optional rounded corners */
}

.spreadsheet-small-container {
  width: 100%;
  height: 60vh; /* Full viewport height */
  display: flex;
  justify-content: space-between; /* Space between text and image */
  align-items: stretch; /* Make both text and image divs the same height */
  margin: 20px; /* Prevent content from touching the edges */
  padding: 20px; /* Optional padding inside the container */
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Optional shadow */
  border: 1px solid #ccc; /* Optional border for visibility */
  border-radius: 8px; /* Optional rounded corners */
}

.spreadsheet-large-container {
  width: 100%;
  height: 200vh; /* Full viewport height */
  display: flex;
  justify-content: space-between; /* Space between text and image */
  align-items: stretch; /* Make both text and image divs the same height */
  margin: 20px; /* Prevent content from touching the edges */
  padding: 20px; /* Optional padding inside the container */
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Optional shadow */
  border: 1px solid #ccc; /* Optional border for visibility */
  border-radius: 8px; /* Optional rounded corners */
}

.spreadsheet-very-large-container {
  width: 100%;
  height: 300vh; /* Full viewport height */
  display: flex;
  justify-content: space-between; /* Space between text and image */
  align-items: stretch; /* Make both text and image divs the same height */
  margin: 20px; /* Prevent content from touching the edges */
  padding: 20px; /* Optional padding inside the container */
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Optional shadow */
  border: 1px solid #ccc; /* Optional border for visibility */
  border-radius: 8px; /* Optional rounded corners */
}

/* Style for the iframe */
.spreadsheet-frame {
  width: 100%;
  height: 100%;
  border: none; /* Remove iframe border */
}

.top-container {
  display: flex; /* Use flexbox to create a two-column layout */
  justify-content: space-between; /* Space between text and image */
  align-items: stretch; /* Make both text and image divs the same height */
  margin: 20px; /* Prevent content from touching the edges */
  padding: 20px; /* Optional padding inside the container */
  border: 1px solid #ccc; /* Optional border for visibility */
  border-radius: 8px; /* Optional rounded corners */
  background-color: #f9f9f9; /* Optional background color */
}

/* Text Section Styling */
.text {
  flex: 1; /* Allow text to take available space */
  margin-right: 20px; /* Add space between text and image */
  display: flex; /* Align content vertically within the text div */
  flex-direction: column; /* Allow content to stack vertically */
  justify-content: center; /* Vertically center the text inside the div */
}

.text h1 {
  margin-bottom: 10px;
}

.text p {
  margin: 0;
}

.image-large {
  display: flex; /* Ensure the image is vertically aligned */
  justify-content: center; /* Center the image horizontally */
  align-items: center; /* Center the image vertically */
}

/* Image Section Styling */
.image-large img {
  max-width: 100vb; /* Limit the image width */
  height: auto; /* Maintain aspect ratio */
  border-radius: 5px; /* Optional rounded edges for the image */
  max-height: 100%; /* Ensure it doesn't overflow */
}

.image {
  display: flex; /* Ensure the image is vertically aligned */
  justify-content: center; /* Center the image horizontally */
  align-items: center; /* Center the image vertically */
}

/* Image Section Styling */
.image img {
  max-width: 60px; /* Limit the image width */
  height: auto; /* Maintain aspect ratio */
  border-radius: 5px; /* Optional rounded edges for the image */
  max-height: 100%; /* Ensure it doesn't overflow */
}

/* Responsive Design */
@media (max-width: 768px) {
  .spreadsheet-frame {
    height: 70vh; /* Adjust height for smaller devices */
  }
  .top-container {
    flex-direction: column; /* Stack the text and image vertically */
  }

  .text {
    margin-right: 0; /* Reset margin in stacked layout */
    margin-bottom: 20px; /* Add spacing below the text */
  }

  .image img {
    max-width: 100%; /* Make the image responsive */
  }
}
