/* 

Theme Name:     Ai-Kon 2025 Theme
Author:         Henry Le
Description:    A 2025 revised version of the Ai-Kon theme
Version:        1.0
License:        GNU General Public License v2 or later
License URI:    https://www.gnu.org/licenses/gpl-2.0.html
*/

*{ 
    font-family: var(--font-family-base);
}

html, body {
    height: 100%;
    margin: 0;
  }
  
  body {
    min-height: 100vh; /* full viewport height */
  }
  
  header,
  footer {
    flex-shrink: 0; /* prevent shrinking */
  }

html{
    top: 0;
    left: 0;
    height: 100vh;
}

body{
    background: linear-gradient(to right, #f9dede, #d7e3f9);
    padding: 0;
    border-radius: var(--rounded-border-bottom);
    width: 80%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

button, a, input, label {
    touch-action: manipulation;
}

/* Header */

header .mainLogo a {
    text-decoration: none;
}

nav.mainNav ul{
    display: flex;
    flex-direction: row;
}

nav.mainNav li{
    list-style-type: none;
}

/* Footer */
.site-footer {
    background: #fff;
    padding: 1rem;
    border-top: 1px solid #eee;
    border-radius: var(--rounded-border-top);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    text-align: center;
    flex-wrap: wrap;
}

.footer-container *{
    font-size: var(--footer-banner-font-size);
    line-height: var(--footer-banner-line-height);
}

.footer-container p{
    margin-bottom: 0;
}

.footer-left {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    flex: 1;
    justify-content: start;
    align-items: start;
}

.footer-left p{
    margin: 0;
}

.footer-logo {
    height: 75px;
    width: 150px;
}

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
}

.footer-left li {
    list-style: none;
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 0.5rem;
}

.footer-menu a {
    color: #333;
    text-decoration: none;
}

.footer-menu a:hover {
    text-decoration: underline;
}

.page-content{
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #3b2e58;
    background-color: white;
    padding: 1rem;
    border-radius: 1rem;
}

.page-content ul {
    margin: 0;
    padding: 0;
}

.page-content li {
    list-style-type: none;
}

.page-content-index-page{
    width: -webkit-fill-available;
}

.page-content-index-page ul {
    max-width: -webkit-fill-available;
    width: 100%;
    display: flex;
    gap: 1rem;
}

.page-layout {
    flex: 1;
    height: auto;
    display: flex;
    gap: 2rem;
    padding: 2% 0;
    /* height: -webkit-fill-available;
    height: calc(100vh - 110px - 200px - 5vh); */
}

.page-main {
    overflow-y: auto;
    flex: 3;
    background: white;
    border-radius: 1rem;
    padding: 2%;
    box-sizing: border-box;
}

.page-aside {
    /* flex: 1; */
    box-sizing: border-box;
    overflow-y: hidden;
}



.page-button {
    display: inline-block;
    background: #f5d5d8;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    color: #4b3663;
    text-align: center;
    width: 100%; /* buttons take full width of list item */
    max-width: -webkit-fill-available;
    z-index: 1;
}

/* Mobile responsiveness */
@media (max-width: 1000px) {
    body{
        width: 95%;
    }

    .page-layout {
        flex-direction: column;
    }

    .page-aside {
        width: 100%;
    }

    .page-main {
        width: 100%;
        padding: 5%;
    }

    .page-main img {
        max-width: 100%;
        height: auto;
        display: block;
        margin-top: 1rem;
    }


    .page-content{
        width: -webkit-fill-available !important;
    }

    .page-content-index-page{
        width: -webkit-fill-available !important;
    }

    .page-content-index-page ul{
        width: -webkit-fill-available;
        justify-content: center;
    }

    .page-content-index-page ul li{
        width: -webkit-fill-available;
    }

    .page-layout{
        gap: 1rem !important;
    }
}
