@font-face {
    font-family: 'lovefont';
    src: url('../font/CloisterBlack.ttf');
}


/*
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
*/
/*
    Created on : 14-apr-2017, 11.42.58
    Author     : luigi
*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, font, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td {outline: none !important;
}
html{
  background:#fff;
}
body{
  font-family: 'Ubuntu', 'Arial';
  font-size: 16pt;
}



.side-nav, .admin-actions {
  list-style-type: none;
}

.admin-actions li {
  float: left;
}

.side-nav li {
  float: right;
  padding-top: 2em;
  padding-right: 2em;
}

html{
    height:100%;/* make sure it is at least as tall as the viewport */
    position:relative;
}
body{
    height:100%; /* force the BODY element to match the height of the HTML element */
    color: #89cff0;
     text-shadow: 1px 1px #5085bc;
}

.logo {
  background: #fff;
  width: 70px;
}

.content .ppage {
  padding-top: 4em;
  padding-bottom: 6em;
}

.home {
  font-size: 2em;
  text-align: center;
  line-height: 2.5em;
  text-shadow: 2px 2px 1px #5085bc, -1px -1px #468fa2;
}

.lovefont {
  font-family: 'lovefont', 'Roboto', 'sans-serif';
}

.presentazione {
  text-align: center;
  line-height: 2.5em;
  padding-top:100px;
}

.rownames {
  font-size: 3em;
  line-height: 2em;
}

@media only screen and (max-width: 900px) {
  .home {
    font-size: 1.3em;
    line-height: 1.6em;
     text-shadow: 1px 1px #5085bc;
  }

  .rownames {
    font-size: 1.8em;
    line-height: 1.8em;
  }
}

.home em {
  font-family: 'Roman', 'sans-serif';
}

#cover {
  position: fixed;
  width: 70vw;
  padding-top: 15vh;
  left: 15vw;
  z-index: 2;
  background: url('../img/castello.png');
  height: 70vh;
  top: 0;
  left: 0;
  background-position: top;
  background-attachment: fixed;
  background-size: contain;
  opacity: 0.7;
  background-repeat: no-repeat;
  transition-timing-function: ease-in-out;
}

.btn {
  position: relative;
}

.nav > li > a,
.btn-primary {
  background-color: rgba(80,133,188);
  padding: 0.3em;
  
  text-shadow: 1px 1px #5085bc;
}

.btn-primary:focus, .btn-primary:hover,
.nav > li > a:focus, .nav > li > a:hover {
  background-color: #ce96ef;
}

.btn-c2a {
  font-size: 1.5em;
}

#castello {
  position: fixed;
  width: 70vw;
  height: 70vh;
  top: 15vh;
  left: 15vw;
  perspective: 800px;
}

#castello:hover #cover {
    animation-name: castlemove;
    animation-duration: 4s;
    animation-iteration-count: 1;
    animation-timing-function: ease-out;
    animation-fill-mode: forwards;
}

@keyframes castlemove {
  from {transform: rotate3d(0,0,0,0deg) translateX(0px) }
  to {
    transform: rotate3d(0,1,0,-90deg) translateX(-2000px);
  }
}

@keyframes pagemove {
  from {transform:scale(1)}
  to {
    transform: scale(0);
  }
}

footer {
  position: fixed;
  bottom: 0;
  background-color: #5085bc;
  background-color: rgba(80,133,188,0.8);
  width: 100%;
  color: white;
  font-size: 0.7em;
  padding-top: 1em;
  z-index: 4;
}

footer a, footer a:hover {
  color: #d5e9ff;
}

#nav {
  background-color: white;
  height: 90px;
}

.navbar-toggle {
  background-color: #5085bc;
  border: 1px solid #666;
}

.navbar-toggle .icon-bar {
  background-color: #666;
  background-color: #ce96ef;
}

.navbar-right{
  text-align: right;
  background-color: #ce96ef;
}

.wrapper .products {
    padding: 1em;
    clear: both;
    margin: 1em;
    position: relative;
    top: 3em;
    border: 1px solid #ce96ef;
}

.products h3,.products legend {
    width: 100%;
    background-color: #ce96ef;
    color: #fff;
    padding: 0.5em;
    text-align: center;
}

.products h4 {
  color: #ce96ef;
}

.products.index tr {
    border-bottom: 1px dotted #5085bc;
    padding-bottom: 0.2em;
    padding-top: 0.8em;
}

.products.index table {
    width: 100%;
}

.product-list div {
    display: inline-block;
    border: 0.1px solid #5085bc;
    padding: 0.2px;
    margin: 0.4px;
    color: #333;    
}

.product-list div span {
  color: #5085bc;    
}

.products label {
  display: block;
}

.products button {
    background-color: #5085bc;
    color: #fff;
}