@import url('https://fonts.googleapis.com/css2?family=Anton&display=swap');

* {
    padding: 0; margin: 0; border: 0; box-sizing: border-box;
}

body {
    max-width: 100vw; min-height: 100vh;
    background-color: #eee;
}

header {
    box-shadow: 1px 1px 5px gray;
    margin-bottom: 8px;
}

header a {
    float: left;
    padding: 20px; padding-top: 28px;
    font-size: larger; font-weight: bolder;
}

header a:link, a:visited {
    font-family: 'Lora', serif;
    text-decoration: none;
    color: #555;
}

header a:hover {
    text-decoration: underline;
    color: #222;
}

header h1 {
    padding: 20px;
    background-color: lightblue;
    text-align: center;
    font-family: 'Lora', serif;
}

div {
    margin: 50px 0 50px 0;
    background-color: #ccc;
    border: 1px solid gray;
}

div h2 {
    text-align: center;
    font-family: 'Lora', serif;
    border-bottom: 2px dotted gray;
}

ul {
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: space-around;
}

li {
    list-style-type: none;
    text-align: center;
    width: 18vw; min-height: 6vh;
}

li a {
    display: block;
    width: 100%; height: 100%;
    text-decoration: none;
}

li a span {
    display: block;
    transform: translateY(1vh);
}

/* First menu -------------------------------------------------------------------------- */
/* Casavana */
div:first-of-type {
    background-color: white;
    padding-bottom: 8px;
}

.nav1 li {
    border: 1px solid #fc5d4a;
    height: 8vh;
}

.nav1 li a {
    font-family: 'Open Sans', sans-serif;
    text-transform: uppercase;
    color: #222;
    transition: 300ms ease-in-out;
}

.nav1 li a:hover {
    background-color: #fc5d4a;
    color: white;
}

.nav1 li a span {
    transform: translateY(2.25vh);
}
/* End first menu ---------------------------------------------------------------------- */

/* Second menu ------------------------------------------------------------------------- */
/* Ten Barrel */
#N2 {
    width: 35%;
    border: 2px solid gray;
    background-color: white;
}

#N2 h2 {
    font-family: 'Anton', sans-serif;
    font-size: 48px;
    display: block;
    width: 75%;
    margin: 0 auto;
    border-bottom: 2px solid black;
    transition: 100ms ease-in, 1000ms ease-out;
}

#N2 ul {
    flex-flow: column wrap;
    width: 75%;
    margin: 15px auto; padding-bottom: 15px;
    border-bottom: 2px solid black;
}

#N2 li {
    list-style-type: disc;
    width: 40%;
    margin: 0; padding: 0; padding-top: 15px;
    line-height: 0;
}

#N2 li a {
    color: black;
    font-family: 'Anton', sans-serif;
    font-size: 42px;
    text-align: left;
    transition: 100ms ease-in, 1000ms ease-out;
}

#N2 h2:hover, #N2 li a:hover {
    color: #aaa;
}

#N2 li a span {
    transform: translateY(0);
}
/* End second menu --------------------------------------------------------------------- */

/* Third menu -------------------------------------------------------------------------- */
/* InFocus Eyecare */
#N3 {
    background-color: #94b1ad;
    padding-bottom: 8px;
}

#N3 li {
    width: 220px; height: 220px;
    border-radius: 25px;
    overflow: hidden;
}

#N3 li a {
    border: 1px solid #94b1ad;
    color: white;
    font-family: 'verdana';
    text-transform: uppercase;
    font-size: 0.9em;
    width: 100%; height: 100%;
}

#N3 li span {
    background-color: hsla(0, 20%, 5%, 50%);
    padding: 12px;
    margin-top: 160px;
}

#N3 li:hover span {
    background-color: hsla(0, 20%, 5%, 100%);
}

#N3 li:nth-of-type(1) {
    background-image: url(../images/wk11-couple.jpg);
    background-position-y: 20%; background-repeat: no-repeat; background-size: 275%; background-position-x: 50%;
}

