#notice {
    border: 2px dashed;
    border-radius: 10px;
    border-color: var(red-dark);
    align-self: center;
    color: var(--bold);
    text-align:center;
}

/* variables */

:root {
    --base: #faf4ed;
    --surface: #fffaf3;
    --overlay: #f2e9e1;
    --text: #797593;
    --bold: #575279;

    --red-light: #EB6F92;
    --orange-light: #EA9A97;
    --yellow-light: #EAC086;
    --green-light: #9DD8C4;
    --blue-light: #9BBBE8;
    --purple-light: #D9A7E7;

    --red-dark: #BA5E78;
    --orange-dark: #C86F6A;
    --yellow-dark: #C79857;
    --green-dark: #5B9F8E;
    --blue-dark: #577fc3ff;
    --purple-dark: #A470B2;
}

html.dark-mode {
    --base: #232136;
    --surface: #2a273f;
    --overlay: #393552;
    --text: #a6a2c3;
    --bold: #e0def4;

    --red-dark: #EB6F92;
    --orange-dark: #EA9A97;
    --yellow-dark: #EAC086;
    --green-dark: #9DD8C4;
    --blue-dark: #9BBBE8;
    --purple-dark: #D9A7E7;

    --red-light: #BA5E78;
    --orange-light: #C86F6A;
    --yellow-light: #C79857;
    --green-light: #5B9F8E;
    --blue-light: #577fc3ff;
    --purple-light: #A470B2;
}


/* page setup */

html, body {
  height: 100%;
  margin: 0;
}

#wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.page-content {
  flex: 1;
}


body {
    background-color: var(--base);
    color: var(--text);
    font-family: "tajawal", sans-serif;
    margin: 0px;
}

/* text */
html {
  font-size: 15px;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--bold);
}

h1 {
    font: 500 4rem 'Newsreader', serif;
}

h2 {
    font: 500 3rem 'Newsreader', serif;
}

h3 {
    font: 500 2.25rem 'Tajawal', sans-serif;
}

h4 {
    font: 500 1.75rem 'Tajawal', sans-serif;
}

h5 {
    font: 500 1.5rem 'Tajawal', sans-serif;
}

h6 {
    font: 500 1.25rem 'Tajawal', sans-serif;
}

p {
    color: var(--text);
    font-size: 1.125rem;
}

/*responsive layout*/
.flex-container {
    display: flex;
    flex-direction: row;
}

.body-text {
    width: 50%;
    padding: 1%;
    text-align: left;
    
}

.headshot {
    width: 50%;
    padding: 1%;
    text-align: right;
    
}


/* logo */

#logo {
    float: left;
    color: var(--bold);
    font: 500 2rem "newsreader", serif;
    text-decoration: none;
    margin: 0.5% 1% 1% 5%;
    position: fixed;
    top: 0;
    z-index: 1;
}

@media screen and (max-width: 768px) {

    #logo {
        float: none;
        position: static;
        text-decoration: none;
        margin: auto;
        padding-top: 2%;
        background-color: var(--purple-light);
        width: 100%;
        text-align: center;
    }
    
}


/*navigation bar*/

.topnav {
    background-color: var(--purple-light);
    padding-top: 1.5%;
    padding-bottom: 1.5%;
    padding-right: 2%;
    text-align: right;
    justify-content: space-around;
    position: sticky;
    top: 0;
}

.topnav a {
    color: var(--bold);
    position: relative;
    text-decoration: none;
    font: 1.1rem "Tajawal", sans-serif;
    font-weight: 500;
    padding: 1% 1% 1% 1%;
    letter-spacing: .5px;
}

@media only screen and (max-width: 768px) {
    .topnav {
        padding-top: 2%;
        padding-bottom: 2%;
        text-align: center;
    }
}

/*navigation bar animations*/
.topnav a:before,
.topnav a:after {
    content: "";
    position: absolute;
    height: 2px;
    width: 0;
    background-color: var(--bold);
    transition: 0.5s;
}

.topnav a:after {
    left: 0;
    bottom: -2px;
}

.topnav a:before {
    right: 0;
    top: -2px;
}

.topnav a:hover:after,
.topnav a:hover:before {
    width: 100%;
}

.topnav a:active {
    color: var(--blue-dark);
}

@media only screen and (max-width: 800px) {

    .topnav a:before {
        top: 2px;
    }

    .topnav a:after {
        bottom: 2px;
    }
}


