@import url('https://fonts.googleapis.com/css?family=Open+Sans');

body {
    font-family: 'Open Sans', sans-serif;
}

body *, body a, table tr th, table tr td, table tr td input {
    font-size: 17px !important;
}

body a {
    color:#ff0066;
}
body a:hover {
    color:#ff6699;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Open Sans', sans-serif;
}

h1 {
    font-size: 22px !important;
}

#container {
    height: auto;
    overflow: auto;
}

#header {
    text-align: center;
    padding: 10px;
    margin:0px;
    background-color: #99c24b;
    color:#ffffff;
    height: auto;
    overflow: auto;
}
#header h1 {
    color:#ffffff;
}

#hiddenSearch {
    background-color: #eeeeee;
    height: auto;
    border: 1px solid #2d2d2d;
    padding: 2%;
}

#hiddenSearch input[type='submit'] {
    background-color: #8cb8ff;
    border-color: #8cb8ff;
    color:#000;
}

#footer {
    position: fixed;
    width: 100%;
    bottom: 0px;
    padding: 5px;
    background-color: #99c24b;
    text-align: center;
    font-size: 10px;
    color:#ffffff;
}

nav {
    background-color: #2d2d2d;
}

nav ul {
    list-style: none;
    width: auto;
    margin:0px;
    padding: 0px;
}

nav ul li {
    text-align: center;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    float: left;
    width:33%;
    padding:0.5%;
    background-color: #2d2d2d;
    border-bottom: 1px solid #000;
    color:#fff;
}

nav ul li:hover {
    -webkit-transition: all 200ms linear;
    -moz-transition: all 200ms linear;
    -o-transition: all 200ms linear;
    -ms-transition: all 200ms linear;
    transition: all 200ms linear;
    background-color: green;
    border-bottom: 1px solid green;
}

nav ul li a {
    display: block;
    color:#fff;
}

nav ul li:hover a {
    color: #fff;
}

nav ul li.active {
    background-color: green;
    border-bottom: 1px solid green;
}

nav ul li.active a {
    color:#fff;
}

#main {
    float:left;
    width: 100%;
    padding: 20px;
    height: auto;
    overflow: auto;
    margin-bottom: 20px;
}

#centrale {
    float:left;
    padding: 1%;
    padding-bottom: 50px;
}

#laterale {
    width: 27%;
    float: left;
    padding: 1%;
    padding-left: 2%;
    border-left: 1px solid #ccc;
    min-height: 100vw;
    padding-bottom: 50px;
}

#imgLogged {
    position: fixed;
    bottom: 40px;
    left: 15px;
    width: 65px;
    height: 65px;
}

button {
    width: 100%;
    background-color: #5a98fc;
    color:#fff;
    font-family: 'Inconsolata', sans-serif;
}
button:hover {
    background-color: #5a98fc;
}

input {
    font-family: 'Inconsolata', sans-serif;
}

input[type='submit'] {
    background-color: #666666;
    border:1px solid #aaa;
    width: 100%;
    padding: 5px;
    color:#fff;
    -webkit-transition: all 100ms linear;
    -moz-transition: all 100ms linear;
    -o-transition: all 100ms linear;
    -ms-transition: all 100ms linear;
    transition: all 100ms linear;
    font-family: 'Inconsolata', sans-serif;
}

input[type='submit']:hover {
    background-color: #2f2f2f;
    color: #fff;
}

input[type='checkbox'] {
    margin: 0px;
    margin-right: 10px;
}

button:hover, button:active, button:active:hover {
    background-color: #666666;
    color: #fff;
}

.message {
    position: relative;
    width: 100%;
    border-radius: 4px;
    height: auto;
}

.message:before {
    top:-2px;
}

.message.success {
    background-color: #33cc33;
    content: "v" !important;
    color:#000;
}

.message.error {
    background-color: #9e1111 !important;
    color:#fff;
}

table tr th {
    color: #fff;
    border-bottom: 1px solid #fff;
    border-top: 1px solid #666666;
    background-color: #666666;
    border-right: 1px solid #666666;
    vertical-align: middle;
}

table tr th.ultima {
    border-bottom: 1px solid #666666;
}

table tr td {
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    border-top: 1px solid #ddd;
    vertical-align: middle;
}

table tr:hover td {
    background-color: #eee;
    -webkit-transition: all 100ms linear;
    -moz-transition: all 100ms linear;
    -o-transition: all 100ms linear;
    -ms-transition: all 100ms linear;
    transition: all 100ms linear;
}


