/*css*/

/*save as history1.css*/

/* YUI 3.5.0 reset.css (http://developer.yahoo.com/yui/3/cssreset/) - http://cssreset.com */
html{color:#000;background:#FFF}body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,figure,legend,input,textarea,p,blockquote,th,td{margin:0;padding:0}table{border-collapse:collapse;border-spacing:0}fieldset,img{border:0}address,caption,cite,code,dfn,em,strong,th,var{font-style:normal;font-weight:normal}ol,ul{list-style:none}caption,th{text-align:left}h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:normal}q:before,q:after{content:''}abbr,acronym{border:0;font-variant:normal}sup{vertical-align:text-top}sub{vertical-align:text-bottom}input,textarea,select{font-family:inherit;font-size:inherit;font-weight:inherit}input,textarea,select{*font-size:100%}legend{color:#000}#yui3-css-stamp.cssreset{display:none}

html, body {position: sticky;
    margin: 0;
    padding: 0;
    height: 100vh;
    width: 100vw;
}
body {width: 81vw;
    display: grid;
    position: sticky;
    grid-template-columns: 20vw 80vw;
}
ul, li {
    list-style: none;
    margin-left: 0;
    padding-left: 0;
}
ul {text-align: center;
    font-family: 'Roboto',sans-serif;
    width: 100%;
    margin: 0;
    height: 100vh;
}
li {
    height: 20vh;
    position: relative;
    width: 100%;
    background-color: rgba(0,0,0,0.1);
}
a::after {
    display: block;
    content: '';
    position: absolute;
    top: 0;
    height: 100%;
    width: 100%;
    z-index: 20;
    opacity: 0;
    text-align: center;
    line-height: 20vh;
    transition: all 0.3s ease;
}
a:hover::after {
    opacity: 1;
    cursor: pointer;
}


li {
    display: flex;
}


li a img {
    height: 100%;
    width: 100%;
    object-fit:cover;
    background-size:cover;
}



.hover-animation{
     height: 10%;
    width: 0%;
    display: inline-block;
    -webkit-background-size:cover;
    background-size: cover;
    border:1px solid black;
    position: absolute;
    overflow: hidden;}

.one{background-image: url(home.gif);
top: 0em;
left: 2em;
   height: 20%;
    width: 23%;}

.two{background-image: url(book.gif);
top: 11em;
left: 2em;
   height: 20%;
    width: 23%;}

.three{background-image: url(question.gif);
top: 22em;
left: 2em;
height: 20%;
width: 23%;}

.fourth{background-image: url(teacher.gif);
top: 33em;
left: 2em;
   height: 20%;
    width: 23%;}

.fifth{background-image: url(gallery.gif);
top: 44em;
left: 2em;
   height: 20%;
    width: 23%;}

.hover-animation:before,
.hover-animation:after{
top: 0;
bottom: 0;
right:0;
left: 0;
content:'';
    text-align: center;
position: absolute;
transition: .3s;}

.hover-animation:after{
padding: 1em;
display: -webkit-flex;
display: -moz-flex;
display:-o-flex;
display: flex;
 align-items: center;   
text-align: center;
color: white;
 font-size: 55px;   
  
 transform:translateY(100%);
    content: attr(data-text);}

.hover-animation:hover:before{transform: translateY(-50%);}
.hover-animation:hover:after{transform: translateY(0);}

main {position: sticky;
    background-color: white;
    text-align: center;
}

h1{padding: .4 em;
margin-left: 0;
    font-weight: bold;
background-color: #aec6cf;
font-size: 7em;
font-family: 'Roboto',sans-serif;
    text-align: center;}

p{
margin:6vw;
padding: 1em;
font-size: 1.5em;
line-height: 1.5em;
font-family: 'Roboto',sans-serif;}

.taylor{position: sticky;
top:25vw;
left:25vw;}