/* intro text and headshot */

.body-text, .headshot {
    margin-top: 2.5%;
}

#headshot {
    max-width: 80%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 15px 10px var(--blue-light);
    margin-top: 15%;
    margin-right: 5%;
    margin-bottom: 15%;
}

.title {
    margin: 15% 0% 0% 0%;
}

.subtitle {
    margin: 2% 0% 3% 0%;
}

.intro {
    margin-right: 25%;
}

@media screen and (max-width:1100px) {

    .flex-container {
        flex-direction: column;
        width: 100%;
    }

    .body-text, 
    .headshot {
        width: 80%;
        align-self: center;
        text-align: center;
        padding: 0%;
        margin-top: 0%;
    }

    #headshot {
        margin: 10% 0% 5% 0%;
    }

    .title {
        margin-top: 0%;
    }

    .intro {
        text-align: center;
        margin: 1% 7% 1% 7%;
    }
    
}

@media screen and (max-width:992px) {

    .intro {
        margin: 1% 0% 1% 0%;
    }

}

@media only screen and (max-width: 768px) {

    .intro {
        margin: 1% 7% 10% 7%;
    }

    #headshot {
        aspect-ratio: 1 / 1;
        object-fit: cover;
        max-width: 60%;
    }

}


/* skill section */

.skills {
    background-color: var(--base);
    padding: 5%;
    
}

.skill-list {
    font: 400 1.125rem 'Tajawal', sans-serif;
}


/* dark mode button */

.theme-toggle {
    background: none;
    color: var(--purple-dark);
    border-style: dashed;
    border-width: 2px;
    border-color: var(--purple-dark);
    border-radius: 10px;
    font: 1.125rem "Tajawal", sans-serif;
    cursor: pointer;
    transition: .03s ease;
    padding:10px;
    margin: 5%;
}

.theme-toggle:hover {
  color: var(--blue-dark);
  border-color: var(--blue-dark);
}




/* footer */

.site-footer {
    background-color: var(--overlay);
    color: var(--text);
    text-align: center;
    padding: 2rem;
}

.footer-links {
  margin-top: 0.5em;
}

.footer-links a {
  margin: 0 0.5em;
  text-decoration: none;
  color: inherit;
}



/* writing */

.articles {
    padding: 5% 5% 5% 5%;
}

.headline, .story-link {
    font: 500 1.5rem 'Newsreader', serif;
    color: var(--bold);
    line-height: 1.25;
    text-decoration: underline;
}

.headline {
    transition: 0.3s ease;
}

.headline:hover {
    color: var(--blue-dark);
}

.info {
    color: var(--text);
    font-weight: 400;
    font-size: 1.2rem;
    text-align: left;
    margin-top: -0.5rem;
}

#news-title {
    margin-top: 0;
}

@media screen and (max-width: 768px) {

    .page-title {
        font-size: 2.75rem;
        margin-top: 2.5%;
    }

    .headline {
        font-size: 1.4rem;
        font-weight: 400;
    }

    .info {
        font-size: 1.15rem;
    }

    #news-title {
        margin-top: 2.5%;
    }

}

@media screen and (max-width: 576px) {

    .page-title {
        font-size: 2.25rem;
    }

    .headline {
        font-size: 1.25rem;
        font-weight: 400;
    }

    .info {
        font-size: 1.125rem;
    }

    #other-title {
        margin-top: 12%;
    }
}


/* about me */

.column {
    float: left;
}

.column.side {
    width: 25%;
}

.column.middle {
    width: 50%;
}

.row:after {
    content: "";
    display: table;
    clear: both;
}

.about-title {
    font: 500 4rem "newsreader", serif;
    text-align: left;
    color: var(--bold);
    margin-top: 10%;
    margin-left: 5%;
    margin-bottom: 2%;
}

.about-txt {
    text-align: left;
    margin-right: 15%;
    margin-left: 5%;
    line-height: 1.5;
}

.bg-split {
  display: flex;
  width: 100%;
  min-height: 100vh; /* optional: ensures it fills screen if content is short */
}


.column-right {
  flex: 1;
  background-color: var(--base);
}

.column-left {
  flex: 1;
  background: url('IMG_20241003_181255.jpg') center / cover no-repeat;
}

.about-img {
  max-width: 100%;
  margin: 0;
  aspect-ratio: 2 / 3;
  
}

