* {
  box-sizing: border-box;
}

html {
  background-color: #063b7d;
  font-family: trebuchet, geneva, sans-serif;
}

img,
video,
embed {
  max-width: 98%;
}

main,
section,
article,
aside,
footer,
header {
  padding: 0.5rem; /* Adjusted to a positive padding value */
}

header,
footer {
  background-color: #031a37;
  color: white;
  text-align: center;
}

article {
  border-bottom: 1px black solid;
}

aside {
  background-color: white;
}

h1,
h2,
aside {
  text-align: center;
}

nav {
  background-color: #063b7d;
  text-align: center;
}

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

nav ul li {
  display: inline-block;
  margin-right: 20px;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: #aec1d8;
}

body,
p,
a,
h4 {
  font-size: 14px;
}

@media screen and (min-width: 768px) {
  body {
    display: flex;
    flex-direction: column;
    max-width: 98%;
    margin: auto;
  }

  main {
    display: flex;
    border-right: solid black 1px;
    border-left: solid black 1px;
    flex-wrap: wrap;
  }

  article {
    flex: 50%;
    border-right: solid black 1px;
    border-bottom: solid black 1px;
  }

  article:nth-child(2) {
    border-right: none;
  }

  article:nth-child(3) {
    border: none;
  }

  body,
  p,
  a,
  h4 {
    font-size: 15px;
  }
}

@media screen and (min-width: 1024px) {
  article {
    flex: 33%;
    border-bottom: none;
  }

  article:nth-child(2) {
    border-right: solid black 1px;
  }

  article:nth-child(3) {
    border-right: none;
  }

  body,
  p,
  a,
  h4 {
    font-size: 16px;
  }
}

* {
  box-sizing: border-box;
  border: 1px solid black;
}

body {
  width: 98%;
  margin: auto;
}

section, article, aside, footer, header {
  padding: 0.5rem;
}

img, video, embed {
  max-width: 98%;
}

@media screen and (min-width: 768px) {
  body {
    display: flex;
    flex-direction: column;
    max-width: 75rem;
  }
  main {
    display: flex;
    flex-wrap: wrap;
  }
  nav, header {
    order: -1;
  }
  nav {
    flex-direction: row;
  }
  nav a {
    flex: auto;
  }
  article {
    flex: 50%;
  }
  aside, section {
    flex: 100%;
  }
  section p {
    column-count: 2;
    column-gap: 20px;
    column-rule: 1px solid rgb(255, 105, 0);
  }
}

@media screen and (min-width: 1200px) {
  article {
    flex: 35%;
  }
  aside {
    flex: 30%;
  }
}

#footer-logo {
  width: 120px;
  height: auto;
  display: block;
  margin: 10px auto 0;
}

h1 {
  font-family: 'Graduate', sans-serif;
  font-size: 3rem;
  text-align: center;
  margin-top: 20px;
}

h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  font-weight: 500;
  margin-top: 20px;
  color: white;
}

p {
  color: white;
}

ol {
  color: white;
}

ol li {
  color: white;
}

figcaption {
  color: white;
}

figure {
  position: relative;
  display: inline-block;
}

a {
  color: #c088f9;
}

.about-img {
  width: auto;
  height: 400px;
  display: block;
  margin: 0 auto;
  max-width: 100%;
}

.about-figure {
  text-align: center;
  margin: 20px 0;
  width: 100%;
}

.about-figure figcaption {
  margin-top: 8px;
  text-align: center;
  font-style: initial;
  font-size: 1rem;
  color: #cde4f7;
}

.table-container {
    overflow-x: auto; 
    margin: 2rem 0;
}

.table-container {
  overflow-x: auto;
  margin-top: 20px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 40px;
  background-color: #031937;
  color: white;
  font-family: 'Times New Roman', Times, serif;
}

th, td {
  padding: 12px 15px;
  text-align: left;
  border: 1px solid #ddd;
}

th {
  background-color: #031937;
  font-weight: bold;
  font-family: 'Playfair Display', serif; 
}

HTML CSSResult Skip Results Iframe
EDIT ON
/* Form Related Rules */

fieldset {
    border: #003333 solid 1px;
    margin: 20px 0;
    max-width:98%;
}
legend {
    font-size: 1.3em;
    color: #000000;
    font-family: "Book Antiqua", Palantino, Garamond, serif;
    margin-bottom: 10px;
}
textarea {
    color: rgba(3, 8, 1);
    width: 50%;
    height: 100px;
    max-width: 98%;
    box-sizing: border-box;
    border: 2px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    background-color: white;
    background-image: url('searchicon.png');
    background-position: 10px 10px; 
    background-repeat: no-repeat;
    transition: width 0.4s ease-in-out;
}
label{
  width:12%;
  display:inline-block;
}
.longlabel{
  width:25%;
}
.shortlabel{
  width:5%;
}
.label{
  width:12%;
}
input[type=text],input[type=email],input[type=tel], input[type=url], input[type=password]{
    margin-left:10px;
    width: 50%;
    box-sizing: border-box;
    border: 2px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    background-color: antiquewhite;
    background-image: url('searchicon.png');
    background-position: 10px 10px; 
    background-repeat: no-repeat;
    -webkit-transition: width 0.4s ease-in-out;
    transition: width 0.4s ease-in-out;
}

input[type=text]:focus,input[type=email]:focus,input[type=tel]:focus,input[type=url]:focus, textarea:focus  {
    width: 80%;
}
input:focus, textarea:focus {
    background-color:aliceblue;
    color: rgba(150, 45, 62, 1);
}

form, form label, form legend, form input, form textarea, form select {
  color: white;
}

input[type=text], input[type=email], input[type=tel], input[type=url], input[type=password] {
    margin-left: 10px;
    width: 50%;
    box-sizing: border-box;
    border: 2px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    background-color: antiquewhite;
    background-image: url('searchicon.png');
    background-position: 10px 10px; 
    background-repeat: no-repeat;
    transition: width 0.4s ease-in-out;
}

::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

legend{
  font-size: 1.3em; 
  color: white; 
  font-family: "Book Antiqua", Palantino, Garamond, serif; 
  margin-bottom: 10px; 
  text-align: center; 
  width: 100%; 
  display: block;
}
  
input[type="submit"],
input[type="reset"]{
  color: black; 
  background-color: white; 
  border: 2px solid black; 
  padding: 10px 20px; 
  border-radius: 5px; 
  cursor: pointer;
}