body {
    font-family: Arial, sans-serif;
    color: #333;
    line-height: 1.6;
    margin: 0; /* Resets browser default margin. */
    background: linear-gradient(to bottom, rgb(97, 107, 108), #384d52); 
    background-size: cover;
    text-shadow:
    -1px -1px 0 #000,
    1px -1px 0 #000,
    -1px 1px 0 #000,
    1px 1px 0 #000; 
}

body img {
    filter: drop-shadow(5px 5px 5px #222);
}

header {
    background: #333;
    color: #fff;
    padding: 1rem;
}

.nav-link {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #444;
    text-align: center;
    align-items: center;
    padding: 0.1rem;
    text-decoration: none;
    border: 2px solid #333;
    color: #fff;
    box-sizing: border-box;
}

.nav-link a {
    display: flex;
    text-decoration: none;
}

.nav-link-inner, .box-inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #444;
    text-align: center;
    align-items: center;
    padding: 0.1rem;
    text-decoration: none;
    color: #fff;
    max-height: max-content;
}

.box-inner {
    max-height: max-content;
}

.nav-links {
    font-size: 1.0rem;
    display: grid;
    align-items: center;
    justify-content: center;
    grid-template-columns: repeat(4, 1fr);
}

.nav-links a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.nav-links img {
    width: auto;
    height: 1.8rem;
    margin-right: 8px;
    vertical-align: middle;
}

.nav-bar {
    background-color: #444;
    overflow: hidden;
    width: inherit;
}

.nav-bar a {
    float: left;
    display: block;
    color: #f2f2f2;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.0rem;
}

.feature-box, .link-box, .single-box {
    border: 2px solid #555;
    padding: 1.0rem;
    background: #444;
    color: #f9f9f9;
    box-sizing: border-box;
    font-size: 1.2rem;
    position: relative;
    overflow: hidden;
}

.feature-more-info {
    background-color: inherit; /* or another color */
    color: inherit;
    padding: 10px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
}

.feature-more-info img {
    width: 100%;
    height: auto;
}

.feature-box:hover .feature-more-info {
    max-height: 10000px; /* adjust as needed */
}

.feature-box:hover, .link-box:hover, .single-box:hover, .nav-link-inner:hover {
    background: #555;
    color: #eee;
}

.link-box, .single-box {
    display: block;
}

.link-box img {
    width: 5rem;
    height: auto;
    margin-bottom: 10px;
}

.link-box a, .single-box a, .feature-box a {
    text-decoration: none;
}

.link-boxes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.single-boxes {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1rem;
}

main {
    background: #333;
    color: #f5f0f0;
    padding: 1rem;
    margin-inline: 3.5rem;
    border: 2px solid #777;
    box-sizing: border-box;
}

#downloads {
    display: block;
    background: #333;
    color: #fff;
    text-align: center;
    padding: 10px;
    text-decoration: none;
}

/* Responsive styling for features and links */
/* Responsive styling for mobile */
@media (max-width: 768px) {
    body, .feature-box, header, #downloads, .link-box, .single-box, .nav-box, .nav-links {
        font-size: 0.5rem; /* Smaller font size for mobile */
    }

    .nav-link-inner {
        max-height: 1.2rem;
    }

    .feature-box, .link-box, .single-box {
        padding: 0.1rem; /* Reduced padding for mobile */
    }

    .feature-grid, .link-boxes {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    main {
        padding: 1rem;
        margin-inline: 1rem;
    }
    
    header, #downloads {
        padding: 0.5rem;
    }

    .link-box img {
        width: 2rem; /* Smaller icons for mobile */
        height: auto;
        margin-bottom: .5rem;
    }

    .feature-box img {
        width: 2rem; /* Smaller icons for mobile */
        height: auto;
    }

    .nav-links img {
        height: 1.2rem; /* Smaller icons for mobile */
    }
}
