/* Styles for the RBJ Vending website */


html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
}

/* allow main content to grow and push footer down */
main {
    flex: 1;
}

/* Typography */
body {
    display: flex;
    flex-direction: column;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

h1 {
    font-size: 2.5em;
    margin-top: 1em;
    margin-bottom: 2em;
    text-align: center;
}

p {
    font-size: 1.3em;
    margin-bottom: 1em;
    text-align: center;
    padding: 0em 30%;
}

nav ul {
    font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.2em;
}

ol {
    text-align: left;
    padding-left: 1.5em;
    margin: 0.5em 0;
    font-size: 32px;
}


#product_contact {
    text-decoration: none;
    color:rgb(255, 52, 52);
}

textarea {
    font-family: 'Arial', sans-serif;
    height: 150px;
    width: auto;
}

textarea::placeholder {
  font-family: 'Arial', sans-serif;
}

#rp {
    padding: 0;
    margin: 0;
    text-align: center;
}

#sg {
    font-size: 28px;
}



/* Image Styles */
figure {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 60vh;
    border-bottom: #111111 solid 15px;
}

img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.header {
    display: block;
    width: 14%;
    height: auto;
    margin: auto;
    padding: 5em 0;
}

#header {
    padding: 2em 0 0em;
    width: 20%;
}

.logo {
    width: 5em;
    height: auto;
    margin: 0 1em;
    padding-top: 0.25em;

}

.return_home_btn {
    display: block;
    width: fit-content;
    margin: 2em auto;
    background-color: rgb(255, 52, 52);
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.return_home_btn:hover {
    background-color: rgb(235, 63, 63);
}









/* Navigation Styles */
nav {
    position: sticky;
    top: 0;
    border-bottom: 4px solid #000000;
    z-index: 10000;
}

nav ul {
list-style-type: none;
margin: 0em;
padding: 0em;
background-color: #d8d8d8;
display: flex;
justify-content: center;
height: 3.5em;
}

nav li {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 150px;
    color: rgb(0, 0, 0);
}

nav li a {
    display: block;
    color: inherit;
    padding: 14px 28px;
    text-decoration: none;
}

nav li.active {
    background-color: #000000;
    color: white;
}

nav li.active a {
    color: red;
}

nav li:hover {
    background-color: #ffffff44;
    color: rgb(255, 52, 52);
    
}

nav li.active:hover {
    background-color: #ffffff44;
    color: red;
}

nav li a:hover {
    color: rgb(255, 52, 52);
}

/* Footer Styles */
footer {
    background-color: #d8d8d8;
    border-top: 10px solid #000000;
    text-align: center;
    padding: 2em 0 0;
    margin-top: 4em;
    font-size: 1.2em;
    color: #333;
    position: relative;
    bottom: 0;
}

footer ul {
    list-style: none;
    margin: 0;
    padding-bottom: 0em;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

footer ul li {
    margin: 0 1em;
}

footer ul a {
    color: inherit;
    text-decoration: none;
}

footer ul a img {
    width: 2em;
    height: auto;
    vertical-align: middle;
}

.footer_logo {
    width: 8em;
    padding: 1em 0;
    height: auto;
    margin: 0 auto 0em;
    display: block;
}

footer p {
    margin: 0em 0;
    font-size: .7em;
}

footer .number {
    font-size: 32px;
}









/* Slideshow container */
.slideshow-container {
  max-width: 200px;
  position: relative;
  margin: auto;
}

/* Hide the images by default */
.mySlides {
  display: none;
}

/* Style the images in the slideshow */
.mySlides img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  background-color: white; /* Optional: adds white background for logos with transparency */
}

/* The dots/bullets/indicators */
.dot {
  cursor: pointer;
  height: 12px;
  width: 12px;
  margin: 0 12px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.active, .dot:hover {
  background-color: #717171;
}

/* Fading animation */
.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {opacity: .4}
  to {opacity: 1}
}




/* Product styles */
.opening {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 3em;
    padding-bottom: 2em;
    flex-wrap: wrap;
    width: 70%;
    margin: auto;
}

.container {
    text-align: center;
    padding: 0;
    width: 40%;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1em;
}

.product_img {
    width: 80%;
    height: auto;
    object-fit: cover;
    box-shadow: 4px 4px 8px rgba(0,0,0,1);
}

.opening p {
    padding: 0;
    margin: 0;
    text-align: center;
}



/* Services Page */

.service_container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 10em;
    padding-bottom: 2em;
}

.service_img {
    width: 70%;
    height: auto;
}

.service_container p {
    padding: 0;
    margin: auto;
}




/* contact page */

.contact {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 2em;
    gap: 5em;
}

#contact {
    padding-top: 5em;
}

.contact_container{
    padding: 0;
    width: 50%;
    margin: 0;
}

.contact_container p {
    padding: 0;
    margin: auto;
    text-align: center;
}

#one {
    width: 70%;
}

#two {
    width: 30%;
}

#refund {
    padding-top: 0;
    margin-top: 0;
    width: 50%;
    text-align: center;
    height: 360px;
    max-width: 600px;
}

.ol {
    display: block;
    text-align: center;
    padding-left: 100px;
}

#refund ol {
    display: inline-block;
    text-align: left;
}

.method {
    padding: 10px;
    font-size: 16px; 
    color: gray;
    border: 1px solid rgb(198, 198, 198); 
    border-radius: 4px;

}

