* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    /* Ensures padding and borders are included in width calculations */
}

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

body {
    font-family: 'Acme', serif;
    font-size: 18px;
    background-color: #f6f5f1;
    color: rgb(70, 70, 70);
}

i {
    margin-right: 5px;
}

a {
    color: rgb(127, 120, 189);
}

i.fa-no-margin {
    margin: 0;

}

i.fa-big {
    margin-right: 5px;
    margin-bottom: 10px;
    font-size: 40px;
    display: block;
}

h1 {
    margin-bottom: 15px;
}

h2 {
    margin: 10px 0 15px;
}

h3 {
    margin: 5px 0 10px;
}

.container {
    display: flex;
    flex-direction: column;
    width: 450px;
    max-width: 90%;
    margin: 20px auto;
    padding: 20px 10px;
    gap: 10px;
    text-align: center;
    overflow: hidden;
    /* Prevents content from overflowing the container */
}

p {
    margin-bottom: 10px;
}


form {
    width: 100%;
    display: flex;
    align-items: center;
    /* Align items vertically in the center */
    box-sizing: border-box;
    /* Includes padding and border in the element's total width and height */
    gap: 10px;
}

input {
    flex: 1;
    /* Input will take up the remaining space */
    padding: 15px;
    border: none;
    border-radius: 7px;
    background-color: rgb(255, 255, 255);
    font-size: 18px;
    box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.2);
    min-width: 0;
    /* Allow input to shrink if needed */
}

button {
    padding: 15px;
    border: none;
    border-radius: 7px;
    background-color: #6a61b2;
    color: white;
    font-size: 18px;
    font-family: Acme;
    box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    white-space: nowrap;
    /* Prevent text from wrapping */
    flex-shrink: 0;
    /* Prevent button from shrinking */
}


ul {
    list-style-type: none;
}

ul li {
    background-color: rgba(250, 250, 250);
    margin-bottom: 10px;
    padding: 10px 15px;
    /* Add more padding, especially on the right */
    border-radius: 10px;
    box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.2);
    color: rgb(70, 70, 70);
    box-sizing: border-box;
    /* Ensures padding and border are included in the width */
    width: 100%;
    /* Ensures list items don’t exceed container width */
    max-width: 100%;
    /* Makes sure they stay within bounds on smaller screens */
}

/* Container for the tile buttons */
.tile-button-container {
    display: flex;
    /* Use flexbox to arrange buttons in a row */
    gap: 0px;
    /* Add space between the buttons */
    justify-content: center;
    /* Center the buttons horizontally within the container */
    align-items: center;
    /* Align buttons vertically in the center */
    margin: 10px 0;
    /* Add some margin to space it from other elements */
}

/* Style for individual tile buttons */
.tile-button {
    display: flex;
    /* Use flexbox inside the button */
    align-items: center;
    /* Center content vertically */
    justify-content: center;
    /* Center content horizontally */
    padding: 10px 12px;
    /* Adjust padding for better appearance */
    border: none;
    border-radius: 5px;
    background-color: #6a61b2;
    /* Example button background color */
    color: white;
    font-size: 12px;
    /* Adjust font size */
    cursor: pointer;
    /* Add space between icon and text */
}

/* Correct alignment for Font Awesome icons inside buttons */
button i {
    display: inline-flex;
    /* Ensures icon behaves as a flex item */
    align-items: center;
    /* Vertically center the icon */
    justify-content: center;
    /* Horizontally center the icon */
    margin-right: 0;
    /* Remove any right margin to avoid misalignment */
}



#map {
    margin: 10px 0;
    /* Adjust margins to ensure there is no overflow */
    max-width: 100%;
    /* Constrain map within the parent */
    height: auto;
    box-sizing: border-box;
    /* Include padding and borders */
}

/* Container for the statistics section */
section.statistics {
    background-color: rgba(250, 250, 250);
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 10px;
    box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.2);
    color: rgb(70, 70, 70);
    box-sizing: border-box;
    /* Ensures padding and border are included in the width */
    width: 100%;
    /* Ensures list items don’t exceed container width */
    max-width: 100%;
    /* Makes sure they stay within bounds on smaller screens */
}

#statistics-container div {
    margin-top: 5px;
    background-color: #f6f5f1;
}


span.statistics {
    padding: 10px;
}

/* Individual list styles */
#totals-list,
#flags-list {
    display: flex;
    /* Use flexbox to align content inside these divs */
    align-items: center;
    /* Vertically center content */
    justify-content: center;
    /* Horizontally center content */
    flex: 1;
    /* Allows the divs to grow and share space equally */
    padding: 10px;
    /* Optional padding for better appearance */
    border: 1px solid #ddd;
    /* Optional: Add a border for visibility */
    border-radius: 5px;
    /* Optional: Add rounded corners */
    height: 45px;
}



#status,
#message {
    margin: 0;
}



#spinner {
    height: 50px;
}

#spinner-small {
    height: 16px;
}

.logo {
    max-width: 180px;
    margin: 10px auto 15px;
}

.soft-text {
    color: rgb(100, 100, 100);
    font-weight: lighter;
}


li div {
    margin: 10px;
}


.alert-error {
    background-color: rgba(251, 160, 160, 0.488);
    color: rgb(175, 48, 48);
    padding: 15px;
    border-radius: 7px;
}

.alert-success {
    background-color: rgba(163, 208, 170, 0.488);
    color: rgb(33, 87, 62);
    padding: 15px;
    border-radius: 7px;
}

.alert-info {
    background-color: rgba(127, 120, 189, 0.488);
    color: rgb(49, 48, 80);
    padding: 15px;
    border-radius: 7px;
}

.alert-warning {
    background-color: rgba(201, 183, 82, 0.488);
    color: rgb(100, 84, 46);
    padding: 15px;
    border-radius: 7px;
}

.description-box {
    background-color: #f6f5f1;
    padding: 10px;
    border-radius: 5px;
    border-style: dotted;
    border-color: grey;
    border-width: thin;
    font-size: 14px;
}


.footer {
    margin-top: 20px;
}



/* Adjust container for screens smaller than 768px */
@media (max-width: 768px) {
    .container {
        width: 100%;
        /* Make the container full width */
        max-width: 100%;
        /* Allow it to use the full screen width */
    }
}

/* Further adjust for screens smaller than 480px */
@media (max-width: 480px) {
    .container {
        width: 100%;
        /* Full width for small devices */
        max-width: 100%;
        /* Allow it to expand fully */
    }
}



/* Simple Modal Container Without Overlay */
.simple-modal-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 250px;
    width: 100%;
    z-index: 1000;
}

.simple-modal-input {
    margin: 10px 0;
    padding: 5px;
    width: 80%;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.simple-modal-button {
    margin: 5px;
    padding: 5px 10px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    background-color: #6a61b2;
    color: white;
}