/*
File Name: styles.css
Original Date: 5/7/2019
Updated Date: 6/4/2019
Programmer: Tyler Mullins
*/

* {
    font-family: Verdana, Arial, sans-serif;
    overflow: auto;
}

body {
    background-color: lightsteelblue;
    background-image: url("../images/portland-historical-tours.jpg");
    background-repeat: no-repeat;
    background-size: cover;
}

header {
    height: 10rem;
    padding-left: 1rem;
    border: .1rem solid black;
    margin-bottom: .5rem;
    background-color: aliceblue;
    background-image: url("../images/logo.png");
    background-repeat: no-repeat;
    background-position: right;
    background-size: contain;
    background-origin: content-box;
    padding: .75rem;
}

h1 {
    padding-top: 2.5rem;
    text-align: left;
    font-size: 1.9rem;
}

h2 {
    text-align: center;
    font-size: 1.4rem;
}

h3 {
    text-align: center;
    font-size: 1.1rem;
}

p {
    margin: .5rem;
    margin-bottom: .5rem;
    padding: .5rem;
    padding-bottom: .5rem;
}

nav {
    display: block;
    float: left;
    border: .1rem solid black;
    width: 19%;
    margin-right: .5rem;
    padding-right: .1rem;
    height: 27.7rem;
    background-color: aliceblue;
    text-align: center;
}

nav ul {
    list-style-type: none;
    padding-left: .1rem;
    margin-left: .1rem;
}

nav li {
    padding-bottom: .25rem;
    margin: .1rem;
    font-weight: bold;
    border: .1rem solid black;
    background-color: lightsteelblue;
}

/*
This was a cool effect but I couldn't figure out how to make it 
act like a functional link (or rather, my code didn't pass validation).
Leaving it here for my own reference.

nav li:hover {
    background-color: mediumslateblue;
}


nav li:hover a {
    color: whitesmoke;
}
*/

nav a {
    color: black;
}

nav li:visited a {
    color: darkgrey;
}

a {
    text-decoration-line: none;
}

main {
    border: .1rem solid black;
    width: auto;
    background-color: aliceblue;
    height: 21rem
}

table {
    width: 60%;
    margin: auto;
    border: .1rem solid #3F2860;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

td, th {
    padding: 1rem;
    border: .1rem solid black;
}

tr:nth-of-type(even) {
    background-color: lightsteelblue;
}

caption {
    margin: 1em;
    font-weight: bold;
    font-size: 120%;
}

label {
    float: left;
    display: block;
    width: 12rem;
    padding: .1rem;
    padding-left: 1rem;
    margin-right: 1rem;
    
}

input, textarea {
    display: block;
    margin-bottom: 1rem;
    padding: .1rem;
    margin-left: 14rem;
}

ul {
    list-style-position: inside;
    list-style-type: square;
}

textarea, input {
    width: 20%;
    height: 5%;
    resize: none;
}
    
footer {
    text-align: center;
    font-size: 0.7rem;
    border: .1rem solid black;
    margin-top: .5rem;
    background-color: aliceblue;
    padding: .75rem;
    width: auto;
    height: 4.5rem;
}

#indexmain {
    height: 80rem;
}

#indexnav {
    height: 86.7rem;
}

#comparenav{
    height: 46.7rem;
}

#comparemain {
    height: 40rem;
}

#contactmain {
    height: 68rem;
}

#contactnav {
    height: 74.7rem;
}

#tourmain {
    height: 58rem;
}

#tournav {
    height: 64.7rem;
}

#tourimage {
    width: 90%;
    margin-left: 2.5rem;
}

#tourquicklinks {
    text-align: center;
    padding-top: 1rem;
    font-size: .8rem;
}

#tourquicklinks a:link, a:visited {
    color:black;
}

#tourquicklinks a:hover{
    color:black;
    text-decoration: underline;
}

#tourquicklinks a:active{
    color:darkgrey;
    text-decoration: underline;
}

