/* Basic reset and styling */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 50px;
}

h1 {
    text-align: center;
    padding: 20px;
    color: #fc6434;
    margin: 0;
}

h2 {
    text-align: center;
    padding: 14px;
    color: #1d2a61;
    margin: 0;
}

/* Container for form and result */
.container {
    display: flex;
    justify-content: center;
    padding: 30px;
}

/* Form styling */
.form-container, .result-container {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin: 10px;
    box-sizing: border-box; /* Ensure padding and borders are included in width/height */
}

/* Flexbox for form layout */
.form-container {
    width: 25%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.result-container {
    width: 75%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Flexbox for form rows */
.form-row {
    display: block;
    justify-content:flex-start;
    align-items: left;
    width: 100%;
    padding: 15px;
    margin-bottom: 10px;
    gap: 10px;
}

/* Form element styling */
.form-container label {
    display: flex;
    font-weight: bold;
    margin-top: 10px;
}

.form-container input[type="range"] {
    display: flex;
    width: 100%;
    box-sizing: border-box; /* Ensure padding and borders are included in width */
    transform: scale(1); /* Increase slider size to 150% */
    margin: 0 auto; /* Add space to the top of the slider */
}

.form-container output {
    display: block;
    margin-left: 5px;
    font-size: 1.1em;
}

.form-container input[type="text"] {
    display: flex;
    width: 100%;
    padding: 8px;
    margin: 0 auto;
    border-radius: 5px;
    border: 1px solid #ddd;
}

.form-container input[type="button"],
.form-container input[type="submit"] {
    width: 100%;
    padding: 10px;
    margin: 5px 0;
    border-radius: 5px;
    border: 1px solid #ddd;
    background-color: #fc6434;
    color: #fff;
    border: none;
    cursor: pointer;
    box-sizing: border-box; /* Ensure padding and borders are included in width */
}

.form-container input[type="button"] {
    display: flex;
    width: 100%;
    margin: 5 auto;
    
}

.form-container input[type="submit"] {
    display: flex;
    width: 75%;
    margin: 25px auto;
}


.form-container input[type="submit"]:hover, 
.form-container input[type="button"]:hover {
    background-color: #555;
}

/* Result image styling */
.result-container img {
    max-width: 100%;
    border-radius: 8px;
}

.table {
    max-width: 100%;
    border-collapse: collapse;
}

.table th, .table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
}

footer {
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centers the images horizontally */
    align-items: center; /* Aligns the images vertically in the center */
    padding-top: 50px;
    text-align: center;
}

footer img {
    width: 100px; /* Adjust the width of the images as needed */
    margin: 0 10px; /* Add spacing between images */
}
footer p {
    font-size: small;
    margin-top: 20px; /* Add space between the images and the text */
    color: #555;
}