*{
    margin: 0px;
    
}
 body{
     position: relative;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    height: auto;
    font-family: 'Times New Roman', Times, serif;
}
header{
    float: left;
    background-color: rgb(120, 90, 139) ;
    color:white;
    width: 100%;
    height: 70px;
    position: absolute;
}

h1{
    font-family: 'Times New Roman', Times, serif;
    font-size: 25px;
    height: 70px;
    border-width: 3px;
    border-color: black;
    padding-top: 3px;
    height: 40px;
    border-style: solid;
    width: 220px;
    position: static;
    text-align: start;
    background-color: grey;
    margin-top: 7px;
    margin-left: 5px;
    text-decoration: none;
}
nav{
   margin-top:10px;
    height: 30px;
    margin-left: 70%;
    flex-direction: row-reverse;

}

nav a {
    font-family: 'Times New Roman', Times, serif;
    color: black;
    background-color:grey ;
    border-width: 3px;
    border-style: solid;
    border-color: black;
    height: 30px;
    width: 150px;
    position:relative;
    margin-left: 10px;
    padding-top: 3px;
    text-align: center;
    text-decoration: none;
   
    
}

#link{
   top: 16px;
   left: 20px;
   padding-left: 10px;
   padding-right: 10px;
}
#link2{
    padding-top: 3px;
    margin-left:90px;
   padding-left: 10px;
   padding-right: 10px;
    left: 50px;
}
nav a:hover{
    color: whitesmoke;
}

.aboutme{
   flex-direction: column;
    align-items: flex-start;
    height: 100px;
    margin-left: 50px;
    margin-top: 100px;
}
h2{
    font-size: 175%;
    width: 150px;
    border-color: black;
    border-style: solid;
    border-width: 3px;
    align-items: flex-start;
}
h3{
    font-size: 150%;
}
#schoolworktext{
    
    padding-top: 5px;
    font-size: 130%;
    height: 30px;
   width: 100%;
   overflow: auto;
}
#schoolworktext a:hover{
    color: red;
    
}
.swt{
    color: black;
    text-decoration: none;
    float: left;
}
.swt1{
    margin-left: 10px;
}
.swt2{
    margin-left: 165px;
}
.swt3{
margin-left: 210px;
}
.swt4{
margin-left: 235px;
}
#h22{
    margin-left: 25px;
    width: 225px;
}
#pic{
    margin-left: 75%;
}
img{
     width: 250px;
     border-radius: 10px;
     border-color: gray;
     border-style:solid;
}
p{
    margin-top: 20px;
    margin-left: 10px;
}
.cards{
    flex: 1 1 250px;
    flex-wrap: wrap;
    align-items: center;
    width: 80%;
    height: 500px;
    padding-top: 30px;
}
.schoolwork{
    float: left;
    border-width: 3px;
    text-align: left;
    margin-top: 10px;
    
    width: 265px;
    height: 265px;
}

.schoolwork:hover{
    opacity: .8;
}
#float{
    position: relative;
    height: auto;
    
}
figure{
    position: fixed;
    top: 70px;
    right: 20px;
    background-color: rgb(120, 90, 139);
    opacity: .85;
    text-align: center;
    height: 200px;
    width: 200px;
    border-radius: 10px;
    border-color: gray;
    border-style:solid;
    
}
h3{
    font-size: 150%;
    margin-bottom: 10px;
}

.contact{
    color: whitesmoke;
    text-decoration: none;
    
}

figure a{
    font-size: 125%;
}
figure a:hover{
    color: red;
}
figure a{
    width: 100px;
    margin-left: 45px;
    font-size: 110%;
}
footer{
    
    border-color: rgb(120, 90, 139);
    border-width: 2px;
    border-style: solid;
    border-radius: 10px 10px 0 0;
    height:50px;
    margin-top: 25px;
    text-align: center;
}
#foot{
    font-family: 'Times New Roman', Times, serif;
    color: black;
    text-decoration: none;
}
#foot::after{
    content:'\2764' ;
}
@media screen and (max-width:850px) {
    figure{
        opacity: 0.8;
    }
}
@media screen and (max-width:800px) {
    figure{
        opacity: 0.6;
    }
}
@media screen and (max-width:768px) {
    figure{
        opacity: 0.4;
    }
}
@media screen and (max-width:700px) {
    figure{
        opacity: 0.2;
    }
}
@media screen and (max-width:650px) {
    figure{
        opacity: 0;
    }
}
@media screen and (max-width:850px) {
    #pic{
        opacity: 0.8;
    }
}
@media screen and (max-width:800px) {
    #pic{
        opacity: 0.6;
    }
}
@media screen and (max-width:768px) {
    #pic{
        opacity: 0.4;
    }
}

@media screen and (max-width:700px) {
    #pic{
        opacity: 0.2;
    }
}
@media screen and (max-width:650px) {
    #pic{
        opacity: 0;
    }
}