/* STYLES FOR SITE ADS.FREWORLD.INFO */

/* License:  WTDHPL (http://wtdhpl.info/) */

/* So that our files may be to some extent both human- and
   machine-readable, we do not "minify" or "obfuscate" files.
   We strive to make things understandable for purposes such
   as study and scholarship. */

body {
   font-family: sans-serif;
   /* background-color: rgb(207, 218, 241); <-- a little dark */
   background-color: rgb(220, 229, 248);
   /* <-- A lighter blue */
}

/* qaq and qaa are q&a-question and q&a-answer */
*.qaq {
   font-weight: bold;
}

*.qaa {
   margin-left: 40px;
}

/* displaying forms inline removes auto <br> before/after submit button */
form {
   display: inline;
}

/* Set apart our navigation box floating left with a thick border */
div.nav {
   /* background-color: rgb(242, 221, 221); <- this is a little reddish */
   background-color: rgb(242, 242, 255);
   /* <- more blueish, and whiter */
   float: left;
   margin: 15px;
   padding: 5px;
   border: 6px solid;
}

/* Show text in a box, in monospaced font */
div.legal {
   border: 2px solid;
   margin: 30px;
   font-family: monospace;
   padding: 5px;
}

/* Show the main body in a thinly outlined box */
div.mainbody {
   border: 1px solid;
   padding: 5px;
}

*.smallfont {
   font-size: small;
}

*.smallerfont {
   font-size: x-small;
}

/* Make the timing data unobtrusive */
*.timing {
   font-size: small;
   color: rgb(100, 100, 128);
   text-align: center;
   font-style: italic;
}

*.navbot {
   text-align: center;
}

.ctrimg {
   margin: auto;
   display: block;
}

.formtip {
   position: relative;
   top: -10px;
   font-size: x-small;
}

/* Ack: https://developer.mozilla.org/en-US/docs/Learn/CSS/CSS_layout/Responsive_Design */
/* This makes media items fit their containers, even on mobile devices. */
img,
picture,
video {
   max-width: 100%;
}


/* terms.php styles */
.terms-container {
   display: flex;
   gap: 40px;
   margin-top: 20px;
}

.terms-nav {
   flex: 0 0 200px;
   position: sticky;
   top: 20px;
   height: min-content;
   background: #f9f9f9;
   padding: 15px;
   border-radius: 8px;
   border: 1px solid #ddd;
}

.terms-content {
   flex: 1;
   line-height: 1.6;
}

.terms-nav h3 {
   margin-top: 0;
   font-size: 1.1em;
}

.terms-nav ul {
   list-style: none;
   padding: 0;
   margin: 0;
}

.terms-nav li {
   margin-bottom: 10px;
}

.terms-nav a {
   text-decoration: none;
   color: #3366cc;
}

.terms-nav a:hover {
   text-decoration: underline;
}

@media (max-width: 768px) {
   .terms-container {
      flex-direction: column;
   }

   .terms-nav {
      position: static;
      flex: none;
   }
}

/* End terms.php styles */