html {
	max-width: 100%;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	/* background-color: #cccccc;*/
	width: 100%;
	font-family: Lucinda, sans-serif;
	/* border: red 3px solid; */
}

.header { grid-area: header; }
.aside { grid-area: aside; }
.main { grid-area: main; }
.footer { grid-area: footer; }

.grid_container {
	display: grid;
	width: 100%;
	grid-template-areas:
		'header header'
		'intro intro'
		'aside main'
		'footer footer';
	grid-template-columns: 10% 80%;
	/* grid-template rows: 5% 10% 75% 10%; */
}

.aside {
	display: flex; 
	flex-direction: column;
	flex-wrap: wrap;
	color: gray;
	font-family: Lucinda, sans-serif;
}

button {
	background-color: #00ced1;
	padding: 10px;
	width: 200px;
	padding: 0.55rem 1rem;
        border-radius: 0.45rem;
        border: none;
        font-size: 0.95rem;
        font-weight: 500;
        cursor: pointer;
        transition: background 0.2s ease, transform 0.1 ease;
}



button:hover {
	background-color: #48d1cc;
}

button:active, .btn:active {
        transform: scale(0.97);
}


div {
	padding: 0.5rem;
}

.divider {
	margin: 2px 0;
	border-botton: 1px solid gray;
}

.fake_button {
	background-color: lightgray;
}

.fake_button:has(input:checked) {
	background-color: #00ced1;
}

fieldset div {
	padding: 0.25rem;
}

.flex_container {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	/* background-color: red; */
}

.flex_container form {
	/* background-color: #f1f1f1;*/
	margin: 10px;
	padding: 20px;
	width: 200px;
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	flex: 1 1 200px;
}

.flex_container form ul {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
}	

.flex_container form ul li {
	text-align: center;
	padding: 10px 30px;
}

footer, .footer {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	position: relative;
	justify-content: center;
	background-color: #f2f2f2;
}

footer div {
	margin: 0.5rem;
}

.header {
	width: 100%;
	display: flex;
	flex-direction: column;
	flex-wrap: wrap;
	background-color: whitesmoke;
}

.horizontal {
	display: flex;
	flex-direction: row;
	width: 70%;
	position: relative;
	justiy-content: center;
}

input {
	width: 75%;
	padding: 0.2rem;
}

.intro {
	display: flex;
	flex-direction: column;
	flex-wrap: wrap;
	width: 100%;
	justify-content: center;
	text-align: center;
	background-color: lightblue;
	position: relative;
	z-index: 0;
	color: #fff;
	text-shadow: 0 -5px #000;
	font-family: Lucinda, sans-serif;
}

ul {
        list-style-type: none;
}

.main {
	width: 100%;
	display: flex;
	flex-direction: column;
	flex-wrap: wrap;
	padding: 2%
}

.nav {
	width: 100%;
	display: flex;
	flex-direction: column;
	flex-wrap: wrap;
	padding: 2%
}

.nav ul {
	display: flex;
	background: gray;
	width: 100%;
	list-style: none;
	padding-left: 0;
}

.nav li {
	display: block;
	background: gray;
	color: #fff;
	padding: 1rem;
	position: relative;
	transition-duration: 0.3s;
}

.nav li:hover, 
.nav li:focus-within {
	cursor: pointer;
	background: lightgray;
	transform: scale(1.01);
}

.nav li:focus-within a {
	outline: none;
}

/* hide the sub menu */
.nav ul li ul {
	background: inherit;
	visibility: hidden;
	opacity: 0;
	min-width: 5rem;
	position: absolute;
	transition: all 0.5s ease;
	margin-top: 1rem;
	left: 0;
	display: none;
}

/* how submenu on hover and focus */
.nav ul li:hover > ul,
.nav ul li:focus-within > ul,
.nav ul li ul:hover,
.nav ul li ul:focus {
	visibility: visible;
	opacity: 1;
	display: block;
	z-index: 1;
}

