body {
    margin: 0;
    padding: 15px;
    font: 10px/1.5em Arial;
    overflow-x: hidden;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    font-size: 13px;
}

#banner-container {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    line-height: 0;
}

#banner {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
}

.banner-text {
    position: absolute;
    padding: 8px;
    font-size: 16px;
    border-radius: 5px;
}

.banner-text.topleft { top: 10px; left: 10px; font-size: 24px; line-height: 24px; }
.banner-text.topright { top: 10px; right: 10px; }
.banner-text.bottomleft { bottom: 10px; left: 10px; }
.banner-text.bottomright { bottom: 10px; right: 10px; }

header {
    text-align: center;
}

nav#menucell {
    text-align: center;
    padding: 15px;
    font-size: 16px;
    margin-bottom: 15px;
    margin-top: 15px;
}

nav#menucell a {
    padding: 20px;
    text-decoration: none;
}

main#maincell {
    text-align: left;
    padding: 15px;
}

.maintext {
    font: 16px/1.5em Arial;
    padding: 0 25px;
    text-align: justify;
}

.tabletext {
    font: 16px Arial;
    padding: 0 5px;
    text-align: justify;
}

@media (max-width: 900px) {
    .tabletext {
        font-size: clamp(9px, 1.6vw, 16px);
    }

    .tabletext td {
        white-space: nowrap;
    }
}

.maintext img {
    padding: 0;
}

.title {
    font: bold 22px Arial;
    padding-left: 10px;
}

.subtitle {
    font: bold 16px Arial;
    padding-left: 10px;
}

#listitem {
    font: 16px/1.5em Arial;
    padding: 0px 25px 15px 5px;
    text-align: justify;
}

@media (max-width: 600px) {
    nav#menucell {
        white-space: nowrap;
        font-size: 16px;
    }

    nav#menucell a {
        display: inline-block;
        padding: 10px 8px;
    }

    #theme-cycle-link {
        margin-left: 0 !important;
    }
}

/* Code page project card component */
.project-card {
    position: relative;
    display: flex;
    flex-direction: column;
    text-align: center;
    padding: 8px;
    box-sizing: border-box;
    border-radius: 8px;
    background: transparent;
    border: 0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.project-card:hover {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.project-icon-link {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
    margin-top: auto;
}

.project-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 0;
    opacity: 1;
    transition: none;
    display: block;
}

.project-name,
.project-description,
.project-links {
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
    text-indent: 0;
    text-align: left;
}

.project-name {
    margin: 0 0 6px;
    padding: 0;
}

.project-description {
    margin: 6px 0 10px;
    padding: 0;
}

.project-links {
    margin: 0 0 8px;
    padding: 0;
}

.project-links a {
    display: inline;
    margin: 0 10px 0 0;
    padding: 0;
    border: 0;
    background: none;
    text-decoration: none;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
}

.project-links a:hover {
    text-decoration: underline;
}
