* {
  padding: 0;
  margin: 0;
}

:root {
  --primary-color: #1F509A; /* Dark Blue */
  --secondary-color: #0A3981; /* Darker Blue */
  --tertiary-color: #D4EBF8; /* Light Grayish Blue */
  --font-size-large: 1.5rem;
}

html, body {
  background-color: #f1f1f1;
  padding: 0;
  margin: 0;
  font-family: 'Roboto', sans-serif;
  height: auto;
  overflow-y: auto;
}

main {
  display: block;
  flex-direction: column; /* Arrange children vertically */
  flex-grow: 1; /* Allow main to take up all remaining space */
  width: 90%; /* Your existing width settings */
  margin: 0 auto;
  padding: 10px;
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  /* border-radius: 5px; */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: width 0.3s ease, padding 0.3s ease;
}

footer {
    text-align: center; /* Centers the text horizontally */
    padding: 10px; /* Adds spacing inside the footer */
    background-color: var(--secondary-color); /* Optional: Matches the site's color scheme */
    color: #fff; /* Ensures text is readable */
    position: relative; /* Ensures flexibility unless you want it fixed */
}

.correct {
    color: green;
    font-weight: bold;
}

.incorrect {
    color: red;
    font-weight: bold;
}


/* Adjust for Wider Screens */
@media (min-width: 768px) {
    main {
        width: 80%; /* Wider width for tablets */
        padding: 20px; /* More padding for better spacing */
    }
	nav {
        width: 80%; /* Matches the `main` element for tablets */
    }
	fieldset {
		width: 100%; /* Make it almost full width on smaller screens */
	}
}

@media (min-width: 1024px) {
    main {
        width: 70%; /* Even wider for desktops */
        padding: 30px; /* Generous padding for readability */
    }
	nav {
        width: 70%; /* Matches the `main` element for tablets */
    }
	fieldset {
		width: 100%; 
	}
}

@media (min-width: 1440px) {
    main {
        width: 60%; /* Large screens */
        padding: 40px;
    }
	nav {
        width: 60%; /* Matches the `main` element for large screens */
    }
	fieldset {
		width: 100%; 
	}
}

.wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  /*height: 100vh; */
  height: auto;
  width: 100%;
  /* max-width: 1440px; */
  /* max-width: 1200px; /* possibly not needed...
  /* width: 480px; not needed... */
  margin: 0 auto;
  overflow: hidden;
  background-color: #fff;
  position: relative;
}


.wrapper #cts-container {
  display: flex; /* Arrange form and output side by side */
  gap: 20px;
}

.wrapper #cts-output {
  flex: 1;
  border: 1px solid var(--primary-color); /* Define the border color */
  padding: 10px; /* Add padding inside the div */
  /* min-height: 300px; */
  /* margin: 20px auto; /* Center horizontally with auto margins */
  width: 100%; /* Adjust width */
  background-color: var(--tertiary-color); /* Set background color */
  color: var(--secondary-color); /* Set text color */
  text-align: left; /* Center-align the text */
  /* font-size: var(--font-size-large); /* Use the font size defined in :root */
  border-radius: 5px; /* Add rounded corners */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Add a subtle shadow for depth */
}

.wrapper #cts-form {
  flex: 1;
  width: 90%;
}

.wrapper #cts-form label {
    display: block; /* Ensures labels and inputs stack vertically */
}

#cts-form select {
	font-family: Fira Code, monospace; /* Custom font */
	width: 50%;
}

#cts-form select option {
    font-family: Fira Code, monospace; /* Custom font */
    padding: 0.5em; /* Adds spacing inside options */
}

.wrapper #cts-form fieldset {
  font-size: 14px;
  font-family: 'Fira Code', Courier, monospace;
  padding: 5px;
}

.wrapper #cts-form fieldset input {
  padding: 2px;
  border: 1px solid;
  border-radius: 5px; 
  margin-bottom: 0.5em;
  width: 50%;
}

.wrapper #cts-form fieldset + fieldset {
	/*margin-top: 0.5em; */
}

