/*
html5doctor.com Reset Stylesheet
v1.6.1
Last Updated: 2010-09-17
Author: Richard Clark - http://richclarkdesign.com
Twitter: @rich_clark
*/

html, body, div, span, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
abbr, address, cite, code,
del, dfn, em, img, ins, kbd, q, samp,
small, strong, sub, sup, var,
b, i,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, figcaption, figure,
footer, header, hgroup, menu, nav, section, summary,
time, mark, audio, video {
    margin:0;
    padding:0;
    border:0;
    outline:0;
    font-size:100%;
    vertical-align:baseline;
    background:transparent;
}

body {
    line-height:1;
}

article,aside,details,figcaption,figure,
footer,header,hgroup,menu,nav,section {
    display:block;
}

nav ul {
    list-style:none;
}

blockquote, q {
    quotes:none;
}

blockquote:before, blockquote:after,
q:before, q:after {
    content:'';
    content:none;
}

a {
    margin:0;
    padding:0;
    font-size:100%;
    vertical-align:baseline;
    background:transparent;
}

/* change colours to suit your needs */
ins {
    background-color:#ff9;
    color:#000;
    text-decoration:none;
}

/* change colours to suit your needs */
mark {
    background-color:#ff9;
    color:#000;
    font-style:italic;
    font-weight:bold;
}

del {
    text-decoration: line-through;
}

abbr[title], dfn[title] {
    border-bottom:1px dotted;
    cursor:help;
}

table {
    border-collapse:collapse;
    border-spacing:0;
}

/* change border colour to suit your needs */
hr {
    display:block;
    height:1px;
    border:0;  
    border-top:1px solid #cccccc;
    margin:1em 0;
    padding:0;
}

input, select {
    vertical-align:middle;
}


/* html */
html{
    font-size: 100%;
    color: #333;
}
img{
    width: 100%;
}
a{
    text-decoration: none;
    color:rgb(84, 84, 84);
}
li {
    list-style: none;
}

#header{
    margin: 20px 20px 10px;
}

h1{
    font-size: 1.5rem;
    letter-spacing: 0.3em;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 30px;
}

nav ul{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin: 0px 10px;
    font-style: italic;
}

nav ul li a:hover{
    color: lightslategray
}

@media (min-width:768px){
    #header{
        max-width: 95%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin: 20px 20px 5px;
    }
    h1{
        /* margin: 0px; */
    }    
    nav ul li{
        margin: 0px 30px;
    }}


#main{
    width: 100%;
    }

#mainvisual{
    background-image: url(../images/topimg3.jpg);
    height: 600px;
    background-size: cover;
    text-align: center;
    }    
.title{
    display: inline-block;
    line-height: 600px;
    font-size: 2.5rem;
    letter-spacing: 0.5em;
    font-family: 'Oswald', sans-serif;
}
.wrapper{
    max-width: 330px;
    text-align: center;
    margin: 150px auto;
    opacity: 0;
}
h2{
    font-size: 1rem;
    margin-bottom: 20px;
    /* opacity: 0; */
}
#about ul li{
    margin: 8px 0;
}
#skills ul {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin: 30px;   
}
#skills ul li{
    width: 100px;
    padding: 10px;
    /* margin: 40px; */
}
dt {
    margin-bottom: 0.5rem;
}
dd{
    margin-bottom: 1rem;
}
.show{
    transition: all 2s;
    opacity: 1;
}

@media (min-width:768px)and(max-width:1019px){
    .title{
        /* margin-left: 10%; */
        font-size: 5rem;
    }
    .wrapper{
        max-width: 70%;
    }}

@media (min-width:1020px){
    #mainvisual{
        text-align: left;
    }
    .title{
        font-size: 5rem;
        margin-left: 10%;

    }
    .wrapper{
        max-width: 60%;
    }}

/* button */
.button a {
    position: relative;
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: 0 auto;
    max-width: 220px;
    padding: 10px 25px;
    color: #313131;
    transition: 0.3s ease-in-out;
    font-weight: 400;
    background: #eee;
}
.button a:hover {
    background: #d7d7d7;
    color: #444444;
}
.button a:before, .button a:after {
  box-sizing: inherit;
  content: "";
  position: absolute;
  border: 2px solid transparent;
  width: 0;
  height: 0;
}
.button a:before {
  top: 0;
  left: 0;
}
.button a:after {
  bottom: 0;
  right: 0;
}
.button a:hover:before, .button a:hover:after {
  width: 100%;
  height: 100%;
}
.button a:hover:before {
  border-top-color: #9b9b9b;
  border-right-color: #9b9b9b;
  transition: width 0.15s ease-out, height 0.15s ease-out 0.15s;
}
.button a:hover:after {
  border-bottom-color: #9b9b9b;
  border-left-color: #9b9b9b;
  transition: border-color 0s ease-out 0.2s, width 0.15s ease-out 0.2s, height 0.15s ease-out 0.3s;
}
footer{
    text-align: center;
    padding: 20px 0;
}