body {
    margin:0;
    padding:0;
    font-size: 100%;
    font-family: sans-serif;
}

p {
    margin:0;
    padding:0;
}

:root {
    --fontcolor: #3b87b3;
    --background: #1f3042;
    --third: #3de3dd;
    --flexbox: #636161;
}

header {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    background-color: var(--background);
    color: var(--fontcolor);
    min-width:100%;
    padding-top:1%;
    padding-bottom: 1%;
}

header a{
color:#1f3042;
text-decoration: none;
}

header a:visited{
    text-decoration: none;
}

header h1 {
    font-weight: 800;
    font-size: 200%;
    padding: .1% 1% .1% 3.5%;
    padding-left: 3.5%;
    padding-right: 1%;
    background-color: var(--fontcolor);
    color: var(--background);
}
header .navbar ul {
    display: flex;
    flex-direction: row;
    justify-content: center;
    list-style: none;
    margin-right: 50px;
    color: var(--fontcolor);
}
.navbar ul li {
    padding:10px;
    text-decoration: underline 2px;
    text-underline-offset: 5px;
}
.navbar a:link {
    text-decoration: none;
    color:var(--fontcolor);
}
.navbar a:hover {
    text-decoration: none;
    color:var(--fontcolor);
}
.navbar a:visited{
    text-decoration: none;
    color: var(--fontcolor);
}
.navbar a:active {
    text-decoration: none;
    color: var(--fontcolor);
}
.widebar {
    display:flex;
    flex-direction: row;
    justify-content: space-between;
    border: solid var(--fontcolor) 3px;
    min-width: 100%;
    background-color: var(--background);
}
.widebar .showfirst {
    text-align: right;
    font-size:160%;
    color: var(--fontcolor);
    padding: .5% 2.8%
}
.widebar .showsecond{
    text-align: right;
    font-size:160%;
    color: var(--background);
    padding: .5% 2.8%
}
.widebar:hover {
    background-color: var(--fontcolor);
    border: solid var(--background) 3px;
}


.about img {
    max-width: 13%;
    max-height: 13%;
    border:var(--fontcolor) solid 3px;
}

.about p {
    line-height: 1.7;
    font-weight:500;
}

.left {
    float:left;
    margin:0 20px 20px 0;
}

.page-section {
    margin: 3% 0;
    padding: 10px 20px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: space-between;
}

.page-section > h2 {
    flex: 0 0 18%;
    text-align: right;
    padding-right:15px;
    align-items: flex-start;
    border-right: 4px solid var(--background);
    font-size: 2.5vw;
    line-height: 1.1;
    color: var(--background);
}

.page-section > div {
    flex: 0 0 80%;
}

.projects {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
}

.flex-item {
    border: 5px solid var(--fontcolor);
    background-color: var(--flexbox);
    color:var(--fontcolor);
    min-height: 150px;
    max-height: 150px;
    flex-basis: 48.9%;
    display: flex;
    align-items: flex-end;
    padding: 0 0 20px 0;
    margin: 0.5em;
    text-decoration: none;
    background-size: 150%;
}

.flex-item div {
    color:black;
    border:black solid 4px;
    background-color: #3a69b5;
    margin-left: 0%;
    min-width: 10%;
    min-height:10%;

}

.work-1 {
    background-image: url(./TravelProject.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover ;
    opacity: 60%;
}
.work-1:hover {
    opacity: 100%;
}

.work-2 {
    background-image: url(./Untitled\ design.jpg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover ;
    opacity: 60%;
}
.work-2:hover {
    opacity: 100%;
}

.work-3 {
    background-image: url(University-of-South-Florida-Symbol.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover ;
    opacity: 70%;
}
.work-3:hover {
    opacity: 100%;
}

.work-4 {
    background-image: url(./Untitled\ design\(1\).jpg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover ;
    opacity: 60%;
}
.work-4:hover {
    opacity: 100%;
}
.work-5 {
    background-image: url(./password.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover ;
    opacity: 60%;
}
.work-5:hover {
    opacity: 100%;
}



.flex-item:first-child {
    min-height: 400px;
    flex-basis: 100%;
}
.contact {
    margin-top: 4%;
}
.contact address {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    height: 100%;
}

.contact address a {
    color: var(--background);
    padding: 5px;
    text-decoration: none;
    font-size: 1.3rem;
    font-style: normal;
    background-image: linear-gradient(270deg, var(--fontcolor) 0%, var(--fontcolor) 100%);
    background-repeat: no-repeat;
    background-size: 100% 0.2em;
    background-position: bottom;
    transition: all 0.25s ease-in;
    margin: 0 0.2rem 0.1rem;
    display: inline-block;
}

.contact address a:hover {
    background-size: 100% 88%;
    color: var(--third);
}

@media screen and (max-width:1816px){
    .flex-item {
        flex-basis: 35%;
    }
    .flex-item:first-child {
        flex-basis: 71%;
    }
    .work-1,.work-2,.work-3,.work-4,.work-5{
        background-size: 100% ;
    }

}
@media screen and (max-width:705px) {
    .left{
        display: none;
    }
    .widebar .showfirst {
        font-size: 100%;
    }
    .widebar .showsecond {
        font-size: 100%;
    }
}
@media screen and (max-width:641px){
    header { flex-direction: column;
    }
    header h1 {
        text-align: center;
    }
    header .navbar ul{
        margin-right: 0;
    }
}
@media screen and (max-width:578px){
    #aboutme{
        font-size:1em
    }
}

@media screen and (max-width:500px){
    .flex-item {
        flex-basis: 35%;
        max-height: 20%;
    }
    .flex-item:first-child {
        min-height: 150px;
    }
    .flex-item{
        min-width: 150px;
    }
    .page-section h2{
        font-size: .7em;
    }
    .contact h2{
        display: none;
    }
    .contact{
        justify-content: center;
    }
}

@media screen and (max-width:404px){
    #aboutme{
        display: none;
    }
    #contact a{
        font-size: 1em;
    }
    .about p{
        text-align: center;
        padding:0 .5em 0 .5em;
    }
    .page-section p{
        text-align: center;
        padding:0%
    }
    .projects a .flex-item .work-1{
        display: none;
    }
}

@media screen and (max-width:323px){
    .navbar{
        font-size: smaller;
    }
}

@media screen and (max-width:288x){
    .widebar{
        display: none;
    }
    .showfirst{
        display: none;
    }
}
