﻿/* ---- Desktop ----------------------- */
@media screen and (min-width: 980px) {
  html, body {
    margin: 0 0 10px;
    min-height: 100%;
    padding: 0;
    /* 1em = 12pt = 16px = 100% */
    font-size: 16px;
    font-family: sans-serif;
  }

  header {
    display: block;
    text-align: center;
    margin-top: 10px;
  }
  
  #wrapper {
    margin: 15px auto 10px;
    min-height: 700px;
    width: 85%;
    padding: 20px;
  }

  nav {
    float: left;
    width: 160px;
    margin-top: 80px;
    font-size: 18px;
  }

  nav ul {
    margin: 0;
    margin-right: 20px;
    padding-left: 20px;
  }

  nav li {
    margin-bottom: 30px;
    list-style-type: none;
  }

  nav a {
    display: block;
  }

  nav a:hover, nav li a:focus, nav li a:active {
  }

  article {
    margin-left: 160px;
    margin-right: 20px;
    text-align: justify;
    display: block;
  }

  footer {
    text-align: center;
    display: block;
    color: white;
    font-size: 12px;
    letter-spacing: 2px;
    text-shadow: 0 0 5px black;
  }

  #viewport-width::before {
    content: "Desktop "
  }

}

/* ---- Tablet ----------------------- */
@media screen and (min-width: 768px) and (max-width: 979px) {
  html, body {
    margin: 0 0 10px;
    min-height: 100%;
    padding: 0;
    font-size: 16px;
    font-family: sans-serif;
  }

  header {
    display: block;
    text-align: center;
    margin-top: 10px;
  }
  
  #wrapper {
    margin: 15px auto 10px;
    min-height: 700px;
    width: 85%;
    padding: 20px;
  }

  nav {
    float: left;
    width: 160px;
    margin-top: 80px;
    font-size: 18px;
  }

  nav ul {
    margin: 0;
    margin-right: 20px;
    padding-left: 20px;
  }

  nav li {
    margin-bottom: 30px;
    list-style-type: none;
  }

  nav a {
    display: block;
  }

  nav a:hover, nav li a:focus, nav li a:active {
  }

  article {
    margin-left: 160px;
    margin-right: 20px;
    text-align: justify;
    display: block;
  }

  footer {
    text-align: center;
    display: block;
    color: white;
    font-size: 12px;
    letter-spacing: 2px;
    text-shadow: 0 0 5px black;
  }

  #viewport-width::before {
    content: "Tablet "
  }
      
  /* Hide unimportant elements */ 
  .hidden-tablet {
    display: none;
    visibility: hidden;
  }
}

/* ---- Phone ----------------------- */
@media screen and (max-width: 767px) {
  html, body {
    margin: 0 0 10px;
    min-height: 100%;
    padding: 0;
    font-size: 16px;
    font-family: sans-serif;
  }

  header {
    display: block;
    text-align: center;
    margin-top: 10px;
  }
  
  #wrapper {
    margin: 15px auto 10px;
    min-height: 700px;
    width: 85%;
    padding: 20px;
  }

  nav {
    float: none;
    display: block; 
    width: 160px;
    width: auto;
    margin-top: 0px;
    font-size: 18px;
  }

  nav ul {
    margin: 0;
    margin-right: 20px;
    padding-left: 20px;
  }

  nav li {
    margin-bottom: 30px;
    margin-bottom: 10px;
    list-style-type: none;
  }

  nav a {
    display: block;
  }

  nav a:hover, nav li a:focus, nav li a:active {
  }

  article {
    float: none;
    display: block; 
    width: auto;
    margin-left: 0px;
    margin-right: 0px;
    text-align: justify;
  }

  footer {
    text-align: center;
    display: block;
    color: white;
    font-size: 12px;
    letter-spacing: 2px;
    text-shadow: 0 0 5px black;
  }

  #viewport-width::before {
    content: "Phone "
  }
     
  /* Resolve tables into lines on very small device    
  article table, article caption, article colgroup, article col, article thead, article tbody, article tfoot, article tr, article th, article td { 
    display: block 
  }
*/

  /* Hide unimportant elements */ 
  .hidden-phone, .hidden-tablet {
    display: none;
    visibility: hidden;
  }
}

/* ---- all ----------------------- */
html, body {
  scrollbar-face-color: #EFC629;
  scrollbar-shadow-color: #c0c0c0;
  scrollbar-highlight-color: #ffc0c0; 
  scrollbar-3dlight-color: #ffffff;
  scrollbar-darkshadow-color: #333333; 
  scrollbar-track-color: #ffeedd; 
  scrollbar-arrow-color: #ffffff; 
  scrollbar-bar-color: #ff9900;

  #tel { white-space:nowrap; }
}

#background {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;

    background: url("images/gradient-bg.svg"), url("images/gradient-bg.png") no-repeat center center fixed;

    background-size: cover;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;

    background-image: -moz-linear-gradient(top left, rgba(255,0,0,0.9), rgba(255,165,0,0.9), rgba(255,255,0,1), rgba(0,128,0,0.9), rgba(0,0,255,0.9), rgba(148,0,211,0.9));
}

#wrapper {
	filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#99E6E664,endColorstr=#99E6E664);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.6);
    -moz-box-shadow: 0 0 15px rgba(0, 0, 0, 0.6);
    -webkit-box-shadow: 0 0 15px rgba(0, 0, 0, 0.6);

    background-image: url("images/wrapper.png")\0/;
    background-color: rgba(230, 230, 100, 0.6);
}

header img {
    box-shadow: none;
    -moz-box-shadow: none;
    -webkit-box-shadow: none;
}

nav a {
    background: rgba(255,255,0,0.5);
}

nav a:hover, nav li a:focus, nav li a:active {
	background: rgba(255,128,0,0.3);
}

table {
    border-collapse: collapse;
}

th, td {
/*
    padding: 4px;
*/    
    text-align: left;
}

th {
    color: navy;
}

table.grid th, table.grid td {
    border: 1px solid black;
}

li {
    color: navy;
}

li.content {
    color: navy;
    text-align: center;
    box-shadow: 0 0 5px gray;
    -moz-box-shadow: 0 0 5px gray;
    -webkit-box-shadow: 0 0 5px gray;
}

li > * {
    color: black;
}

h1, h2, h3, h4, h5, h6 {
    color: navy;
}

a {
    color: navy;
    text-decoration: none;
}

a:link    { font-weight:bold; color:navy;   text-decoration:none;      }
a:visited { font-weight:bold; color:green;  text-decoration:none;      }
a:focus   { font-weight:bold; color:teal;   text-decoration:underline; }
a:hover   { font-weight:bold; color:teal;   text-decoration:none;      }
a:active  { font-weight:bold; color:purple; text-decoration:underline; }


img {
/*
    box-shadow: 0 0 5px black;
    -moz-box-shadow: 0 0 5px black;
    -webkit-box-shadow: 0 0 5px black;
*/    
}

.img-responsive {
    display: block;
    max-width: 100%;
    height: auto;
}

.small {
    font-size: 12px;
}
