/* Reset */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #111;
    font-family: "Almarai", "Asap", sans-serif;
}
main {
    padding-top: 12rem;
    padding-left: 1rem;
    color: #f7f7f7;
}

p {
    margin-bottom: 1rem;
    font-size: inherit;
    line-height: 1.6;
    font-size: 18px;
    text-rendering: optimizeLegibility;
}

em,i {
    font-style: italic;
    line-height: inherit;
}

strong,b {
    font-weight: bold;
    line-height: inherit;
}

small {
    font-size: 80%;
    line-height: inherit;
}

h1,.h1,h2,.h2,h3,.h3,h4,.h4,h5,.h5,h6,.h6 {
    color: inherit;
    text-rendering: optimizeLegibility;
    margin-bottom: 0.5rem;
}

h1, h2 {
    margin-bottom: 1rem;
}

footer {
    margin-top: 50px;
    padding-top: 30px;
    padding-bottom: 20px;
    border-top: 2px solid #282828;
    text-align: center;
    color: #f7f7f7;
}
footer p {
    font-size: 16px;
}


a {
    text-decoration: none;
}

ul{
    list-style: none;
}

.header-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
}

/* Header */
.header {
    background: #111;
}

header .navi-logo {
  position: relative;
  width: 20rem;
  margin-top: 1.5rem;
}


/* Nav menu */
.nav {
    width: 100%;
    height: 100%;
    position: fixed;
    background-color: #151515;
    overflow: hidden;
}

.menu {
    margin-top: 30px;
}

.menu a{
    display: block;
    color: #f7f7f7;
    font-weight: bold;
    font-size: 1.3rem;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    padding-left: 0.6rem;
    text-align: center;
}

.menu a:hover{
    background-color: #111;
}

.nav{
    max-height: 0;
    transition: max-height .5s ease-out;
}

/* Menu Icon */

.hamb{
    cursor: pointer;
    float: right;
    padding: 40px 20px;
    margin-top: 1.5rem;
}


.hamb-line {
    background: #f7f7f7;
    display: block;
    height: 2px;
    position: relative;
    width: 24px;
    
}

.hamb-line::before,
.hamb-line::after{
    background: #f7f7f7;
    content: '';
    display: block;
    height: 100%;
    position: absolute;
    transition: all .2s ease-out;
    width: 100%;
}

.hamb-line::before{
    top: 5px;
}

.hamb-line::after{
    top: -5px;
}


.side-menu {
    display: none;
}

/* Toggle menu icon */

.side-menu:checked ~ nav{
    max-height: 100%;
}

.side-menu:checked ~ .hamb .hamb-line {
    background: transparent;
}

.side-menu:checked ~ .hamb .hamb-line::before {
    transform: rotate(-45deg);
    top:0;

}

.side-menu:checked ~ .hamb .hamb-line::after {
    transform: rotate(45deg);
    top:0;
}

.frontpage {
    text-align: center;
}

.link-box {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}
.link-box a {
    font-size: 26px;
}

.frontpage img {
    max-width: 100%;
}

/* Responsiveness */
@media (max-width: 385px) {
    header .navi-logo {
        width: 13rem;
        margin-top: 1.7rem;
    }
    .hamb{
        padding: 30px 10px;
    }
}


@media (min-width: 890px) {
    .header {
        width: 70%;
        margin: auto;    
        padding-bottom: 10px;
    }
    article {
        max-width: 70%;
        margin: auto;
    }
}

@media (min-width: 595px) {
    .nav{
        max-height: none;
        top: 0;
        position: relative;
        float: right;
        width: fit-content;
        background-color: #111;
    }

    .menu {
        margin-top: 0;
    }
    .menu li{
        float: left;
    }

    .menu a{
        padding: 3px 5px;
        margin-top: 3.3rem;
        margin-right: 1.5rem;
    }

    
    .menu a:hover{
        background-color: #f7f7f7;
        color: #000000;
        border-radius: 1px;
    }
    
    .hamb{
        display: none;
    }
    h1,.h1 {
        font-size: 2.625rem;
        line-height: 1.4;
        margin-top: 0;
    }
    
    h2,.h2 {
        font-size: 2.125rem;
        line-height: 1.4;
        margin-top: 0;
    }
    
    h3,.h3 {
        font-size: 1.75rem;
        line-height: 1.4;
        margin-top: 0;
        margin-bottom: 0.5rem;
    }
    .column-layout {
        display: flex;
        justify-content: space-evenly;
    }
    .align-center {
        text-align: center;
    }
}