#refund_form {
    padding-bottom: 2em;
}


.contact_form {
    max-width: 600px;
    margin: 2em auto;
    padding: 0em 0 0 0;
    background: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.contact_form form {
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.contact_form label {
    font-weight: bold;
    margin-bottom: 0.3em;
    text-align: left;
}

.contact_form input,
.contact_form textarea {
    padding: 0.7em;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
    resize: vertical;
}

.contact_form button[type="submit"] {
    background: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 0.8em;
    font-size: 1.1em;
    cursor: pointer;
    transition: background 0.2s;
}

.contact_form button[type="submit"]:hover {
    background: #c0392b;
}




.refund {
    padding: 0;
    margin: 0 0 1em 0;
}




/* Mobile Responsive Styles */
@media (max-width: 840px) {
    /* Typography */
    h1 {
        font-size: 2em;
        margin-top: 0.5em;
        margin-bottom: 1em;
    }

    p {
        font-size: 1em;
        padding: 0 1em;
        margin-bottom: 0.8em;
    }

    /* Navigation */
    nav ul {
        height: auto;
        flex-wrap: wrap;
        gap: 0.5em;
    }

    nav li {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20%;
    font-size: 12px;
}

    nav li a {
        padding: 6px 10px;
        font-size: 1.2em;

    }

    nav ul {
        font-size: 1em;
    }

    /* Images */
    .header {
        width: 40%;
        padding: 2em 0;
    }

    .logo {
        width: 3em;
        margin: 0 0.5em;
    }

    figure {
        height: 40vh;
    }

    /* Footer */
    footer {
        padding: 1em 0 0;
        font-size: 1em;
    }

    footer ul {
        padding-bottom: 0.5em;
        flex-direction: row;
        gap: 0.8em;
    }

    footer ul li {
        margin: 0;
    }

    footer p {
        margin: 0.3em 0;
        font-size: 0.95em;
        padding: 0 1em;
    }

    footer .number {
        font-size: 24px;
    }

    /* Products */
    .opening {
        width: 90%;
        gap: 1.5em;
    }

    .container {
        width: 100%;
    }

    .product_img {
        width: 70%;
    }

    /* Button */
    .return_home_btn {
        padding: 10px 25px;
        font-size: 1em;
        margin: 1.5em auto;
    }

    /* Slideshow */
    .slideshow-container {
        max-width: 40%;
    }

    .dot {
        height: 8px;
        width: 8px;
        margin: 0 6px;
    }

    /* Services */
    .service_container {
        flex-direction: column;
        gap: 1.5em;
    }

    .service_img {
        width: 60%;
    }
    


    .contact {
        flex-direction: column;
        padding: 0 1em;
        margin: 0;
        gap: 1em;
    }

    .contact_form {
        padding: 1em 0 0 0;
        margin: 0;
        max-width: 100%;
    }

    #one {
        padding: 0;
        margin: 0;
        width: 100%;
    }

    #two {
        padding: 0;
        margin: 0;
        width: 100%;
    }

    #rp {
        font-size: 32px;
    }

    #refund {
    padding-top: 0;
    margin-top: 0;
    width: 70%;
    text-align: center;
    height: 360px;
    max-width: 400px;
}

#refund ol {
    display: inline-block;
    text-align: left;
    max-width: 350px;
}

ol {
    font-size: 24px;
}

.ol {
    padding-left: 50px;
}

#header {
    width: 40%;
}



}

@media (max-width: 480px) {
    /* Extra small devices */
    h1 {
        font-size: 1.5em;
        margin-top: 0.3em;
        margin-bottom: 0.8em;
    }

    p {
        font-size: 0.9em;
        padding: 0 0.8em;
    }

    nav ul {
        height: auto;
    }

    nav li {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 10px;
    margin: auto;
    color: rgb(0, 0, 0);
    font-size: 14px;
}

    nav li a {
        padding: 8px 8px;
        font-size: 0.8em;
    }

    nav li.active a{
        background-color: #000000;
        padding: 9px;
        color: rgb(255, 0, 0);
    }

    .header {
        width: 50%;
        padding: 1em 0;
    }

    .logo {
        width: 2.5em;
        margin: 0 0.3em;
    }

    figure {
        height: 30vh;
        border-bottom-width: 8px;
    }

    footer {
        margin-top: 1em;
        font-size: 0.9em;
    }

    footer p {
        font-size: 0.85em;
        padding: 0 0.5em;
    }

    footer .number {
        font-size: 20px;
    }

    .opening {
        width: 95%;
        gap: 1em;
    }

    .service_container {
        gap: 1em;
    }

    .service_container .container p {
        width: 90%;
    }

    .service_img {
        width: 50%;
    }

    .return_home_btn {
        padding: 8px 20px;
        font-size: 0.9em;
        margin: 1em auto;
    }

    .contact_container p {
        width: 90%;
    }

    .contact_container .contact_form {
        width: 90%;
        margin: 0 auto;
    }

    #refund {
    width: 80%;
    text-align: left;
}

.refund {
    padding: 0;
    margin: 0 0 3em 0;
    font-size: 32px;
}

#header {
    width: 60%;
}

#sg {
    font-size: 24px;
}

.ol {
    padding-left: 15px;
}

ol {
    font-size: 18px;
}

}
