/* General Styles */




body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f9f9f9;
}

#page_holder {  
  display: flex; /* Enables flexbox layout */  
}

.top_container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    height: 100%;
}


/* Style for the container */
.container {
  max-width: 800px;
  //min-width: 600px;
  width: 70%;
  margin: 20px auto;
  padding: 20px;
  background: white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
}


/* Style for the main content */
#main {
  //flex: 1; /* Main div takes the available width */
  //position: relative;
}

/* Style for the feedback div */


#sfdbk_cont {
  height: 300px;
  position: fixed; /* Fixes the position relative to the viewport */
  top: 100px; /* Stays at the top of the viewport */
  right: 0; /* Stays at the right edge of the viewport */
  //background-color: #3498db; /* Optional: Add a background color for visibility */
  //background: #f9f9f9; /* Optional: background color */
  //box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Optional: Add shadow for aesthetics */
  border-radius: 8px; /* Optional: Rounded corners */
  overflow: auto;
  width: 19%; /* Adjust the width as needed */
  max-height: 100%;
  overflow-y: auto; /* Optional: allows scrolling if the content overflows */
  //border:solid;
  //height:400px;
  margin:20px;
}

.ms_ans {
  position: sticky;
  top: 100px; /* Distance from the top of the viewport */
  left: calc(100% + 20px); /* Adjust based on the container's position */
  z-index: 1000; /* Ensure it stays above other elements */
  visibility: visible; /* Ensure it's always visible */
}

.ms_ans_new {
  //background-color: #fff;
  //box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  //border-radius: 8px;
  padding: 10px;
  max-height: 80%;
  overflow: auto;
  //border: 1px solid #ccc;
}



/* Title */
.title {
  text-align: center;
  color: #333;
  font-size: 2.5em;
  margin-bottom: 20px;
}

/* Subjects */
.subject {
  margin-bottom: 40px;
}

.subject-title {
  font-size: 1.8em;
  text-align: center;
  color: #444;
  margin-bottom: 20px;
}

/* Columns */
.columns {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}

.column,
.special-column {
  flex: 1;
  background: #f4f4f4;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.level {
  font-size: 1.4em;
  text-align: center;
  margin-bottom: 15px;
  color: #666;
}

/* Links */
.link {
  display: block;
  text-align: center;
  margin: 10px 0;
  font-size: 1.1em;
  color: #0056b3;
  text-decoration: none;
}

.link:hover {
  text-decoration: underline;
}

/* Colors for Subjects */
.subject:nth-child(1) .column {
  background-color: #CCFFFF; /* Physics */
}

.subject:nth-child(2) .column {
  background-color: #FFE4B5; /* Chemistry */
}

.subject:nth-child(3) .column {
  background-color: #FFCCFF; /* Biology */
}

.special-column-left {
  align-self: flex-start;
}

.special-column-right {
  align-self: flex-end;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .columns {
    flex-direction: column;
  }

  .special-column {
    align-self: center !important;
  }
}

/* Footer Section */
.footer {
  background-color: #f4f4f4;
  padding: 30px;
  margin-top: 40px;
  text-align: center;
  border-top: 1px solid #ddd;
  font-family: 'Arial', sans-serif;
}

.footer-text {
  font-size: 1.2em;
  color: #555;
  line-height: 1.6;
  max-width: 900px;
  margin: 0 auto 20px;
}

.footer-links {
  margin-top: 20px;
}

.footer-link {
  font-size: 1.1em;
  color: #0073e6;
  text-decoration: none;
  margin: 0 15px;
  display: inline-block;
}

.footer-link-inline {
  //font-size: 1.1em;
  color: #0073e6;
  text-decoration: none;
  //margin: 0 15px;
  display: inline-block;
}

.footer-link-inline:hover {
  text-decoration: underline;
}

.footer-link:hover {
  text-decoration: underline;
}


#outer {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  width: 100%;
  text-align: center;
  padding: 3px;
}

#lay1 {
  width: 50%;
  background-color: #3399FF;
  border-radius: 12px;
  margin: 3px;
  padding: 3px;
  color: #FFFFFF;
  font-size: 1.5em;
  font-family: sans-serif;
}

a {
  font-size: 1.1em;
  font-family: Arial, sans-serif;
  color: #0000FF;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  body {
    background-color: white;
  }

  .container {
    box-shadow: none;
  }
}


pre {
    white-space: pre-wrap;       /* Since CSS 2.1 */
    white-space: -moz-pre-wrap;  /* Mozilla, since 1999 */
    white-space: -pre-wrap;      /* Opera 4-6 */
    white-space: -o-pre-wrap;    /* Opera 7 */
    word-wrap: break-word;       /* Internet Explorer 5.5+ */
}

/*
@media only screen and (max-width: 320px) {
  body {
    font-size: 140%;  
  } 
  .select-from-ajax {
     select {
      font-size: 3em;
    }
  }
}
*/

/*
@media not screen and (max-width: 768px) {
  .centered {
  margin: auto;
  width: 60%;
  //border: 5px solid #FFFF00;
  padding: 10px;
  }
}
*/  


footer {page-break-after: always;}

body {
    position: relative;
}

div.onepage {page-break-after: always; }

p {
    //margin: 20px 0;
    page-break-inside: avoid;
    position: relative; 
}

