/*
Author: Stephanie Colorado-Labrada
Date: 2-20-25
File: styles.css
*/

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=DynaPuff:wght@400;500;600;700&amp;display=swap');

/* CSS Reset */
body, header, nav, main, footer, img, h1, h3,figure, figcaption {
    margin: 0;
    padding: 0;
    border: 0;
}

.video{
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}

.vid-header{
    font-family:"Montserrat", serif;
}

html, body {
    height: 100%;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}
footer {
    text-align: center;
    font-size: 0.85em;
    background-color:#00C9FC ;
    color:#FFFFFF;
    padding:1% 0;
    }
    
footer a {
    color: #3e6d8f;
    text-decoration: none;
 }

.logo {
    font-family: "DynaPuff", serif;
    font-weight: 600;
    font-style: normal;
    font-size: 30px;
    color: #FFFFFF;
    padding: 16px 16px;
    margin-right: auto;
}


nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    background-color: #00C9FC;
}



ul {
    list-style-type: disc;
    padding-left: 20px;
}

li {
    display: block;
}

li a {
    display: block;
    color: white;
    font-family: "Montserrat", serif;
    font-style: normal;
    text-align: center;
    padding: 16px 16px;
    padding-top: 30px;
    padding-bottom: 30px;
    text-decoration: none;
}

li a:hover {
    background-color: #41DDFF;
}
/* Why us list style! */
.why-us {
    text-align: center; 
    padding-bottom: 20px;
}

.why-us ul {
    list-style-type: disc; 
    padding-left: 0px; 
    text-align: left; 
    display: inline-block !important; 
    margin: 0 auto;
}
.why-us li {
    display: list-item !important; 
    margin-bottom: 10px
}


.horizontal-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Style rule for ABOUT US section */
.about-text {
    font-family: "Montserrat", serif;
    font-style: normal;
    font-size: 15px;
    margin: 0;
    background-color:rgba(255, 235, 80, 0.5);
    padding: 10px;
    text-align: center;
    display: block;
    width: auto;
}

/* Style rule for CHOOSE US section */
.choose-us-text {
    font-family: "Montserrat", serif;
    font-style: normal;
    font-size: 15px;
    margin: 0;
    text-align: center;
}

.why-us {
    font-family: "Montserrat", serif;
    font-style: normal;
    font-size: 15px;
    margin: 0;
    text-align: center;
    color:#128FC8;
}

/*  Headers */
.about-us {
    font-family: "Montserrat", serif;
    font-size: 25px;
    text-align: center;
}

.your-pet {
    font-family:"DynaPuff", serif;
    font-size: 25px;
    text-align: center;
    color:#128FC8;
}

.choose {
    font-family: "Montserrat", serif;
    font-size: 25px;
    text-align: center;
}

.with-us {
    font-family: "Montserrat", serif;
    font-size: 20px;
    text-align: center;
    color:#128FC8;
}

.vets{
    font-family: "Montserrat", serif;
    font-size: 20px;
    text-align: center;
    color:#128FC8;   
}
h2 {
    text-align: center;
    color: #00C9FC;
    font-size: 20px;
}

/* Circle Image Styles */
.image-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 420px;
    margin: 0 auto;
}