table tr.trRed td {
    background-color: #ffcccc;
    border: 1px solid red;
}
table td.trRed {
    background-color: #ffcccc;
    border: 1px solid red;
}
table tr td.trGrey {
    background-color: #ddd;
    border: 1px solid #ccc;
}
table tr.opacity td {
    opacity: 0.5;
}

li.prev, li.next, li.first, li.last {
    /*width: 15%;
    float:left;*/
    color:#cc0000;
}

li.prev a, li.next a, li.first a, li.last a {
    color:#cc0000;
}

table input[type="number"] {
    margin:0px !important;
}

::-webkit-input-placeholder { /* WebKit, Blink, Edge */
    color:    #aaa;
}
:-moz-placeholder { /* Mozilla Firefox 4 to 18 */
    color:    #aaa;
    opacity:  1;
}
::-moz-placeholder { /* Mozilla Firefox 19+ */
    color:    #aaa;
    opacity:  1;
}
:-ms-input-placeholder { /* Internet Explorer 10-11 */
    color:    #aaa;
}

/* MEDIA QUERIES */

@media screen and (min-width: 0px) {
    h1, .sh1 { font-size:20px; }
    h2, .sh2 { font-size:17px; }
    h3, .sh3 { font-size:15px; }
    h4, .sh4 { font-size:13px; }
    h5, .sh5 { font-size:11px; }
    nav ul li { padding: 2%; }
    #centrale { width:100%; }
    .mediaWidth { width: 100%; }
    #laterale { width: 100%; border-left: none; padding-left: 1%; border-top: 1px solid #ccc; }
}

/* Schermi solitamente di 480px */
@media screen and (min-width: 440px) {
    h1, .sh1 { font-size:23px; }
    h2, .sh2 { font-size:20px; }
    h3, .sh3 { font-size:17px; }
    h4, .sh4 { font-size:15px; }
    h5, .sh5 { font-size:13px; }
    nav ul li { padding: 2%; }
    #centrale { width:100%; }
    .mediaWidth { width: 100%; }
    #laterale { width: 100%; border-left: none; padding-left: 1%; border-top: 1px solid #ccc; }
}

/* Schermi solitamente di 600px */
@media screen and (min-width: 560px) {
    h1, .sh1 { font-size:23px; }
    h2, .sh2 { font-size:20px; }
    h3, .sh3 { font-size:17px; }
    h4, .sh4 { font-size:15px; }
    h5, .sh5 { font-size:13px; }
    nav ul li { padding: 2%; }
    #centrale { width:100%; }
    .mediaWidth { width: 100%; }
    #laterale { width: 100%; border-left: none; padding-left: 1%; border-top: 1px solid #ccc; }
}

/* Schermi solitamente di 768px */
@media screen and (min-width: 720px) {
    h1, .sh1 { font-size:23px; }
    h2, .sh2 { font-size:20px; }
    h3, .sh3 { font-size:17px; }
    h4, .sh4 { font-size:15px; }
    h5, .sh5 { font-size:13px; }
    nav ul li { padding: 1%; }
    #centrale { width:100%; }
    .mediaWidth { width: 100%; }
    #laterale { width: 100%; border-left: none; padding-left: 1%; border-top: 1px solid #ccc; }
}

/* Schermi solitamente di 1024px o superiori */
@media screen and (min-width: 960px) {
    h1, .sh1 { font-size:30px; }
    h2, .sh2 { font-size:23px; }
    h3, .sh3 { font-size:20px; }
    h4, .sh4 { font-size:17px; }
    h5, .sh5 { font-size:15px; }
    nav ul li { padding: 0.5%; }
    #centrale { width:60%; }
    .mediaWidth { width: 50% !important; margin-left: 25% !important; }
    #laterale { width: 40%; border-left: 1px solid #ccc; padding-left: 2%; border-top: none; }
}

@media screen and (min-width: 1400px) {
    h1, .sh1 { font-size:30px; }
    h2, .sh2 { font-size:25px; }
    h3, .sh3 { font-size:20px; }
    h4, .sh4 { font-size:17px; }
    h5, .sh5 { font-size:15px; }
    nav ul li { padding: 0.5%; }
    #centrale { width:60%; }
    .mediaWidth { width: 50% !important; margin-left: 25% !important; }
    #laterale { width: 40%; border-left: 1px solid #ccc; padding-left: 2%; border-top: none; }
}
