:root {
    box-sizing: border-box;
}

*, ::before, ::after {
    box-sizing: inherit;
} 

html, body {
    margin: 0;
    padding: 0;
}

body {    
    background: #006 url(../images/pattern/wpcontact.jpg);
    color: white;
    font-family: serif; 
}

#js_warning {
    background-color: #003;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid white;
}

#js_warning p {
    text-align: center;
    font-size: 1.2rem;
    line-height: 1.5;
    letter-spacing: .1em;
}

.js #js_warning {
    /* spacer */
    visibility: hidden;
}

#container  {   
    width: 504px;
    margin: 0 auto;
}

#displayTitle {
    letter-spacing: 0.6em;
    font-size: 1.6rem;
    line-height: 1.2;
    font-weight: normal;
    text-align: center;
    color: aqua;
}

#rel {  /* positioning context around image */
    position: relative;
}

#imgEmail {
    position: absolute;
    top: 200px;
    left: 80px;
    width: 380px;
    height: 40px;
}

#imgEmail:hover {
    background-color: rgba(255, 255, 255, 0.22);
    border-radius: 20px;
}

a {
    color: white; 
    text-decoration: none;
    outline: none;
}

a:hover { 
    text-decoration: underline;
}

#nav img {
    border: 1px solid aqua;
}

#nav {
    margin-top: .5rem;
    font-family: sans-serif;
    font-weight: bold;
}

.sub-nav {
    display: inline-block;
    text-align: center;
}

.sub-nav.L {
    margin: 0 10px 0 28%;
}

.sub-nav.R {
    margin: 0;
    margin-left: 10px;
}

@media screen and (max-width: 504px) {

    #container {
        width: 100%;
    }

    #main_image {
        width: 100%;
    }
    
    #js_warning p {
        width: 100%;
        font-size: 13px;
    }

    #displayTitle {
        font-size: 1.2rem;
    }

    .sub-nav.L, .sub-nav.R {
        margin: 0 10px;
    }
    
    .sub-nav.L {
        margin-left: 90px;  
    }
        
    #imgEmail {
        display: none;
    }
}