.cat-image, .dog-image {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Hover effect */
.cat-image:hover, .dog-image:hover {
    transform: scale(1.1); /* Slightly enlarge the image */
    opacity: 0.8; /*transparency*/
}

/*----------------------------- DOGS WEBPAGE STYLES-------------------------*/
.food-choices, .food-choices h2{
    font-family: "Montserrat", serif;
    font-size: 25px;
    text-align: center;
    color:#FFD301;
}

.dog-food:hover{
    transform: scale(1.05); 
    opacity: 0.8; 
    transition: transform 0.3s ease, opacity 0.3s ease; /*MAKES THEM SMOOHTER*/
}

.best-dog-food{
    display:flex;
    justify-content:center;
    flex-wrap:nowrap;
    padding:2rem;
    font-family:"Montserrat", serif;
}
.best-dog-food{
    text-align:center;
    padding:2rem;
    background-color:rgba(255, 235, 80, 0.5);
}

.best-dog-food{
    display:inline-block;
    margin-bottom:0rem;
}

.dog-food{
    display:inline-block;
    width:50%;
    margin:2rem;
    text-align:center;
    font-family:"Montserrat", serif;
}

.dog-food img {
    width: 200px;  
    height: 200px;
    object-fit: contain; 
    display: block;
}

.dog-food h3{
    margin-top:10px;
    font-size:1.5rem;
    font-family:"DynaPuff", serif;
    color:#128FC8;
}

.dog-food p{
    font-size:1.1rem;
}

.dog-food{
    background:rgba(255, 235, 80, 0.5);
    padding:20px;
    border-radius: 10px;
    text-align:center;
    max-width:300px;
    box-shadow: 2px 2px 2px 10px rgba(0, 201, 252, 0.3);
}

.dog-food-container {
    display: flex;
    justify-content: center;
    gap: 2rem; 
    flex-wrap: wrap; 
    margin-top: 2rem;
}

/* ---------------------CATS WEBPAGE STYLES--------------------------- */
.food-choices{
    font-family:"Montserrat", serif;
    font-size: 25px;
    text-align: center;
    color:#2ECBE9;
}

.cat-food:hover{
    transform: scale(1.05); 
    opacity: 0.8; 
    transition: transform 0.3s ease, opacity 0.3s ease; /* Smooth transition */
}

.best-cat-food{
    display:flex;
    justify-content:center;
    flex-wrap:nowrap;
    padding:2rem;
    font-family:"Montserrat", serif;
}
.best-cat-food{
    text-align:center;
    padding:2rem;
    background-color:rgba(255, 235, 80, 0.5);
}

.best-cat-food{
    display:inline-block;
    margin-bottom:0rem;
}

.cat-food{
    display:inline-block;
    width:50%;
    margin:2rem;
    text-align:center;
    font-family:"Montserrat", serif;
}


.cat-food img {
    width: 200px;  
    height: 200px;
    object-fit: contain; 
    display: block;
}

.cat-food h3{
    margin-top:10px;
    font-size:1.5rem;
    font-family:"DynaPuff", serif;
    color:#128FC8;
}

.cat-food p{
    font-size:1.1rem;
}

.cat-food{
    background:rgba(255, 235, 80, 0.5);
    padding:20px;
    border-radius: 10px;
    text-align:center;
    max-width:300px;
    box-shadow: 2px 2px 2px 10px rgba(0, 201, 252, 0.3);
    cursor: pointer;
}

.cat-food-container {
    display: flex;
    justify-content: center;
    gap: 2rem; /* spacing between items */
    flex-wrap: wrap; /* wrap on smaller screens */
    margin-top: 2rem;
}

/*-----------------------------VET WEBPAGE STYLE---------------------*/
.vets{
    font-family: "Montserrat", serif;
    font-style: normal;
    font-size: 15px;
    margin: 0;
    background-color:rgba(255, 235, 80, 0.5);
    padding: 10px;
    text-align: center;
    display: block;
    width: auto;
}

.professional-care{
    font-family: "Montserrat", serif;
    font-size: 25px;
    text-align: center;
}

.vet-container {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 2rem;
    padding: 1rem;
}

.best-vets img {
    width: 120px;
    height: 120px;
    border-radius: 20px;
    object-fit: cover;
    margin-bottom: 0.5rem;
    border: 4px solid #00C9FC; 
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* FOR CIRCLE IMAGES */
    cursor: pointer;
}

.best-vets img:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3); /* Shadow on hover */
}

/*  best-vets blocks */
.vet-container {
    display: flex;
    justify-content: center; 
    flex-wrap: wrap;
    gap: 2rem;
    padding: 2rem;

}

.best-vets p{
    font-family: "Montserrat", serif;
    font-size:17px;
    font-size: 0.95rem;
    line-height: 1.4;
    flex-grow: 1;
}

/* Styles for each service box*/
.best-vets {
    width: 250px;
    height: 350px;
    text-align: center;
    padding: 1rem;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    border-radius: 10px;
    background-color:#f9f9f9 ;
    display: flex;
    flex-direction: column;
    justify-content: space-between
}

.best-vets h3{
    font-family: 'DynaPuff', cursive;
    color:#128FC8;
}

/* So my images are above the text */
.best-vets img {
    width: 100px;
    height: auto;
    display: block;
    margin: 0 auto 1rem auto;
}

/* spacing and styling to text */
.best-vets h3 {
    margin: 0.5rem 0;
}

.figure-elements h2{
    font-family: "DynaPuff", serif; 
    color:#128FC8;
}

.figure-elements figcaption{
    font-family: "Montserrat", serif; 
}
/*---------------------------FAQS WEBPAGE STYLES----------------*/
.faq-section h1 {
    text-align: center;
    color:#00C9FC;
    margin-bottom: 2rem;
    padding:1rem;
    font-family: "Montserrat", serif;
    
} 

