@import url(reset.css);
a {
    transition: transform 2s;
}
a:hover {
    transform: scale(2);
}
ul {
    list-style-type: none;
    overflow: hidden;
    color: gray;
}
  
li {
    float: right;

  }
  
li a {
    display: block;
    margin: 50px;
    background-color: #dddddd;
    text-decoration: none;  
    color: black;
}
footer {
    text-align: center;
}
nav {
    position: relative;
    right: 0;
}

main {
    display: grid;
    grid-template-areas:    
    'image2 text2';
}
main > * {
    border-radius: 10px;
}

.section1 {
    grid-area: image2;
}
.section2 {
    grid-area: text2;
}
footer {
	background-color: white;
}
h1 {
    background-color:rebeccapurple;
    color: rgb(182, 236, 240);
    width: 40%;
    font-size: 50px;
    text-align: center;
    margin-left: 30%;
}
.center {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 40%;
}
@media screen and (max-width:410px) {
    main {
        display: flex;
        flex-direction: column;
        font-size: 16px;
        margin-left: 40%;
    }
    footer {
      position: relative;
      width: 100%;
      bottom: 0;
      }
    li a {
      margin: 5px;
    }
    h1{ font-size: 25px;}
    .center {
        display: none;
    }
}
@media screen and (max-width:1023px) and (min-width:411px) {
    main {
        display: flex;
        flex-direction: column;
        font-size: 20px;
        margin-left: 30%;
    }
    footer {
      position: relative;
      width: 100%;
      bottom: 0;
      }
    li a {
      margin: 20px;
    }
    h1{
        background-color:rebeccapurple;
        color: rgb(182, 236, 240);
        width: 50%;
        font-size: 25px;
        text-align: center;
        margin-left: 25%;
    }
    .center {
        display: block;
        margin-left: auto;
        margin-right: auto;
        width: 50%;
    }
}