/* General body styling */
body {
    font-family: 'Arial', sans-serif;
    background-color: #fdfdfd;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: 100vh;
    margin: 0;
    padding: 10px;
}

/* Container */
.container {
    width: 100%;
    max-width: 600px;
    text-align: center;
    padding: 0 15px; /* Padding for mobile screens */
}

/* Image box */
.image-box {
    background-color: #f9f9f9;
    border: 2px solid #ddd;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.dog-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
}

/* Fix for mobile image */
@media only screen and (max-width: 768px) {
    .dog-image {
        width: 100px; /* Adjust width for mobile */
        height: 100px; /* Adjust height for mobile */
        display: block; /* Ensure the image is displayed */
        margin: 0 auto 10px auto; /* Center the image */
    }
}

.highlight {
    font-weight: bold;
    color: #50C878;
}
.weight-edit {
    margin-top: 10px;
}

.weight-edit input {
    width: 80px;
    padding: 5px;
    margin-right: 10px;
    font-size: 1rem;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.weight-edit button {
    background-color: #50C878;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
}

.weight-edit button:hover {
    background-color: #47b370;
}

/* Flex container for logs */
.log-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap; /* Ensure proper wrapping on smaller screens */
}

/* Food info widget & poop/pee widget */
.food-info-widget,
.poop-pee-widget {
    background-color: #f9f9f9;
    border: 2px solid #ddd;
    padding: 20px;
    border-radius: 15px;
    width: 48%; /* Ensure both widgets take up equal space */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    box-sizing: border-box; /* Ensure padding doesn't affect width */
}

.log-food-container {
    margin-top: 10px;
}

/* Poop & Pee Log icons */
.log-icons {
    margin: 20px 0;
    display: flex;
    justify-content: space-around;
}

#poop-log, #pee-log {
    margin-top: 10px;
}

#poop-emojis, #pee-emojis {
    display: block;
    font-size: 2rem;
}

#poop-count-text, #pee-count-text {
    font-size: 1.2rem;
}

.emoji {
    font-size: 1rem;  /* Adjust size of emojis */
    display: inline-block;
    margin-right: 1px;  /* Optional: Adds spacing between emojis */
}

/* Modal Styling */
.modal {
    display: none;  /* Hidden by default */
    position: fixed; 
    z-index: 1; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    background-color: rgba(0,0,0,0.4);  /* Black background with opacity */
}

/* Modal Content */
.modal-content {
    background-color: #f9f9f9;
    margin: 15% auto; 
    padding: 20px;
    border: 1px solid #888;
    width: 80%; 
    max-width: 400px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Close Button */
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}
/* Mobile-friendly adjustment for widgets */
@media only screen and (max-width: 768px) {
    .food-info-widget,
    .poop-pee-widget {
        width: 100%; /* Take full width on mobile */
        margin-bottom: 20px; /* Add spacing between stacked widgets */
    }
}

.log-food-container {
    margin-top: 10px;
}

/* Poop & Pee Log icons */
.log-icons {
    margin: 20px 0;
    display: flex;
    justify-content: space-around;
}

#poop-log, #pee-log {
    margin-top: 10px;
}

#poop-emojis, #pee-emojis {
    display: block;
    font-size: 2rem;
}

#poop-count-text, #pee-count-text {
    font-size: 1.2rem;
}

.emoji {
    font-size: 1.5rem;  /* Adjust size of emojis for better visibility */
    display: inline-block;
    margin-right: 5px;  /* Optional: Adds spacing between emojis */
}

/* Modal Styling */
.modal {
    display: none;  /* Hidden by default */
    position: fixed; 
    z-index: 1; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    background-color: rgba(0,0,0,0.4);  /* Black background with opacity */
    justify-content: center;
    align-items: center;
}

/* Modal Content */
.modal-content {
    background-color: #f9f9f9;
    margin: 15% auto; 
    padding: 20px;
    border: 1px solid #888;
    width: 90%; /* Adjust width for mobile screens */
    max-width: 400px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Close Button */
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

/* Mobile-friendly adjustment for widgets */
@media only screen and (max-width: 768px) {
    .food-info-widget,
    .poop-pee-widget {
        width: 100%; /* Take full width on mobile */
        margin-bottom: 20px; /* Add spacing between stacked widgets */
    }
}

/* Ensures the app looks good on mobile */
@media only screen and (max-width: 480px) {
    .dog-image {
        width: 100px;
        height: 100px;
        display: block;
    }

    .emoji {
        font-size: 1.2rem; /* Adjust emoji size on smaller screens */
    }
}
