html {
    box-sizing: border-box;
    overflow-x: hidden;
    /* Keep overflow-x: hidden on html */
    height: 100%;
    /* Use height: 100% for html */
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    /* Remove redundant overflow-x: hidden from body */
    background: #c7b39b url(../backgr.webp) fixed;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;
    font-family: Roboto, sans-serif;
    color: #f9f9f9;
    text-shadow: 2px 2px grey;
    /* Use grey instead of #797979 for text-shadow to match h1 */
    height: 100%;
    /* Use height: 100% for body */
}

h1 {
    text-align: center;
    margin-top: 25px;
    color: #ffffff;
    text-shadow: 2px 2px grey;
    /* Match text-shadow color to body */
    font-size: xxx-large;
}

h2 {
    text-align: center;
    margin-top: 15px;
    color: #f9f9f9;
    text-shadow: 2px 2px #797979;
}

.appscontainer .appcard .centered span {
    display: block;
    font-size: 1.17em;
    margin-block-start: 1em;
    margin-block-end: 1em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    font-weight: bold;

    text-align: center;
    margin-top: 15px;
    color: #f3f3f3;
    text-shadow: 2px 2px #545454;
}

.appscontainer,
.storescontainer {
    width: 100%;
    padding: 10px;
    display: flex;
    /* Use Flexbox for containers */
    flex-wrap: wrap;
    /* Allow items to wrap to the next line */
    justify-content: center;
    /* Center items horizontally */
    gap: 10px;
    /* Add some gap between items */
}

.appscontainer a,
.storescontainer a {
    display: block;
    /* Change to block for better flexbox control */
    text-decoration: none;
    /* Remove underline from links */
}

.appcard {
    position: relative;
    max-width: 270px;
    height: auto;
    border-radius: 10px;
    text-align: center;
    padding: 8px 6px 0px 6px;
    background-color: rgba(0, 0, 0, 0.45);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.65);
}

.appstorecard {
    /* width: 250px; Remove fixed width */
    max-width: 250px;
    /* Use max-width for responsiveness */
    height: auto;
    /* Let height adjust to content */
    border-radius: 10px;
    text-align: center;
    padding: 8px 6px 0px 6px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    /* Optional: Add subtle shadow */
    background-color: rgba(0, 0, 0, 0.45);
    /* Keep background color */
}

.appcard:hover,
.appstorecard:hover {
    background-color: rgba(0, 0, 0, 0.65);
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.75);
}

.centered {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    font-size: 1.2em;
    text-align: center;
    margin-bottom: 0px;
}

.content-container {
    padding: 1px 4px 1px 4px;
    margin-left: 10px;
    margin-right: 10px;
    border-radius: 10px;
    background-color: rgba(0, 0, 0, 0.45);
}

.content-container a {
    color: #f9f9f9;
    text-shadow: 2px 2px #797979;
    text-decoration: none;
}

.zoom-animation {
    width: 50%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    animation: zoomInOut 1s infinite linear;
    /* Adjust duration for speed */
}

.zoom-animation a {
    color: #ffffff;
    font-style: italic;
    text-decoration: none;
    padding: 5px;
    margin-right: 30px;
    /* Space after each link */
    border-radius: 5px;
    background-color: rgba(0, 0, 0, 0.45);
}

@keyframes zoomInOut {
    0% {
        transform: scale(1);
        /* Initial scale (no zoom) */
    }

    50% {
        transform: scale(1.1);
        /* Zoomed-in scale (adjust as needed) */
    }

    100% {
        transform: scale(1);
        /* Zoomed-in scale (adjust as needed) */
    }
}