/** 
  * styles.css
  * The stylesheet for the website. This was my first serious attempt at making a website
  * "Look good", and will be updated when I get more experience in CSS
  */


/* ===Globals=== */
*,
*::before,
*::after {
    box-sizing: inherit;

}
html {
    box-sizing: border-box;
    font-family: Ubuntu, Arial, Helvetica, sans-serif;
    background-color: #1C1E20;
    color: #c9c9c9;
    margin: 0px;
    padding: 0px;
}
body {
    margin: 0px;
    padding: 0px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Ubuntu Mono',  monospace;
    font-weight: bold;
    padding-left: 1.5em;
    text-indent: -1.5em;

}

div {
    margin: 0px;
    padding: 0px;
}

section {
    margin: 0px;
    padding: 0px;
}




/* ===Header=== */
header {
    padding: 0px 20px;

    margin: 0px auto;
    max-width: 1200px;    
    height: 90vh;
    font-size: 1.25vw;
    display: flex;
    justify-content: center;
    align-content: center;
    align-items: center;
    flex-direction: column;
    
}

header h1 {
    display: inline-block;
}

nav {
    margin: 0px;
    padding: 0px;
    background-color: #111;
}
nav ul {
    height: 100%;
    margin: 0px;
    padding: 0px;
}

nav li {
    display: block;

}

nav a {
    color: #c9c9c9;
    text-decoration: none;
    display: block;
    height: 100%;
    padding: 1rem 1.5rem 1rem 1.5rem;

}
.logo {
    font-size: 1.5rem;
    flex: 1;
    border-bottom: 2px solid #444;

}

nav .toggle {
    cursor: pointer;
    border-bottom: 2px solid #444;

}

nav .bars {
    background: #c1c1c1;
    display: inline-block;
    width: 18px;
    height: 3px;
    position: relative;
    
}

.bars::before, .bars::after {
    background: #c1c1c1;
    display: inline-block;
    width: 18px;
    height: 3px;
    position: absolute;
    content: "";
    
}

.bars::before {
    top: 5px;
}
.bars::after {
    top: -5px;
}



.menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-content: center;
}

.toggle {
    order: 1;
}

.item {
    order: 2;
    width: 100%;
    max-height: 0em;
    background-color: #1e1e1e;
    opacity: 0;
    transition: max-height 0.25s ease-out, opacity 0.05s;
    overflow: hidden;
    border: none;

}

.item.active {
    max-height: 4em;
    opacity: 1;
    transition: max-height 0.25s ease-in, opacity 0.1s;
    border-bottom: 2px solid #444;

}





/* ===Nav=== */

nav a:hover {
    color: #ffffff;
}




/* ===Main Content=== */
article {
    padding: 0px 20px;
    margin: 0 auto;
    max-width: 1200px;
   /*  background-color: #101112; */
}

article h1 {
    padding-top: 2em;
    font-size: 3em;
    color: #ce537a;
}

article h2 {
    font-size: 2em;
    color: #4f97d7;
}

article h3 {
    font-size: 1.5em;
    color: #369465;
}

article h4 {
    color: #ebb300;
}
article p {
    margin: 0.5em 0em;
}

ol {
    list-style: disc
}


/* ===Project Section Styling=== */
.featured-projects {
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.featured-project {
    border: solid;
    height: 36em;
    width: 35em;
    margin: 30px 10px;
    border-radius: 3px;
    position: relative;
}

.featured-project img {
    width: 100%;    
    display: block;
    height: auto;
    opacity: 1;
    transition: .5s ease;
    backface-visibility: hidden;
}

.featured-projects p {
    height: 20%;
    padding: 20px;
}

.button-group {
    margin: 20px 10px;
    position: absolute;
    bottom: 0%;
}

.featured-projects button:disabled {
    opacity: 100%;
    background-color: #1C1E20;
    padding: 10px 20px;
    color: #ce537a;
    border: #ce537a solid;
    margin: 0px 5px;
    border-radius: 3px;
}

.other-projects {
    font-size: 1.125em
}


.img-container {
    display: block;
    position: relative;
}

.img-middle {
    transition: .5s ease;
    opacity: 0;
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: #ce537a;
}

.img-text{
    color: white;
    font-size: 2em;
    padding: 16px, 32px;
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    text-align: center;
    opacity: 1;
}

.img-container:hover .img-middle {
    opacity: 0.9;
}

/* ===Flex content=== */

.subsection-box {
    margin-top: 0px;
}
.highlight-box {
    display: flex;
    justify-content: center;
    margin-top: 0px;
}

.highlight-section {
    flex-basis: 0;
    flex-grow: 1;
}
.flex-row {
    display: flex;
    justify-content: space-between;
}

#contact {
   font-size: 1.125rem;
}

#contact ul {
    list-style: none;
    font-size: 1.5rem;
}
#contact a {
    color: #fff
}


.contact-list i {
    padding-right: 0.5em
}

/* Colors */
.class {
    color: #4f97d7;
    
}
.keyword {
    color: #4f97d7;
}
.class-name {
    color: #ce537a;
    font-weight: bolder;
}
.comment {
    color: #369465;
}


footer {
    border-top: solid;
    margin-top: 50px;
    background-color: #111;
    height: 1em;
    min-height: 3.5em;
    text-align: center;
    padding: 20px;
}

/* ===Media Queries=== */

/* This ensures that the title size is capped to be a minimum of 20px */
@media screen and (max-width: 100em) {
    header {
        font-size: 20px;
    }
}

@media screen and (min-width: 54em) {
        nav {
        height: 2em;
        min-height: 4.25em;
        margin: 0px;
        padding: 0px;
        background-color: #111;
    }
    .menu {
        height: 100%;
        margin: 0px;
        padding: 0px;
        flex-flow: row wrap;
        justify-content: flex-end;
        align-content: center;
        align-items: center;
    }

    nav li {
        display: inline;
        border: none;

    }

    nav a {
        color: #c9c9c9;
        text-decoration: none;
    }
    
    .toggle {
        display: none;
    }
    .item {
        opacity: 1;
        max-height: inherit;
        width: 1px;
        max-width: 10em;
        background-color: inherit;
        order: 1;
        width: auto;
        display: block;
    }
    
    .logo {
        flex: 1;
        order: 0;
        border: none;
        
    }
}

/* Small screens, around phone size */
@media screen and (max-width: 43em) {
    
    /* Stacks the title and tagline directly above / belowo each other*/
    header p {
        padding-left: 0em;
    }
    
    header h1 {
        padding-right: 0em;
    }
    
    
    .highlight-box {
        display: block;
    }
    
    .flex-row {
        display: block;
    }
}