﻿/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
    text-decoration: none;
    list-style: none;
    box-sizing: border-box;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
    display: block;
}

body {
    line-height: 1;
}

ol, ul {
    list-style: none;
}

blockquote, q {
    quotes: none;
}

    blockquote:before, blockquote:after,
    q:before, q:after {
        content: '';
        content: none;
    }

table {
    border-collapse: collapse;
    border-spacing: 0;
}
/*---------- End Reset ---[--------------*/

}


body {
    font-family: 'Roboto', sans-serif;
    background-color: #bbb;
}

a {
    color: #000;
}

/* header */

header {
    top: 0;
    background-color: #59d5d8;
    box-shadow: 1px 1px 4px 0 rgba(0,0,0,.1);
    position: fixed;
    width: 100%;
    z-index: 3;
}

nav ul {
    overflow: hidden;
    background-color: #59d5d8;
}


header li a {
    display: block;
    font-size: 1.25em;
    padding: 10px;
    border-right: 1px solid #f4f4f4;
}

header ul ul {
    display: none;
}

header ul ul {
    display: none;
}




header li a:hover,
header .menu-btn:hover {
    background-color: #f4f4f4;
}

header .logo {
    display: block;
    float: left;
    font-size: 0.70em;
    padding: 20px;
    text-transform: uppercase;
}

/* menu */

header ul {
    clear: both;
    max-height: 0;
    transition: max-height .2s ease-out;
}



header li:nth-of-type(7) {
    background-color: #acacff;
    border: 1px solid #f4f4f4;
    border-radius: 1em;
    font-weight: bold;
}



/* menu icon*/

header .menu-icon {
    cursor: pointer;
    float: right;
    padding: 28px 20px;
    position: relative;
    user-select: none;
}

    header .menu-icon .nav-icon {
        background: #333;
        display: block;
        height: 2px;
        position: relative;
        transition: background .2s ease-out;
        width: 18px;
    }

        header .menu-icon .nav-icon:before,
        header .menu-icon .nav-icon:after {
            background: #333;
            content: '';
            display: block;
            height: 100%;
            position: absolute;
            transition: all .2s ease-out;
            width: 100%;
        }

        header .menu-icon .nav-icon:before {
            top: 5px;
        }

        header .menu-icon .nav-icon:after {
            top: -5px;
        }

/* menu btn */

header .menu-btn {
    display: none;
}

    header .menu-btn:checked ~ nav ul {
        max-height: 360px;
    }

    header .menu-btn:checked ~ .menu-icon .nav-icon {
        background: transparent;
    }

        header .menu-btn:checked ~ .menu-icon .nav-icon:before {
            transform: rotate(-45deg);
            top: 0;
        }

        header .menu-btn:checked ~ .menu-icon .nav-icon:after {
            transform: rotate(45deg);
            top: 0;
        }

main {
    margin-top: 55px;
    padding: 50px;
    background-color: #f8f8ff;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 200px 200px 200px 200px;
    row-gap: 20px;
}
section {
    border: 10px outset red;
    text-align: center;
}
main h2 {
    padding: 10px;
    background-color: #000;
    color: #fff;
    font-size:14px;
}

    ol li a {
        padding: 10px;
        display: block;
        color: #0026ff;
    }

        ol li a:hover {
            color: #f4f4f4;
            background-color: #0026ff;
        }

footer {
    height: 3.75em;
    background-color: #59d5d8;
}

@media (min-width:400px){

 
    main {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 200px 200px;
        column-gap: 20px;
    }

}


@media (min-width:850px){


    header .logo {
        font-size: 1.25em;
        padding: 20px;
    }

    header li {
        float: left;
    }

        header li a {
            font-size: 1em;
        }

    header ul {
        clear: none;
        padding: 12px;
        float: right;
        max-height: none;
    }

    header .menu-icon {
        display: none;
    }

    main {
        grid-template-columns: 1fr 1fr 1fr 1fr;
        grid-template-rows: 200px;
        column-gap: 20px;
    }
      
}

    