.wrapper #cts-form select {
    display: block; /* Stack inputs and selects vertically */
    /*margin-bottom: 1em; /* Adds spacing between individual inputs */
    /*padding: 0.5em; /* Padding inside the inputs */
	border-radius: 5px;
}

.banner {
    width: 100%;
    background-color: var(--primary-color); /* Matches the nav background */
	padding: 10px 0;
}

nav {
  background-color: var(--primary-color);
  height: 50px;
  /* padding: 0 16px; */
  padding: 10px;
  display: -ms-flexbox;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  justify-content: flex-start;
  max-width: 90%;
  margin: 0 auto;
  transition: transform 0.35s ease-in-out;
  /* fade in checked menu */
}
nav .m-menu__checkbox {
  display: none;
}
nav label.m-menu__toggle {
  cursor: pointer;
}
nav .m-menu {
  position: absolute;
  top: 0;
  left: 0;
  max-width: 450px;
  width: calc(100vw - 30px);
  height: 100%;
  -moz-transform: translate3d(-450px, 0, 0);
  -o-transform: translate3d(-450px, 0, 0);
  -ms-transform: translate3d(-450px, 0, 0);
  -webkit-transform: translate3d(-450px, 0, 0);
  transform: translate3d(-450px, 0, 0);
  -moz-transition: transform 0.35s;
  -o-transition: transform 0.35s;
  -webkit-transition: transform 0.35s;
  transition: transform 0.35s ease-in-out;
  z-index: 1;
  overflow: hidden;
  background-color: #fff;
}
nav .m-menu__overlay {
  background-color: rgba(103, 103, 103, 0.5);
  position: absolute;
  top: 0;
  width: 100%;
  bottom: 0;
  z-index: 1;
  display: none;
}
nav .m-menu__header {
  padding: 0 16px;
  height: 50px;
  display: -ms-flexbox;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-justify-content: space-around;
  justify-content: space-around;
  -ms-flex-pack: space-around;
  -webkit-align-items: center;
  align-items: center;
  border-bottom: 1px solid #e8e8e8;
}
nav .m-menu__header span {
  font-size: 1.2rem;
  font-weight: bold;
  text-align: center;
  width: 100%;
}
nav .m-menu .m-menu {
  -moz-transform: translate3d(480px, 0, 0);
  -o-transform: translate3d(480px, 0, 0);
  -ms-transform: translate3d(480px, 0, 0);
  -webkit-transform: translate3d(480px, 0, 0);
  transform: translate3d(480px, 0, 0);
}
nav .m-menu ul {
  height: 100%;
  overflow-y: auto;
}
nav .m-menu ul li a, nav .m-menu ul li label {
  display: block;
  text-align: left;
  padding: 0 15px;
  line-height: 47px;
  text-decoration: none;
  color: #333;
  cursor: pointer;
  font-size: 1rem;
  border-bottom: 1px solid #e8e8e8;
  position: relative;
}
nav .m-menu ul li label.a-label__chevron::after {
  content: "";
  position: absolute;
  display: inline-block;
  height: 10px;
  width: 10px;
  border-color: #333;
  border-style: solid;
  border-width: 1px 1px 0 0;
  -moz-transform: rotate(45deg);
  -o-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
  top: 50%;
  margin-top: -5px;
  right: 16px;
}
nav .m-menu ul li .-invisible {
  border-bottom: 0;
}
nav .m-menu .m-menu label.m-menu__toggle {
  display: -ms-flexbox;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  border-bottom: 0;
  padding: 0;
  -webkit-box-sizing: content-box;
  -moz-box-sizing: content-box;
  box-sizing: content-box;
}
nav .m-menu__checkbox:checked ~ .m-menu__overlay {
  display: block;
}
nav .m-menu__checkbox:checked ~ .m-menu {
  -moz-transform: translate3d(0, 0, 0);
  -o-transform: translate3d(0, 0, 0);
  -ms-transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
}

nav .m-menu ul li a:hover,
nav .m-menu ul li label:hover {
    background-color: var(--tertiary-color);
}