.faq {
    background-color: #e0f9fe; 
    border: 3px solid #00C9FC; 
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    font-family:"Montserrat", serif;
    
}

.faq h2 {
  margin-top: 0;
  color:#128FC8 ;
  font-family: "DynaPuff", serif;
}

.faq p {
  text-align: center;
}
/*----------------------FIGURE STYLES---------------------*/
.figure-elements{
    display: flex;
    justify-content: center; 
    gap: 20px; 
    flex-wrap: wrap; 
    padding: 20px;
}

figure {
    width: 250px;
    text-align: center;
}

figure img {
    width: 90%;
    height: 160px;
    object-fit: cover; /* crop/scale image to fit nicely */
    border: 2px solid #00C9FC;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

figcaption {
  margin-top: 8px;
  font-style: italic;
  color: #444;
}

/*----------------- FORM STYLES-------------*/
fieldset, input, textarea {
    margin-bottom: 2%;
    background-color: #e0f7fa;
    font-family:"Montserrat", serif;
}

input, textarea{
    background-color:#FFF;
}

fieldset legend {
    font-weight: bold;
    font-size: 1.25em;
}

label {
    display: block;
    padding-top: 2%;
}

form #submit {
    margin: 0 auto 2em auto; /* top: 0, bottom: 2em */
    padding: 0.5em 1em;
    background-color: #2ECBE9;
    color: #fff;
    font-size: 1em;
    border-radius: 10px;
    width: fit-content;
    
}

#form{
     font-family:"Montserrat", serif;
}

/* Desktop Viewport: Style rules for form elements */
form {
    width: auto;
    }

.form-grid {
    display: grid;
    grid-template-columns: auto auto;
    gap: 20px;
    }

.btn {
 grid-column: 1 / span 2;
}

/*---RESPONSIVE WEBAPGE SECTION---*/

/* ------------------------MOBILE MEDIA QUERY---------------- */
@media screen and (max-width: 600px) {
    body {
        font-size: 14px;
    }

    .logo {
        font-size: 20px;          
        padding: 10px;              
        margin: 0 auto;            
        display: block;             
        text-align: center;
        white-space: normal;        
        word-break: break-word;     
        width: 100%;
        box-sizing: border-box;
}
    nav ul {
        flex-direction: column;
        align-items: center;
        padding: 0;
        margin: 0;
    }

    nav ul li {
        margin-bottom: 10px;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #ccc; /* adds a Line between nav choices */
        padding: 10px 0;
    }

    nav ul li:last-child {
        border-bottom: none; /* Remove the line after the last item */
    }

    .image-container {
        flex-direction: column;
    }

    .dog-food, .cat-food {
        width: 90%;
        margin: 1rem auto;
    }

    .dog-food img, .cat-food img {
        width: 150px;
        height: 150px;
    }

    .dog-food-container, .cat-food-container {
        flex-direction: column;
        align-items: center;
    }

    .vet-container {
        flex-direction: column;
    }

    .best-vets {
        width: 90%;
    }

    .form-grid {
        display: block;
        width: 90%;
        margin: 0 auto;
    }

    footer {
        text-align: center;
        padding: 1rem;
    }

    .faq-section h1 {
        font-size: 1.4rem;
    }

    figure {
        width: 90%;
    }
}


/* ----------- TABLET MEDIA QUERY ------------ */
@media screen and (min-width: 601px) and (max-width: 900px) {
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .logo {
        font-size: 26px;
        padding: 12px 20px;
        margin: 0;
        text-align: left;
        white-space: nowrap; /* Keeps it on one line if there's space */
        word-break: normal;
        width: auto;
        box-sizing: border-box;
    }

    .dog-food, .cat-food {
        width: 45%;
        margin: 1rem;
    }

    .dog-food img, .cat-food img {
        width: 180px;
        height: 180px;
    }

    .dog-food-container, .cat-food-container {
        justify-content: center;
        gap: 1rem;
    }

    .vet-container {
        flex-wrap: wrap;
    }

    .best-vets {
        width: 45%;
    }

    .form-grid {
        width: 80%;
        margin: 0 auto;
    }

    footer {
        text-align: center;
        padding: 1.5rem;
    }

    .faq-section h1 {
        font-size: 1.7rem;
    }
}

/* ----------- LAPTOP/DESKTOP MEDIA QUERY ----------- */
@media screen and (min-width: 901px) {
    .dog-food-container, .cat-food-container, .vet-container {
        justify-content: center;
    }
}
