/*fonts*/
@font-face {
    font-family: pixellari;
    src: url("pixellari.ttf");
}

@font-face {
    font-family: daydream;
    src: url("daydream_3/daydream-demo.otf");
}

body, html {
    height: 100%;
    margin: 0;
    padding: 0;
}

.background {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    background:
        linear-gradient(90deg, rgba(179, 193, 220, 0.4) 50%, transparent 50%),
        linear-gradient(0deg, rgba(179, 193, 220, 0.4) 50%, transparent 50%);
    background-size: 80px 80px;
    background-position: 0 0, 40px 40px;
}

.central-container {
    margin-top: 48px;
    background: #f4f7fae8;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    padding: 30px 190px 90px 190px; 
    min-width: 320px;
    max-width: 2000px;
    text-align: center;
}

.title h1 {
    background: rgba(179, 193, 220, 0.6); /*background title*/
    padding: 12px 0; 
    border-radius: 12px;
    margin-bottom: 32px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    font-family: daydream;
    color: #1A1A4A;
}
.title p {
    color: #37406E; /* Text color */
    font-size: 1.2em;
} 

.Midle p {
    font-size: 1.2em;
    margin-top: 0;
    color: #37406E; /* Text color */
}

.about-section {
    display: flex;
    gap: 32px;
    justify-content: space-between;
}

.about-me {
    flex: 1 1 0;           /* Flexible width */
    max-width: 350px;    /* Limit max width */
    max-height: 260px;
    overflow-y: auto;      /* vertical scroll */
    background: rgba(179, 193, 220, 0.6);
    text-align: left;
    border-radius: 12px;
    padding: 16px;
    text-align: left;
    box-shadow: 0 2px 8px rgba(179, 193, 220, 0.6);
}
.about-me h2{
    font-family: pixellari;
    color: #1A1A4A; /* Title color */
}

.updates {
    flex: 0 0 220px;          
    max-height: 260px;         
    overflow-y: auto;          /* vertical scroll */
    background: rgba(179, 193, 220, 0.6);
    border-radius: 12px;
    padding: 16px;
    text-align: left;
    box-shadow: 0 2px 8px rgba(179, 193, 220, 0.6);
}

.updates h2 {
    margin-top: 0;
    font-size: 1.4em;
    border-bottom: 2px solid rgba(179, 193, 220, 0.6);
    padding-bottom: 8px;
    font-family: pixellari;
    color: #1A1A4A; /* Title color */
}

.updates li{
    color: #37406E; /* Text color */
}

/* Phone adaptation */


@media (max-width: 790px) {
    .central-container {
        padding: 24px 8px 32px 8px;
        max-width: 90vw;
        min-width: 0;
        box-sizing: border-box;
    }
    .about-section {
        flex-direction: column;
        gap: 16px;
    }
    .about-me h2 {
        margin-top: 0;
        padding-top: 0;
    }
    .about-me,
    .updates {
        width: 80%;
        min-height: 200px;
        max-width: none;
        max-height: none;
        padding: 32px;
        font-size: 1em;
        word-break: break-word;
        overflow-wrap: anywhere;
    }
    .title h1 {
        font-size: 2em;
        padding: 8px 0;
    }
}

/* todo chenge the title font size for mobile */
/* todo make the background more visible on mobile*/
/* todo make the scroll bar more visible*/
/* todo add a nbutton for the next page*/
