/*-----------------------------
STYLING FOR RESPONIVE FLOATING 
NAVIGATION BAR & POP-UP---------
-------------------------------*/

/* This aligns all the floating navigation 
elements icons that sit over the page content 
and scrolls with the page */

.hover-nav {
    position: fixed;
    top: 3rem;
    right: 1rem;
    z-index: 99;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    line-height: 1;

}


/* Styles for the navigation icons */

.info a,
.go-home a,
.to-portfolio a,
.contact-me a {
    color: rgba(62, 202, 212, 0.43);
    text-decoration: none;
}

.info a:hover,
.go-home a:hover,
.to-portfolio a:hover,
.contact-me a:hover {
    color: rgb(62, 202, 212);
}

/* Font styling for the modal box */


.modal {
    font-family: sans-serif;
}


/* When the information panel is NOT open */

.modal {
    display: none;
}

/* When the information panes IS open. Uses the target
pseudo class to make changes to visible elements on
the page when the question mark icon is clicked. */

.modal:target {
    position: absolute;
    /*makes the popup visible*/
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

/* This styles the content of the information panel and 
makes the popup box responsive to changing screen widths. */

.modal .modal-contents {
    width: 60%;
    margin: auto;
    position: relative;
    padding: 0 2rem 0.6rem 2rem;
    /*makes the padding consistent*/
    background-color: white;
    border-radius: 5px;
}

/* Styles for the close button on the info panel */

.modal .close {
    position: relative;
    display: block;
}

.close {
    text-decoration: none;
}

.modal p {
    font-family: 'Open Sans Condensed', sans-serif;
    font-size: 1.2rem;
    line-height: 1.4rem;
    margin-top: 0;
    margin-bottom: 1rem;
}

/* This part makes the X button look like a button 
and positions it just over the edge of the top-right
corner of the info panel. */

.modal .close::after {
    right: -102%;
    top: -6px;
    width: 2rem;
    height: 2rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: black;
    border-radius: 50%;
    color: white;
    content: "x";
    cursor: pointer;
}

/* Add a hover effect to the close button */

.close:hover::after {
    background-color: gray;
}

/* This creates the gray shading effect over 
the page contents behind the popup 
information panel. */

.modal .close::before {
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    position: fixed;
    background-color: rgba(0, 0, 0, .7);
    content: "";
    cursor: default;
    z-index: -1;
}
