/* Import fonts */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@400;700&family=Raleway:wght@400;700&display=swap');

/* Reset browser CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: 'Raleway', sans-serif;
    line-height: 1.7em;
    color: #202030;
    background-color: #FDFFFC;
    height: 100%;
    font-size: 14px;
    justify-content: center;
}

a {
    text-decoration: none;
    color: #F83b00; 
}

h1, h2, h3 {
    font-family: 'Noto Sans', sans-serif;
    font-weight: 700;
    color: #202030;
    padding-top: 10px;
    padding-bottom: 10px;
    font-size: 2.25em;
}

/* Container styles */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 5px;
    overflow: hidden;
}

.text-primary {
    color: #202030;
}

/* Navbar styles */
#navbar {
    background: #F83b00;
    color: #FDFFFC;
    padding: 10px 0;
    position: fixed;
    width: 100%;
    z-index: 1000;
    top: 0;
}

#navbar a {
    color: #FDFFFC;
    text-decoration: none;
}

#navbar ul {
    float: right;
    list-style: none;
    margin: 0;
    padding: 0;
}

#navbar ul li {
    float: left;
}

#navbar ul li a {
    display: block;
    padding: 20px;
    text-align: center;
}

#navbar ul li a:hover, 
#navbar ul li a.current {
    background: #202030;
    color: #FDFFFC;
}

#navbar h1 {
    float: left;
    margin: 0;
    padding: 10px 20px;
    font-size: 2em;
    line-height: 1.5;
}

/* Button styles */
.btn {
    padding: 10px 15px; 
    background-color: #F83b00;
    color: #FDFFFC;
    border: none;
    cursor: pointer;
    font-size: 1.125em; 
}

.btn:hover {
    background-color: #202030;
}

/* Result styles */
#result {
    margin-top: 10px;
    padding: 20px;
}

/* Form label styles */
label {
    display: block;
    margin-bottom: 5px;
    font-size: 1.125em; 
}

/* Form input styles */
input, textarea {
    width: 100%;
    padding: 8px; 
    box-sizing: border-box;
    font-size: 1.125em; 
}

/* Fuel calculator styles */
.fuel-calc-container {
    display: flex;
    gap: 20px;
}

.fuel-calc-explanation {
    flex: 1;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.fuel-calc-form {
    flex: 1;
}

/* Image and text container styles */
.image-text-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.image-text-box {
    display: flex;
    flex-direction: column;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    align-items: center;
}

.image-text-box:nth-child(odd) {
    grid-column: 1 / 2;
}

.image-text-box:nth-child(even) {
    grid-column: 2 / 3;
}

.image-text-box .image {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 20px;
}

.image-text-box .text {
    text-align: center;
}

.image-text-box .text h3 {
    margin-bottom: 10px;
}

.image-text-box .text p {
    margin: 0;
    word-wrap: break-word;
    font-size: 1.125em; 
}

.image-text-box ul {
    text-align: left;
    padding-left: 20px;
    font-size: 1.125em;
}

/* Welcome section styles */
.welcome-section {
    text-align: center;
}

.welcome-section p {
    margin-top: 20px;
    font-size: 1.125em;
}

/* Features section styles */
.features-section {
    margin-top: 40px;
    text-align: center;
}

.features-section h2 {
    margin-bottom: 20px;
    font-size: 2em;
    color: #202030;
}

.features-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.feature-box {
    flex: 1 1 calc(33.333% - 40px);
    background: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

.feature-box h3 {
    margin-bottom: 10px;
    font-size: 1.5em;
    color: #F83b00;
}

.feature-box p {
    margin: 0;
    font-size: 1.125em;
    color: #333;
}

.feature-box .btn {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background-color: #F83b00;
    color: #FDFFFC;
    border: none;
    border-radius: 5px;
    font-size: 1.125em;
    cursor: pointer;
    text-decoration: none;
}

.feature-box .btn:hover {
    background-color: #202030;
}

/* Footer styles */
footer {
    text-align: center;
    padding: 20px;
    background-color: #202030;
    color: #FDFFFC;
    border-top: 1px solid #ddd;
    margin-top: auto; 
}

footer p {
    margin: 0;
    font-size: 1.125em; 
}

/* Flexbox layout for full height */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh; 
}

main {
    flex: 1; 
}

/* Setup tips section styles */
.setup-tips-section {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-top: 80px;
    font-size: 1.125em; 
}

/* Text above calculator */
.text-space {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 5px;
    margin-top: 50px;
}

.text-space p {
    margin-top: 5px;
    font-size: 1.125em; 
    text-align: center;
}

/* Gallery */
.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.gallery-item {
    flex: 1 1 calc(50% - 40px); 
    box-sizing: border-box;
    margin-top: 5px;
    text-align: center;
}

.gallery-item img {
    max-width: 100%;
    height: 75%;
    margin-bottom: 10px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.gallery-item p {
    margin-top: 5px;
    font-size: 1em;
    color: #333;
}

.gallery-video {
    margin-top: 40px;
    text-align: center;
}

.gallery-video iframe {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.gallery-video p {
    margin-top: 10px;
    font-size: 1.25em;
    color: #333;
}

.carousel-caption {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 2px;
    border-radius: 5px;
    color: #FDFFFC;
    text-align: center;
}

/* Contact form styles */
.contact-section {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-top: 40px;
}

.contact-section h2 {
    text-align: center;
    margin-top: 60px;
    margin-bottom: 20px;
}

.contact-section p {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.125em;
}

.contact-section .form-group {
    margin-bottom: 15px;
}

.contact-section label {
    display: block;
    margin-bottom: 5px;
    font-size: 1.125em;
}

.contact-section input, 
.contact-section textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1.125em;
    box-sizing: border-box;
}

.contact-section textarea {
    height: 150px;
    resize: vertical;
}

.contact-section .btn {
    display: block;
    width: 100%;
    padding: 10px;
    background-color: #F83b00;
    color: #FDFFFC;
    border: none;
    border-radius: 5px;
    font-size: 1.125em;
    cursor: pointer;
    text-align: center;
}

.contact-section .btn:hover {
    background-color: #202030;
}

/* Setup tips section styles */
.setup-tips-section {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-top: 40px;
    font-size: 1.125em;
}

.setup-tips-section h2 {
    text-align: center;
    margin-bottom: 20px;
}

.setup-tips-section h3 {
    margin-top: 20px;
    color: #F83b00;
}

.setup-tips-section ul {
    list-style-type: disc;
    margin-left: 20px;
}

.setup-tips-section li {
    margin-bottom: 10px;
}

/* Specific styles for the gallery page */
.gallery-page main {
    margin-top: 35rem;
}

/* Specific styles for the index page */
.index-page main {
    margin-top: 30rem;
}

.setup-page main {
    margin-top: 40px;
}
.fuelcalc-page main {
    margin-top: 100px;
}
