@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Thai+Looped:wght@100;200;300;400;500;600;700&display=swap");

body {
    background-image: url(assets/background.jpg);
    background-size: cover;
}

/* Font styles */
p, li, h1, h2, h3, h4, button {
    font-family: "IBM Plex Sans Thai Looped" , sans-serif;
}

h1 {
    font-size: 128px;
}

h2 {
    font-size: 50px;
}

h3 {
    font-size: 40px;
}

h4 {
    font-size: 32px;
    margin-bottom: 10px;
}

.subHero {
    font-size: 32px;
}

p {
    font-size: 22px;
}

/* --- Initial Button Styles --- */
button {
    padding: 10px;
    border-radius: 20px;
    color: black;
    border:none;
}

article img {
    border-radius: 25px;
}

.secondaryButton {
    background-color: black;
    color: white;
}

/* --- Section Styles ---  */
/* TODO: Handle when page is thin */
section, header, footer {
    margin-left: 200px;
    margin-right: 200px;
    margin-bottom: 100px;
}

article {
    display: flex;
    align-items: center;
    margin-bottom: 100px;
}

article > * {
    margin-right: 20px;
    margin-left: 20px;
}

.projectMedia {
    width: 500px;
}

article.reversed {
    flex-direction: row-reverse;
    justify-content: left;
}

article button {
    margin-top: 10px;
    margin-right: 20px;
}


/* --- Skills styles --- */

/* Skills list spacing */
.skillsList {
    display: flex; 
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}


.skillsList > li {
    list-style: none;
    
    /* Background setup */
    background-color: rgba(96, 128, 224, .9);
    inline-size: min-content;
    height: min-content;
    min-width: 100px;
    border-radius: 20px;

    /* Text setup */
    text-align: center;
    color: white;

    /* Spacing setup */
    margin: 10px;
    padding: 5px;
}


#links {
    display: flex;
    list-style: none;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

#links li {
    margin: 10px;
    flex-wrap: w;
}

#links li > button {
    display: flex;

    justify-content: center;
    align-items: center;
    width: 100px;
    height: 50px;
}

#links li > button > * {
    margin: 5px;
}

/* --- Header Style --- */
header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

header > ul {
    display: flex;
    list-style: none;
    padding: 0px;
    margin: 0px;
}

header > ul > li {
    color: black;
    background: none;
    border: none;
    outline-style: none;
    padding: 10px;
    margin-right: 40px;
    text-decoration: none;
    font-size: 16px;
    align-self: center ;
    align-items: center;
    justify-content: center;
}

header > ul > li > p > a {
    text-decoration: none;
    color: black;
}

header button {
    margin: -10px;
}

header p {
    font-size: 16px;
}

/* --- Footer --- */

footer {
    background-color: rgba(96, 128, 224, .9);
    opacity: 0.8;
    border-radius: 20px;
    padding: 40px;
}

footer > button {
    justify-content: center;
    align-items: center;
    width: 100px;
    height: 50px;
}

footer > p, h2 {
    color: black
}

/* --- Animations --- */
html {
    scroll-behavior: smooth;
}

button {
    transition-duration: 0.4s;
}

button:hover {
    background-color: rgba(96, 128, 224, .9);
    color: white;
}

.secondaryButton:hover {
    color: rgba(96, 128, 224, .9);
    background-color: white;
}

a {
    transition-duration: 0.4s;
}

header a:hover {
    color: white;
    border-radius: 20px; 
    background-color: rgba(96, 128, 224, .9);
}


/* --- Resizing --- */
@media screen and (max-width: 1200px) {

    /*--- Resizing header --- */
    header {
        margin-top: 25px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .skillsList > li, button{
        inline-size: min-content;
        height: auto;
    }

    header > ul {
        margin-right: 5px;
        padding: 0px;
        display: flex;
        flex-direction: column;
    }

    header > ul > li {
        margin-bottom: 10px;
    }

    /*--- Resizing Sections -- */
    section, header {
        margin-left: 5px;
        margin-right: 5px;
    }

    article, article.reveresed {
        display: block;
        margin-left: 20px;
        margin-right: 20px;
    }

    article > *, article.reversed > * {
        margin-left: 0px;
        margin-right: 0px;
        justify-content: center;
        align-content: center;
        align-self: center;
    }
    li {
        align-self: center;
    }
    img {
        max-width: 100%;
        height: auto;
        align-self: center;
    }

    ul {
        justify-content: center;

    }

    p, li, button, a {
       font-size: 4vw;
    }

    h1, h2, h3, h4 {
        text-align: center;
    }

    h1 {
        font-size: 20vw;
    }
    .subHero, h4 {
        font-size: 7vw
    }
    
    h2 {
        font-size: 8.5vw;
    }
    h3 {
        font-size: 7vw;
    }
    
}