﻿/* General setup*/

* {
    box-sizing: border-box;
}

html, body{
    margin: 0;
    padding: 0;
}

html {
    font-size: 10px;
    background-color: #F0EAE0;
}

body {
    width: 70%;
    margin: 0 auto;
}

header {
    text-align: center;
}

h1 {
    font-family: 'Times New Roman', Times, serif;
    font-size: 4rem;
    text-align: center;
}

h2 {
    font-family: 'Times New Roman', Times, serif;
    font-size: 3rem;
    text-align: center;
}

h3 {
    font-family: 'Times New Roman', Times, serif;
    font-size: 2.2rem;
}

p, li {
    font-family: 'Times New Roman', Times, serif;
    font-size: 2.0rem;
    line-height: 1.5;
}

figcaption {
    font-family: 'Times New Roman', Times, serif;
    font-size: 1.6rem;
    font-style: italic;
}

a {
    outline: none;
    text-decoration: none;
    padding: 2px;    
}

a:link {
    color: #474747;
}

a:visited{
    text-decoration: none;
}

a:focus{
    border-bottom: 1px solid;
}

a:hover{
    border-bottom: 1px solid;
}

a:active{
    
}

a.open{
    border-radius: 5px;
    background-color: rgba(132 132 132 / 0.34);
}

/* All page setting */

header h1{
    /* header offset for logo */
    margin-right: 30px;
}

nav, article, aside, footer {
    padding: 1%;
}

nav ul {
    list-style: none;    
}

.imageSet ul {
    list-style: none;
}

.imageSet img {
    max-width: 100%; /* to be within box */
    height: auto; /* fill space */
    object-fit: contain; /* keep aspect */
}

div.fitImage{
    width: inherit;
}

.fitImage img {
    max-width: 100%;
}

.border {
    border: 1pX solid rgba(132 132 132 / 0.34);
    border-radius: 10pX;
}

.board {
    max-width: 800px;
    width: 100%;
    min-width: 220px;
    min-height: 300px;
    margin: 0 auto;
    padding: 3em;
    border: 3pX solid black;
    border-radius: 30pX;
}

.feature{
    color:orangered;
}

/* RWD */

@media screen and (min-width: 40em){

    nav ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-around;
    }

    nav.primary li {
        display: inline;
        text-align: center;
        flex: 1;
    }

    div.imageSet {
        display: grid;
        grid-template-columns: repeat(2, minmax(300px, 1fr));
        align-items: flex-start;
        justify-content: center;
        gap: 10px 20px;
    }

        
}

@media screen and (min-width: 60em){

    div.page-box {
        display: flex;
    }

    .page-box nav {
        flex: 1;
    }

    .page-box article {
        flex: 5;
    }

    ul.page-nav {
        flex-direction: column;
    }

}