.nav ul li ul li {
	width: 100%;
}

.nav a {
	text-decoration: none;
}

/* for pics */
.logo {
	/* background-color: red;*/
}

p {
	padding: 0.5rem;
}

.page {
	display: none;
}

.toggle_buttons ul {
	display: flex;
	list-style: none
}

.toggle_buttons ul li {
	display: blcok;
	padding: 0.2rem;
}

.#search {
	display: none;
}

.small_container {
	margin: 0.5rem;
	padding: 0.5rem;
}

textarea {
	width: 75%;
	height: 150px;
	box-sizing: border-box;
	padding: 0.1rem;
}

.tiptop {
	display: flex;
	flex-direction: column;
	flex-wrap: wrap;
	width: 100%;
	flex-flow: row;
}

* chatgpt */
/* Suggested from ChatGPT */
.container {
        max-width: 900px;
        margin: 2rem auto;
        background: white;
        padding: 2rem;
        border-radius: 0.75rem;
        box-shadow: 0 2px 10px rgba(0,0.0.0.05)
}

/*
button, .btn {
        background: #f0ffff;
        color: white;
        padding: 0.55rem 1rem;
        border-radius: 0.45rem;
        border: none;
        font-size: 0.95rem;
        font-weight: 500;
        cursor: pointer;
        transition: background 0.2s ease, transform 0.1 ease;
}
*/

table {
        width: 100%;
        border-collapse: collapse;
        margin-top: 1.5rem;
        font-size: 0.95rem;
}

th {
        text-align: left;
        padding: 0.75rem;
        background: #f3f4f6;
        font-weight: 600;
        border-bottom: 1px solid #e5e7eb;
}

td {
        padding: 0.75rem;
        border-bottom: 1px solid #e5e7eb;
}

tr:hover {
        background: #f9fafb;
}
h1, h2, h3 {
        font-weight: 600;
        color: #111837;
        margin-bottom: 1rem;
}

p {
        line-height: 1.6;
        margin-bottom: 1rem;
}







@media(max-width: 900px) {

	body {
		background-color: gray;
		display: flex;
		flex-direction: column;
	}

	.aside {
		display: none;
	}
	
	.footer {
		display: white;
	}

	.header {
		display: flex;
		flex-direction: column;
	}

	.nav {
		display: flex;
		flex-direction: row;
		width: 100%;
		align-items: center;
	}

	.tiptop {
		display: flex;
		flex-direction: column;
		width: 100%;
		align-items: center;
	}

}




/* chatgpt */
/* Suggested from ChatGPT */

/*
.container {
        max-width: 900px;
        margin: 2rem auto;
        background: white;
        padding: 2rem;
        border-radius: 0.75rem;
        box-shadow: 0 2px 10px rgba(0,0.0.0.05)
}

button, .btn {
        background: #2563eb;
        color: white;
        padding: 0.55rem 1rem;
        border-radius: 0.45rem;
        border: none;
        font-size: 0.95rem;
        font-weight: 500;
        cursor: pointer;
        transition: background 0.2s ease, transform 0.1 ease;
}

button:hover, .btn:hover {
        background: #1d4ed8;
}
button:active, .btn:active {
        transform: scale(0.97);
}

table {
        width: 100%;
        border-collapse: collapse;
        margin-top: 1.5rem;
        font-size: 0.95rem;
}

th {
        text-align: left;
        padding: 0.75rem;
        background: #f3f4f6;
        font-weight: 600;
        border-bottom: 1px solid #e5e7eb;
}

td {
        padding: 0.75rem;
        border-bottom: 1px solid #e5e7eb;
}

tr:hover {
        background: #f9fafb;
}
h1, h2, h3 {
        font-weight: 600;
        color: #111837;
        margin-bottom: 1rem;
}

p {
        line-height: 1.6;
        margin-bottom: 1rem;
}

*/