#N3 li:nth-of-type(2) {
    background-image: url(../images/wk11-glasses.jpg);
    background-position-y: 20%; background-repeat: no-repeat; background-size: 160%; background-position-x: 50%;
}

#N3 li:nth-of-type(3) {
    background-image: url(../images/wk11-old.jpg);
    background-position-y: 20%; background-repeat: no-repeat; background-size: 160%; background-position-x: 50%;
}

#N3 li:nth-of-type(4) {
    background-image: url(../images/wk11-eyelid.jpg);
    background-position-y: -20%; background-repeat: no-repeat; background-size: 160%; background-position-x: 70%;
}

#N3 li:nth-of-type(5) {
    background-image: url(../images/wk11-near.jpg);
    background-position-y: 10%; background-repeat: no-repeat; background-size: 160%; background-position-x: 90%;
}
/* End third menu ---------------------------------------------------------------------- */

/* Fourth menu ------------------------------------------------------------------------- */
#N4 {
    background-color: white;
}

#N4 ul {
    flex-flow: column wrap;
}

#N4 li {
    border: 2px solid #333;
    border-radius: 25px;
    margin: 6px;
    transition: 300ms ease-in-out;
}

#N4 li a {
    color: #333;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-transform: uppercase;
    font-size: 0.9em;
    letter-spacing: 0.1em;
    /* font-weight: 500; */
}

#N4 li:hover {
    background-color: #333;
}

#N4 li:hover a {
    color: white;
}
/* End fourth menu --------------------------------------------------------------------- */

/* Fifth menu -------------------------------------------------------------------------- */
#N5 {
    background-color: white;
    padding-bottom: 24px;
}

.container {
    width: 50%;
    margin: 0 auto;
    border: 0;
}

.grid-menu {
    display: grid;
    grid-template: repeat(2, 150px) / repeat(4, 1fr);
}

#N5 section {
    padding-top: 8px; padding-bottom: 8px;
    margin: 4px 0;
}

#N5 section a:link, a:visited {
    text-decoration: none;
}

#N5 section a div {
    border: 0;
    border-radius: 50%;
    margin: 10px auto 0 auto;
    width: 100px; height: 100px;
}

#N5 section a span {
    display: block;
    margin: 10px auto;
    text-align: center;
    color: #333;
    text-transform: uppercase;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: bolder;
}

#N5 a:nth-of-type(1) div {
    background-image: url(../images/wk11-under.jpg);
    background-repeat: no-repeat; background-size: 180%; background-position-x: 50%; background-position-y: 50%;
}

#N5 a:nth-of-type(2) div {
    background-image: url(../images/wk11-chicken.jpg);
    background-repeat: no-repeat; background-size: 180%; background-position-x: 50%; background-position-y: 50%;
}

#N5 a:nth-of-type(3) div {
    background-image: url(../images/wk11-pasta.jpg);
    background-repeat: no-repeat; background-size: 180%; background-position-x: 50%; background-position-y: 50%;
}

#N5 a:nth-of-type(4) div {
    background-image: url(../images/wk11-one.jpg);
    background-repeat: no-repeat; background-size: 250%; background-position-x: 50%; background-position-y: 30%;
}

#N5 a:nth-of-type(5) div {
    background-image: url(../images/wk11-vegetarian.jpg);
    background-repeat: no-repeat; background-size: 150%; background-position-x: 50%; background-position-y: 50%;
}

#N5 a:nth-of-type(6) div {
    background-image: url(../images/wk11-slow.jpg);
    background-repeat: no-repeat; background-size: 150%; background-position-x: 50%; background-position-y: 50%;
}

#N5 a:nth-of-type(7) div {
    background-image: url(../images/wk11-quick.jpg);
    background-repeat: no-repeat; background-size: 120%; background-position-x: 50%; background-position-y: 80%;
}

#N5 a:nth-of-type(8) div {
    background-image: url(../images/wk11-arrow.png);
    background-repeat: no-repeat; background-size: 190%; background-position-x: 50%; background-position-y: -10%;
}
/* End fifth menu ---------------------------------------------------------------------- */