#tourquicklinks {
    text-align: center;
}

.centersmall{
    text-align: center;
    font-size: .9rem;
    padding: 0;
    padding-top: .2rem;
    margin: 0;
}

.centersmall a:link, a:visited {
    color:black;
}

.centersmall a:hover{
    color:black;
    text-decoration: underline;
}

.centersmall a:active{
    color:darkgrey;
    text-decoration: underline;
    }

@media only screen and (max-width: 1024px) {
    
    header {
        
        padding-bottom: .1rem;
        margin: 0;
        }
    h1 {
        margin-top: 2rem;
        font-size: 1.5rem;
    }
    
    h2 {
        margin: 0;
        padding: 0;
        margin-bottom: 1rem;
        font-size: 1.25rem;
    }
    
    nav {
        float: none;
        width: auto;
        height: auto;
        padding: 0;
        margin: 0;
        border-bottom: none;
        border-top: none;
        text-align: left;
     }
    
    nav ul {
        padding: 0;
        padding-left: 1rem;
        margin: 0;
    }
    
    nav li {
        font-size: .9rem;
        display: inline-block;
        border: none;
        background-color: aliceblue;
    }
    
    nav li:hover {
        background-color: aliceblue;
    }
    
    nav li:hover a {
        color: darkblue;
    }
    
    nav a {
        color: steelblue;
    }
    
    main {
        font-size: .9em;
        padding: 0;
        margin: 0;
        float: none;
        width: auto;
        border-bottom: none;
        border-top: none;
    }
    
    footer {
        margin: 0;
        padding-top: .1rem;
        padding-bottom: .1rem;
        border-top: .1rem solid black;
    }
    
    #indexmain {
        height: 72rem;
    }

    #indexnav {
        height: auto;
    }
    
    #comparenav {
        height:auto;
    }
    
    #comparemain {
        height: 39rem;
    }

    #contactmain {
        height: 40rem;
    }

    #contactnav {
        height: auto;
    }

    #tourmain {
        height: 60rem;
    }

    #tournav {
        height: auto;
    }
    
    .centersmall{
    font-size: .7rem;
    }
    
    .desktoponly {
        
    display: none;  
    }
}

@media only all and (max-width: 768px) {
    
    header {
        padding: 0;
        padding-bottom: .1rem;
        margin: 0;
    }
    
    h1 {
        margin: 0;
        margin-bottom: 1.5rem;
        margin-top: 1.5rem;
        font-size: 1.3rem;
        padding-left: 1rem;
        max-width: 75%;
    }
    
    h2 {
        margin: 0;
        padding: 0;
        padding-top: .5rem;
        margin-bottom: 1rem;
        font-size: 1.1rem;
    }
    
    nav {
        float: none;
        width: auto;
        padding: 0;
        margin: 0;
     }
    
    nav ul {
        padding-left: 0;
        margin-left: 0;
    }
    
    nav li {
        font-size: .8rem;
        display: block;
        border-bottom: .1rem solid black;
        background-color: lightsteelblue;
        padding-left: 1rem;
    }
    
    nav li:hover {
        background-color: mediumslateblue;
}

    nav li:hover a {
        color: whitesmoke;
    }

    nav a {
        color: black;
    }
    
    main {
        font-size: .8rem;
        padding: 0;
        margin: 0;
        float: none;
        width: auto;
    }
    
    table {
        width: 33%;
    }   

    td, th {
        padding: .25rem;
        border: .1rem solid black;
    }
    
    #indexmain {
        height: 65rem;
    }

    #indexnav {
        height: auto;
    }
    
    #comparenav {
        height:auto;
    }
    
    #comparemain {
        height: 30rem;
    }

    #contactmain {
        height: 62rem;
    }

    #contactnav {
        height: auto;
    }

    #tourmain {
        height: 49rem;
    }

    #tournav {
        height: auto;
    }
    
    .centersmall{
    font-size: .7rem;
    }
    
    .desktoponly {
    display: none;  
    }
}