/* Version: 1.0 */
* {
    box-sizing: border-box;
    margin: 0;
}

body, html {
    height: 100%;
    margin: 0;
    display: grid;
    grid-template-rows: auto 1fr auto;
}

body {
    font-family: Verdana, Arial, sans-serif;
    background-color: #c7c7c7;
}
nav {  background-color: #000000; }
nav ul { list-style-type: none; 
         margin: 0;
         padding: 0;
}
nav li { border-bottom: 1px solid #ffffff;
}
nav a { text-decoration: none; 
        display: block;
		padding: 1em 2em;
		transition: background-color 2s linear;
        
}
nav a:link { color: #FFFFFF; }
nav a:visited { color: #F8F8F8; }
nav a:hover {  color: #850808;
               background-color: #ffffff;
}

section {
    background-color: #959595;
    margin-bottom: 1em;
    margin-right: 1em;
    padding: 0; /* Remove padding */
    border-radius: 10px;
    box-sizing: border-box;
}

section h3 {
    background-color: #4d4d4e;
    font-size: 110%;
    margin: 0;
    padding: .25em;
    color: #ffffff;
    box-sizing: border-box;
    display: block;
    width: 100%;
}

section > *:not(h3) {
    padding: .5em; /* Apply padding to all direct children of section that are not h3 */
}

header {
    background-color: #000000;
    color: #ffffff;
    text-shadow: 1px 1px 1px #FFFFFF;
    padding: 2em 0 2em 7em;
    font-size: 120%;
}

header:hover {
    background-color: #000000;
}

header h1 {
    color: #ffffff;
    transition: color 0.5s ease; /* Add transition for smooth color change */
}

header h1:hover {
    color: #850808; /* Change color on hover */
}

h2 {
    color: #850808;
    font-family: Arial, sans-serif;
}

main, aside {
    padding: 1em;
}

figure {
    margin: auto;
    padding: 8px;
    width: 317px;
    background-color: #FFF;
    border: 1px solid #7e7e7e;
    box-shadow: 5px 5px 5px #828282;
    border-radius: 15px 50px;
}

figcaption {
    text-align: center;
    font-size: .8em;
    font-style: italic;
}

img {
    border-radius: 15px 50px;
}

table {
    margin: auto;
    border: 5px solid #c40303;
    width: 100%; /* Make the table responsive by setting its width to 100% */
    max-width: 600px; /* But limit its maximum width to 600px */
    border-spacing: 0;
    table-layout: auto; /* Allow the browser to adjust the column widths as needed */
}

td, th {
    padding: 0.5em;
    border-style: none;
    font-family: Arial, sans-serif;
}

caption {
    font-family: Verdana, sans-serif;
    font-weight: bold;
    font-size: 1.2em;
    padding-bottom: 0.5em;
}

.altrow {
    background-color: #eaeaea;
}

footer { background-color: #6d6d6d;
         font-size:70%;
         text-align: center;
         padding: 2em;
	 clear: both;
}

#offer {
    background-color: #EAEAEA;
    width: 10em;
    margin: 2em auto 0 auto;
    text-align: center;
}

#offer a {
    text-decoration: none;
    color: #9b0808;
}

header, main, nav, figure, footer {
    display: block;
}

#content {
    min-height: calc(100vh - 80px - 80px); /* Replace 80px with your actual header and footer heights */
    display: flex;
}

@media only screen and (max-width: 600px) {
    #content {
        flex-direction: column; /* Stack elements vertically */
    }

    #logo {
        order: -1; /* Move the logo to the top */
    }

    header {
        order: 0; /* Keep header below logo */
    }

    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    main {
        margin-left: 60px; /* Adjust main content margin to make space for the icon bar */
        padding-left: 1em; /* Add padding to align content with the icon bar */
    }

    aside {
        order: 3; /* Move aside to the bottom */
    }

    aside section {
        margin-bottom: 20px; /* Add some space between sections */
    }

  footer { background-color: #6d6d6d;
         font-size:70%;
         text-align: center;
         padding: 2em;
	  clear: both;
	 }
}

@media only screen and (min-width: 768px) {
    #content { display: flex; }   
    nav { flex: none; }
    main { 
        flex: 6; 
        min-width: 20em; /* Move the min-width property here */
        background-color: #FFFFFF; 
    }
    aside { 
        flex: 4; 
        background-color: #919191; 
    }
    header { padding-left: 10em; }
}

fieldset {
    width: 100%; /* Change this from 320px to 100% */
    border: 2px ridge #FF0000;
    padding: 10px;
    margin-bottom: 10px;
}

legend {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: bold;
}

label {
    font-family: Arial, sans-serif;
}

#floatright {
    max-width: 100%;
    height: auto;
    float: right;
}

form {
    width: 100%; /* Make the form take up the full width of its parent */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

input[type="text"], textarea {
    width: 100%; /* Make input fields and textarea take up the full width of the form */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

.button {
    background-color: black;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 10px 20px;
    text-decoration: none;
    text: center;
    display: block; /* Make the link a block element */
    margin: auto; /* Center the link horizontally */
    width: 50%; /* Added missing semicolon */
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: red;
}

@keyframes zoomIn {
    0% {
        transform: scale(0.1);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: scale(1);
    }
}

#logo {
    width: 120px;
    height: 120px; /* Make the height equal to the width */
    position: absolute;
    top: 10px;
    left: 10px;
    border-radius: 50%; /* Make the image a circle */
    /*animation: zoomIn 2s;*/ /* Animate the image */
}

h1 {
    /*animation: zoomIn 1s;*/
}

#container {
    display: flex;
}
#logo {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}
