﻿/* CSS for Tom Smith Sound */

* {
    box-sizing: border-box;
}

body {
    background: rgb(255, 255, 255);
    font-family: "Work Sans", "Calibri", "Verdana", sans-serif;
    color: rgb(0, 19, 56);
}

/* Header */

header {
    background-image: url("../img/tss-header-bg-top.png");
    background-position: center;
    background-size: auto 100%;
    background-repeat: repeat-x;
    height: 5.5rem;
    width: 100%;
    min-width: 32rem;
}

#header_name {
    height: 3rem;
    max-width: 60rem;
    padding-top: 0.5rem;
    padding-left: 1rem;
    margin: 0 auto;
}

#header_job {
    height: 3.5rem;
    max-width: 60rem;
    padding-top: 0.5rem;
    padding-left: 1.5rem;
    margin: 0 auto;
}

/* Nav */

nav {
    background-image: url("../img/tss-header-bg-nav.png");
    background-position: center;
    background-repeat: repeat-x;
    background-size: auto 100%;
    height: 2.5rem;
    min-width: 32rem;
    padding: 0.8rem 0rem;
    position: sticky;
    top: 0;
    box-shadow: 0rem 0.2rem 0.2rem rgba(0, 11, 32, 0.2);
}

nav ul {
    max-width: 60rem;
    padding-left: 0.4rem;
    margin: 0 auto;
}

nav li {
    display: inline-block;
    width: 8rem;
    margin-right: -0.25rem;
    text-align: center;
}

nav li a {
    background-color: rgba(255, 255, 255, 0.85);
    color: rgb(18, 68, 231);
    text-decoration: none;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-weight: 450;
}

nav li a:hover {
    background-color: rgb(255, 255, 255);
    color: rgb(18, 68, 231);
    font-weight: 550;
}

nav li a:active {
    background-color: rgb(18, 68, 231);
    color: rgb(255, 255, 255);
    font-weight: 550;
}

/* Main */

main, footer {
    max-width: 60rem;
    padding: 2rem 1rem 1rem;
    margin: 0 auto;
}

section {
    margin-bottom: 2rem;
}

/* Footer */

footer {
    font-size: 0.875rem;
    text-align: center;
}

/* Text & Links */

h1 {
    font-size: 2.5rem;
    font-weight: 600;
    color: rgb(255, 255, 255);
}

h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: rgb(255, 255, 255);

}

h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: rgb(55, 96, 233);
    margin-bottom: 1.2rem;
}

h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 1rem;
    margin-bottom: 0.8rem;
}

p {
    line-height: 1.2;
    margin-bottom: 0.8rem;
}

a {
    color: rgb(55, 96, 233);
    text-decoration: none;
}

    a:hover {
        color: rgb(18, 68, 231);
    }

    a:active {
        color: rgb(182, 253, 30);
    }

em {
    font-style: italic;
}

/* Tables */

table {
    width: 100%
}

thead {
    font-size: 1.1rem;
    font-weight: 700;
}

tr {
    border-bottom: 0.1rem solid rgb(255, 255, 255);
}

th, td {
    padding: 0.4rem 1rem 0.4rem 0rem;
    text-align: left;
}

/* Recent Projects */

.proj_container {
    margin-bottom: 2rem;
}

.proj_img {
    display: inline-block;
    max-width: 50%;
}

.proj_info {
    display: inline-block;
    vertical-align: top;
    max-width: 48%;
    padding-top: 0.8rem;
    padding-left: 2rem;
}

.proj_quote {
    padding-top: 1rem;
    padding-left: 1rem;
    font-style: italic;
}

.proj_img img {
    width: 100%;
    height: auto;
    box-shadow: 0.2rem 0.2rem 0.4rem rgba(0, 11, 32, 0.2);
}

.proj_img figcaption {
    font-size: 0.8rem;
    font-style: italic;
    text-align: right;
}

/* Experience */

.xp_txt {
    display: inline-block;
    max-width: 95%;
    padding-right: 5%;
}

.xp_bullets {
    display: inline-block;
    vertical-align: top;
    max-width: 20%;
}

.xp_bullets ul {
    padding-left: 2rem;
    list-style-type: circle;
}

/* Media queries */

    /* Narrow windows */

@media only screen and (max-width: 720px) {
    .proj_desc, .proj_img, .proj_info, .xp_txt, .xp_bullets {
        max-width: 100%;
    }

    .proj_img {
        padding-bottom: 1rem;
    }

    .proj_info {
        padding-top: 0;
        padding-left: 0;
    }

    .desktop_only {
        display: none;
    }
}

    /* Mobile */

@media only screen and (max-width: 991px) and (orientation: portrait) {
    header, nav {
        min-width: inherit;
    }
    
    nav li {
        width: 7rem;
    }

    .proj_desc, .proj_img, .proj_info, .xp_txt, .xp_bullets {
        max-width: 100%;
    }

    .proj_img {
        padding-bottom: 1rem;
    }

    .proj_info {
        padding-top: 0;
        padding-left: 0;
    }

    .desktop_only {
        display: none;
    }
}