/* CSS Resets */
h1, h2, h3, h4, p, nav ul {
    padding: 0;
    margin: 0;
}
nav ul {
    list-style-type: none;
}
img { max-width: 100%; display: block; }
* { box-sizing: border-box;}

/* end Resets */

body {
    font-family: 'Nanum Gothic', sans-serif;
    font-size: 1.8em;
    color: rgb(252, 214, 88);

    padding:  100px;
    
    background-image: linear-gradient(to bottom right, rgb(4, 2, 89), rgb(0, 162, 255),orange
    );
   
    
    
} 

header, footer {
    background-image: linear-gradient(to bottom left, rgb(31, 9, 71), rgb(13, 0, 255));
    padding: 45px;
    text-align: center;
    font-family: Georgia, 'Times New Roman', Times, serif;
  
}

main {
    padding-top: 60px;
    padding-left: 20px;
    padding-bottom: 100px;
    background-color: rgb(14, 88, 122);
   
}

.container {
    max-width: 1000px;
    
}

header:hover h1, h2 {
    margin-bottom: .5em;
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif; 
    transform:rotate(720deg);
    transition: transform 3s ease-out;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;


    
}

p {
    line-height: 1.4em;
    margin-bottom: 1em;
    
    
}
a{
    color:aqua;
}
a:link,visited {
    text-decoration:none;
    font-weight: bold;
    color:#f9e9f3

}
a:hover,active {
    color:rgb(220, 243, 244);
    
}



ul li {
    margin-bottom: 1em;
}

img {
    margin-bottom: 20px;
}

aside {
    background-color: rgb(10, 49, 128);
    padding: 20px;
    
}

aside img {
    border-radius: 50%;
    margin-left: auto;
    margin-right: auto;
    width: 200px;
}

@media only screen and (min-width: 600px) {
    .container{ 
        display: flex;
        flex-wrap: wrap;
    }
    header, footer {
        width: 100%;
    }
    main { flex: 2; }
    aside { flex: 1; }
}

@media only screen and (min-width: 800px) {
    .container{ margin: auto; }
    main { display: flex;}
    main div { flex: 1; }
}