/* Global rules */

html {
    height: 100%;
    
}

body {
    /*max-width: 80%;*/
    height: 100%;
    /*margin-left: 10%;*/
    display: flex;
    flex-direction: column;
    font-family: 'Roboto', sans-serif;
    font-size: 20px;
}

h1, h2, h3, /*li*/ nav a {
    font-family: 'Fraunces', serif;
}

/*Page header*/
header {
    background: linear-gradient(45deg, #182848 0%, #4b6cb7 100%);
}

h1 {
    font-size: 2.25rem;
    color: coral;
    /*padding-left: 20px;*/
}

nav {
    display: flex;
    justify-content: space-between; 
}

.navigation {
    display:flex;
    justify-self: stretch;
    overflow: hidden;
    margin-top: 20px;
}

.navigation a {
    display: block;
    text-align: center;
    padding: 14px 16px;
    font-size: 1.5rem;
    text-decoration: none;
    font-weight: bold;
    color: whitesmoke;
}

.navigation a:visited {
    text-decoration: none;
    color:  whitesmoke;
}

.navigation a:hover {
    color: coral;
}

.navigation a.active {
    background-color: coral;
    color: white;
}

/*.navigation .icon {
    display: none;
}*/

.ix {
    font-size: 2.5rem;
}

a .ix:hover {
    cursor:pointer;
}


nav,
main {
    padding: 0px 50px;
}

/* Main Content*/
/*About*/
.about-me-container {
    display:flex;
    justify-content: space-between;
}

.bio {
    max-width: 35rem;
}

.profile {
    max-width: 300px;
    max-height: 300px;
    border: black solid 1px;
    border-radius: 15px;
    align-self: center;
    margin: 30px;
}

/*Projects*/
.projects {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

details {
    padding: 20px;
    margin: 10px;
}

/*pop-ups*/
/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

  /* Modal Content/Box */
.modal-content {
    background-color: #fefefe;
    /*background-color: hsl(16, 100%, 92%);*/
    color: #182848;
    margin: 15% auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid coral;
    border-radius: 15px;
    width: 60%; /* Could be more or less, depending on screen size */
}

  /* The Close Button */
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

  /* button design */
.project-container > button {
    width: 200px;
    height: 70px;
    background: linear-gradient(90deg, #4b6cb7 0%, #182848 100%);
    color: whitesmoke;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 15px;
    border: none;
    margin-bottom: 20px;
}

.project-container > button:hover {
    cursor: pointer;
    background: linear-gradient(90deg, #182848 0%, #4b6cb7 100%);
}

.learn-more {
    background-color: hsl(220, 50%, 25%);
    border-radius: 15px;
    padding: 10px;
    margin-left: 37%;
}

.learn-more a {
    text-decoration: none;
    color: azure;
    font-family: 'Roboto', sans-serif;
    font-size: 20px;
}


/*Skills*/
.skill-container {
    display: grid;
    grid-template-columns: repeat(10, 75px);
}

.skill-icon {
    width: 50px;
}

section {
    margin-bottom: 50px;
}

/*contact page*/
.contact .icon {
    margin: 0 20px;
    text-shadow: #182848 1px 1px;
}

.contact .icon::after{
    visibility: hidden;
}

.contact a {
    text-decoration: none;
    color: coral;
}

.contact a:visited {
    color: coral;
}

/*Footer*/
footer {
    margin-top: auto;
    padding: 1rem 5px;
    text-align: center;
}

/*Responsive*/
@media only screen and (max-width: 1080px){
    .about-me-container {
        flex-direction: column;
        align-content: center;
    }

    body {
        max-width: 100vw;
        margin: auto 0px;
    }

    /*navigation*/ 
    .navigation {
        display: inline;
        padding-left: 5px;
    }

    h1 {
        padding-left: 20px;
    }

    .navigation a {
        display: none;
        font-size: 1.75rem;
    }

    /*.navigation a:not(:first-child) {
        display: none;
    }*/

    .navigation a.icon {
        float: right;
        display: block;
        position:absolute;
        right:20px;
        top: 40px;
    }

    .navigation.responsive {
        position: relative;
    }
    
    .navigation.responsive a.icon {
        position: absolute;
        right: 0;
        top: 0;
    }

    .navigation.responsive a {
        float: none;
        display: block;
        text-align: left;
    }

    nav {
        display: inline;
        padding: 0px 20px;
        /*text-align: center;*/
    }

    .bio {
        align-self: center;
    }

    .skill-container {
        grid-template: repeat(2, 70px)/repeat(5, 1fr);
        gap: 10px 20px;
    }
}

@media only screen and (min-width: 1080px) {
    @keyframes photozoom {
        from {
            transform: scale(1);
        }
        to {
            transform: scale(1.5);
        }
    }
    
    .profile:hover {
        animation: photozoom 1.5s ease-in 0.3s forwards;
    }

    .navigation .icon {
        display: none;
    }

    a .ix {
        display: none;
    }
}