/*
stylesheet for andrewdmoran.com
File: style.css
Author: Andrew Moran
Main resource used was W3 schools tutorials:
https://www.w3schools.com/css/default.asp
*/

body {
    font-family: "Poppins", sans-serif;
    margin: 16px;
    background-color: #f5f5f5;
}

h1 {
    font-family: "Poppins", sans-serif;
}

h2 {
    font-family: "Poppins", sans-serif;
}

h3 {
    font-family: "Poppins", sans-serif;
}

h4 {
    font-family: "Poppins", sans-serif;
}

h5 {
    font-family: "Poppins", sans-serif;
}

p {
    font-size: 18px;
}

.col-2 {
    float: left;
    width: 50%;
}

.col-75 {
    float: left;
    width: 75%;
}

.col-25 {
    float: left;
    width: 25%;
}

.col-3 {
    float: left;
    width: 33.33%;
}

.col-4 {
    float: left;
    width: 33.33%;
}

.row:after {
    content: "";
    display: table;
    clear: both;
}

.header {
    text-align: center;
    margin-bottom: -10px;
}

hr.rounded {
    border-top: 8px solid #3a0707;
    border-radius: 5px;
}

/*Formatting for the collapsible/expandable text sections*/
.collapsible {
    background-color: #eee;
    color: #444;
    cursor: pointer;
    padding: 6px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 15px;
}

.collapsible:after {
    content: '\02795';
    font-size: 13px;
    color: white;
    float: right;
    margin-left: 5px;
}

.collapsible.active:after {
    content: "\2212";
  }

.active,
.collapsible:hover {
    background-color: #ccc;
}

.content {
    padding: 0 18px;
    background-color: white;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
}

/*formating for the navigating sidebar that is on all pages*/
.sidebar {
    height: 100%;
    position: fixed !important;
    overflow: auto;
    color: #f5f5f5;
    background-color: #3a0707;
    top: 0;
    left: 0;
    padding: 8px 16px;
    z-index: 3;
    width: 300px;
    font-weight: bold;

    hr.rounded {
        border-top: 2px solid #f5f5f5;
    }

    .name {
        display: block;
        font-size: 2em;
        margin-top: 0.67em;
        margin-bottom: 0.67em;
        margin-left: 0;
        margin-right: 0;
        font-weight: bold;

        .first {
            margin-top: -5px;
            font-size: 60px;
            padding-bottom: 0;
            margin-bottom: -45px;
            text-align: left;
        }

        .last {
            padding-top: 0;
            font-size: 65px;
            margin-top: 0;
            text-align: right;
            margin-bottom: 0;
        }

        .location {
            display: block;
            font-size: 24px;
            margin-top: 1em;
            margin-left: 0;
            margin-right: 0;
            font-weight: bold;
            text-align: left;
            margin-bottom: -5px;
        }
    }

    ul {
        list-style-type: none;
        margin: 0;
        padding: 0;
        width: 300px;
        padding-top: 40px;
        padding-bottom: 150px;
        ;
    }

    li a {
        width: 100%;
        border: none;
        float: none;
        outline: 0;
        border: none;
        display: inline-block;
        padding: 8px 16px;
        vertical-align: middle;
        overflow: hidden;
        text-decoration: none;
        color: inherit;
        background-color: inherit;
        text-align: left;
        cursor: pointer;
        white-space: nowrap;
        font-size: 18px !important;
        text-transform: uppercase;
    }

    li a.active {
        color: #3a0707 !important;
        background-color: #f5f5f5 !important;
    }

    li a:hover:not(.active) {
        color: #3a0707 !important;
        background-color: #f5f5f5 !important
    }

    .footer {
        /**position: fixed;*/
        left: 0;
        bottom: 0;
        width: 100%;
        background-color: #3a0707;
        color: #f5f5f5;
        text-align: center;
        padding: 8px;
        padding-top: 40px;
        padding-bottom: 50px;
        

        .button {
            border: none;
            padding: 15px 32px;
            text-align: center;
            text-decoration: none;
            display: inline-block;
            font-size: 16px;
            border-radius: 12px;
            cursor: pointer;
        }

        .button:hover {
            background-color: #6e6e6e;
        }
    }
}

/*formatting for the social media buttons*/
.fa {
    padding: 5px;
    font-size: 42px !important;
    width: 42px;
    text-align: center;
    text-decoration: none;
  }

  .fa:hover {
    opacity: 0.7;
  }

  .fa-linkedin {
    background: #f5f5f5;
    color: black;
  
  }
  /*Not currently used, but will be in future update*/
  .fa-github {
    background: #f5f5f5;
    color: black;
  }

/*formatting for the main section of index.html*/
.main {
    margin-left: 340px;
    margin-right: 40px;
    text-align: center;
    padding-top: 2px;

    .summary {
        padding-top: 65px;
        vertical-align: middle;
        padding-bottom: 20px;
    }

    .about {
        text-align: left;
        padding-top: 20px;
        padding-bottom: 20px;
    }

    p {
        text-indent: 30px;
        padding-top: 10px;
        padding-bottom: 10px;
    }
}

/*formatting for the education section of education.html*/
.education {
    margin-left: 340px;
    margin-right: 40px;
    text-align: left;
    padding-top: 20px;
    padding-left: 20px;

    .degree {
        margin-bottom: -5px;
    }

    .program {
        margin-top: -5px;
        margin-bottom: -5px;
    }

    .school {
        margin-top: -5px;
    }

    .date {
        text-align: right;
    }

    .gpa {
        text-align: right;
    }

}

/*formatting for the certification section of education.html*/
.certs {
    margin-left: 340px;
    margin-right: 40px;
    text-align: left;
    padding-top: 20px;
    padding-left: 20px;

    .name-short {
        margin-bottom: -1px;
    }

    .name-long {
        margin-top: -5px;
        margin-bottom: -1px;
    }

    .dates {
        margin-top: -5px;
    }
}

/*formatting for the main section of experience.html*/
.exp {
    margin-left: 340px;
    margin-right: 40px;
    text-align: left;
    padding-top: 20px;

    hr.rounded {
        margin-top: -15px;
        margin-bottom: -15px;
    }

    .year {
        text-align: right;
    }

    .job {
        padding-bottom: 15px;
    }

    .role {
        margin-bottom: -15px;
    }

    .base {
        margin-bottom: 0;
    }

    li {
        margin-bottom: 10px;
        font-size: 18px;
    }
}

/*formatting for the main section of projects.html*/
.projects {
    margin-left: 340px;
    margin-right: 40px;
    text-align: center;
    padding-top: 20px;

    .project {
        text-align: left;
        padding-bottom: 20px;
    }

    .proj-name {
        margin-bottom: -5px;
    }

    .example {
        text-align: center;
    }

    img {
        border: 2px solid #3a0707;
        width: 80%;
        margin-top: 20px;
    }

}

/*formatting for when the dark mode is activated*/
.dark-mode {
    background-color: #001111;
    color: #dfdddd;

    .collapsible {
        background-color: #202020;
        color: #dfdddd;
    }
    
    .collapsible:after {
        color: #dfdddd;
    }
    
    .active,
    .collapsible:hover {
        background-color: #000000;
    }
    
    .content {
        background-color: #202020;
    }

    hr.rounded {
        border-top: 4px solid #dfdddd;
    }

    .sidebar {
        color: #f5f5f5;
        background-color: #110000;

        hr.rounded {
            border-top: 2px solid #f5f5f5;
        }
        .footer {
            background-color: #110000;
            color: #f5f5f5;
        }
    }
}