/*
Theme Name: SwissDiving
Author: Gabriel Cisarovsky
Version: 1.0
*/


html {
    background-color: black;
    padding: 0;
    margin: 0;
}

body {
    font-family: Avenir Next, sans-serif;
    padding: 0;
    margin: 0;
    background-color:black;
    max-width: 100%;
    color: #ebebeb;
}

img.text {
    max-width: 100%;
    height: auto;
}

img {
    max-width: 100%; /* does not allow pictures to go outside the div container */
}




/* Header */

header.header {
    background-image: url(images/IMG_3494.jpg);
    background-size: cover;
    background-position: center center;
    margin: 0 auto;
}

h1.site-title {
    color: #FFF;
    padding: 30px 10px 10px 20px;
}

a.site-title {
    text-decoration: none;
    color: inherit;
}





/* Main container */

div.container {
    max-width: 800px; /* if I only used "width" the text would not wrap when I reduce the window size nelow the value I gave */
    padding: 20px;
    margin: 0 auto;
    border: 2px sold #80aab7;
    background-color: black;
}




/* Footer */

footer.footer p {
    background-color: black;
    color: #FFF;
    font-size: 70%;
    margin-top: 30px;
    padding-top: 10px;
    border-top: 1px solid #ebebeb;
    text-align: right; /* why is this not working? */
    clear: both;
}





/* Other containers */

div.body {
    padding: 0 10px 0 10px;
}

div.body p, div.body ol, div.body ul {
    line-height: 1.5em;
    font-size: 90%;
    text-align: justify;
}

h2.dive-site {
    margin-bottom: -5px;
    font-family: Avenir Next;
    font-variant: small-caps;
}

a.link {
    text-decoration: none;
    color: #DEB887;
}

a.stealth {
    text-decoration: none;
    color: #ebebeb;
}

@media screen and (max-width: 700px) {
    
    div.equal {
        display: block;
    }
    
    div.lake-map {
        width: 100%;
        margin: 10px auto;
        padding-right: 10px;      
    }
    
    div.dive-site {
        width: 100%;
    }
    
    ol.dive-site li {
        text-align: center;
    }
    
}





/* Main species and dive site page: Image animation: when I hover over it, a text is shown and I can click on the image as a link */

div.center {
    width: 100%;
    padding: 10px 0 10px 0;  
}

ul.image-list {
    list-style-type: none;
    display: table;
    margin: 0 auto;
    padding: 0;
}

ul.image-list li {
    display: block;
    width: 150px;
    height: 150px;
    margin: 0 10px 10px 0;
    position: relative; 
    border: 1px solid white;
    float: left;
}

ul.image-list li:hover span.image-content {
    opacity: 1;
}

span.image-content {
    background: rgba(0,0,0,0.5);
    color: white;
    cursor: pointer;
    display: table;
    height: 150px;
    width: 150px;
    left: 0;
    position: absolute;
    top: 0;
    opacity: 1;
}

span.image-content span {
    display: table-cell;
    text-align: center;
    vertical-align: middle;
}

img.switzerland {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
}

div.first {
    width: 25%;
    float: left;
}




/* Clearfix */
/* add this class to whatever parent element containing floating divices */

.clearfix:after {
    content: "."; /* adds a . */
    display: block;
    height: 0;
    clear: both; /* clears the . */
    visibility: hidden; /* hides the . */
}

.clearfix {display: inline-block;}

/*Hide from IE-mac */
/* makes sure the clearfix works on all web browsers */
*html .clearfix {height: 1%;}
.clearfix {display: block;}
/* End hide from IE-mac */
/* @end */