html {
    background-color: #FFCB9C;
    font-family: 'Roboto', sans-serif;
    background: url('../img/bg2.jpg');
    background-size: cover;
    background-attachment: fixed;
}

#home {
    max-width: 1366px;
    margin: 0 auto;
}

h1 {
    text-align: center;
    font-size: 40px;
    color: white;
    text-transform: uppercase;
}

h2 {
    text-align: center;
    color: white;
    font-size: 30px;
    margin-top: 0px;
}

/* PERIODIC TABLE */



.periodic {
    position: relative;
    top: 100px;
    height: 460px;
    margin-right: -2px;
    text-shadow: none;
    min-width: 1200px;
}

.periodic-row {
    clear: both;
    height: 8%;
}

.cell {
    float: left;
    position: relative;
    width: 5.26%;
    height: 100%;
}

.largeCell2 {
    width: 57.86%
}

.largeCell1 {
    width: 89.42%
}

.element {
    display: block;
    width: 95%;
    height: 96%;
    position: absolute;
    top: 0;
    left: 0;
    right: 2px;
    bottom: 2px;
    box-sizing: border-box;
    box-shadow: 7px 6px 10px rgba(0,0,0,0.2);
    text-align: center;
    cursor: pointer;
    padding: 2px;
    -webkit-transition: 300ms ease;
    transition: 300ms ease;



    -webkit-border-top-right-radius: 10px;
    -webkit-border-bottom-left-radius: 10px;
    -webkit-border-top-left-radius: 1px;
    -webkit-border-bottom-right-radius: 1px;

    -moz-border-radius-topright: 10px;
    -moz-border-radius-bottomleft: 10px;
    -moz-border-top-left-radius: 1px;
    -moz-border-bottom-right-radius: 1px;

    border-top-right-radius: 10px;
    border-bottom-left-radius: 10px;
    border-top-left-radius: 1px;
    border-bottom-right-radius: 1px;

}

.element:hover {
    border-radius:0px;
}

/*
.cell:hover .element {
    -webkit-transform: scale(5,5);
    -ms-transform: scale(5,5);
    transform: scale(5,5);
    z-index: 1;
}

.cell:hover .element .at_details {
    opacity: 1;
}
*/
.cell:hover .element {
}


.at_num,
.at_details,
.at_years{
    position: absolute;
    color: white;
}


.at_num {
    top: 0px;
    font-size: 5px;
    right: 1px;
}

.symbol {
    position: absolute;
    top: 50%;
    left: 0px;
    right: 0px;
    margin-top: -5px;
    font-size: 13px;
    font-weight: bold;
    line-height: 12px;
    height: 13px;
    color: white;
}

.at_details {
    bottom: 1px;
    left: 0px;
    right: 0px;
    font-size: 4px;
    opacity: 0;
    line-height: 4px;
}

.at_smaller {
    font-size: 8px;
    line-height: 8px;
}

.atBig_smaller {
    font-size: 50px;
    line-height: 50px;
}

.at_years {
    top: 0px;
    font-size: 3px;
    left: 1px;
}

.at_ring {
    width: 10px;
    height: 10px;
    border-radius: 10px;
    background: #DAA520;
    position: absolute;
    bottom: 4px;
    left: 4px;
}

.inner_ring {
    width: 4px;
    height: 4px;
    border-radius: 4px;
    background: #307636;
    position: absolute;
    bottom: 3px;
    left: 3px;
}


/************** INIZIO COLORI ***************/ 


.hobbits, .hobbits.elementBig:hover {
    background: linear-gradient(138deg, rgba(63,135,71,1) 0%, rgba(36,105,42,1) 100%);
    border-color: rgba(36,105,42,1);
    color:white;
}
.hobbits:hover {
    background: linear-gradient(138deg, rgba(36,105,42,1) 0%, rgba(63,135,71,1)100%);
}

.men, .men.elementBig:hover {
    background: linear-gradient(138deg,  rgba(171,57,32,1) 0%,rgba(125,47,30,1) 100%);
    border-color: rgba(125,47,30,1);
}
.men:hover {
    background: linear-gradient(138deg, rgba(125,47,30,1)  0%,rgba(171,57,32,1) 100%);
}
.men .inner_ring {
    background: #91331f!important;
}
.halfelves, .halfelves.elementBig:hover {
    background: linear-gradient(138deg, rgba(199,185,26,1) 0%, rgba(156,146,29,1) 100%);
    border-color: rgba(156,146,29,1);
}
.halfelves:hover {
    background: linear-gradient(138deg, rgba(156,146,29,1) 0%, rgba(199,185,26,1) 100%);
}

.elves, .elves.elementBig:hover {
    background: linear-gradient(138deg, rgba(57,76,162,1) 0%, rgba(38,50,106,1) 100%);
    border-color: rgba(38,50,106,1);
}
.elves:hover {
    background: linear-gradient(138deg, rgba(38,50,106,1) 0%, rgba(57,76,162,1) 100%);
}

.dwarves, .dwarves.elementBig:hover {
    background: linear-gradient(138deg, rgba(153,102,50,1) 0%, rgba(101,67,33,1) 100%);
    border-color: rgba(101,67,33,1);
}
.dwarves:hover {
    background: linear-gradient(138deg, rgba(101,67,33,1) 0%, rgba(153,102,50,1) 100%);
}

.trolls, .trolls.elementBig:hover {
    background: linear-gradient(138deg, rgba(17,45,14,1) 0%, rgba(3,8,3,1) 100%);
    border-color: rgba(3,8,3,1);
}
.trolls:hover {
    background: linear-gradient(138deg, rgba(3,8,3,1) 0%, rgba(17,45,14,1) 100%);
}

.orcs, .orcs.elementBig:hover {
    background: linear-gradient(138deg, rgba(20,27,55,1) 0%, rgba(6,9,18,1) 100%);
    border-color: rgba(6,9,18,1);
}
.orcs:hover {
    background: linear-gradient(138deg, rgba(6,9,18,1) 0%, rgba(20,27,55,1) 100%);
}

.smaug, .smaug.elementBig:hover {
    background: black;
    border-color: black;
}
.smaug:hover {
    background: black;
}
.smaug .at_num, .smaug .symbol, .smaug .at_details, .smaug .at_years {
    color: #e8d721;
}

.durinsbane, .durinsbane.elementBig:hover {
    background: black;
    border-color: black;
}
.durinsbane:hover {
    background: black;
}
.durinsbane .at_num, .durinsbane .symbol, .durinsbane .at_details, .durinsbane .at_years {
    color: #e84c4c;
}

.shelob, .shelob.elementBig:hover {
    background: black;
    border-color: black;
}
.shelob:hover {
    background: black;
}
.shelob .at_num, .shelob .symbol, .shelob .at_details, .shelob .at_years {
    color: #90b96d;
}

.sauron, .sauron.elementBig:hover {
    background: black;
    border-color: black;
}
.sauron:hover {
    background: black;
}
.sauron .at_num, .sauron .symbol, .sauron .at_details, .sauron .at_years {
    color: #ff7623;
}
.sauron .inner_ring {
    background: black;
}

.birds, .birds.elementBig:hover {
    background: linear-gradient(138deg, rgba(171,57,32,1) 0%,rgba(125,47,30,1) 100%);
    border-color: rgba(125,47,30,1);
}
.birds:hover {
    background: linear-gradient(138deg, rgba(125,47,30,1) 0%,rgba(171,57,32,1) 100%);
}
.birds .at_num, .birds .symbol, .birds .at_details, .birds .at_years {
    color: #e2d222;
}

.trees, .trees.elementBig:hover {
    background: linear-gradient(138deg, rgba(52,136,61,1) 0%, rgba(26,103,33,1) 100%);
    border-color: rgba(26,103,33,1);
}
.trees:hover {
    background: linear-gradient(138deg, rgba(26,103,33,1)0%, rgba(52,136,61,1) 100%);
}
.trees .at_num, .trees .symbol, .trees .at_details, .trees .at_years {
    color: #d9c91c;
}

.istari, .istari.elementBig:hover {
    background: white;
    border-color: white;
}
.istari:hover {
    background: white;
}
.istari .at_num, .istari .symbol, .istari .at_details {
    color: #141b37;
}
.istari .at_years {
    color: black;
}

.song, .song.elementBig:hover {
    background: white;
    border-color: white;
}
.song:hover {
    background: white;
}
.song .at_num, .song .symbol, .song .at_details, .song .at_years  {
    color: #187400;
}

.beorn, .beorn.elementBig:hover {
    background: linear-gradient(138deg, rgba(126,43,25,1) 0%, rgba(77,30,19,1) 100%);
    border-color: rgba(77,30,19,1);
}
.beorn:hover {
    background: linear-gradient(138deg, rgba(77,30,19,1) 0%, rgba(126,43,25,1) 100%);
}

.mouth, .mouth.elementBig:hover {
    background: linear-gradient(138deg, rgba(97,33,19,1) 0%, rgba(47,19,12,1) 100%);
    border-color: rgba(47,19,12,1);
}
.mouth:hover {
    background: linear-gradient(138deg, rgba(47,19,12,1) 0%, rgba(97,33,19,1) 100%);
}

.barrowwigths, .barrowwigths.elementBig:hover {
    background: linear-gradient(138deg, rgba(54,19,11,1) 0%, rgba(14,6,4,1) 100%);
    border-color: rgba(14,6,4,1);
}
.barrowwigths:hover {
    background: linear-gradient(138deg, rgba(14,6,4,1) 0%, rgba(54,19,11,1) 100%);
}

.tkotd, .tko.elementBig:hover {
    background: linear-gradient(138deg, rgba(54,19,11,1) 0%, rgba(14,6,4,1) 100%);
    border-color: rgba(14,6,4,1);
}
.tkotd:hover {
    background: linear-gradient(138deg, rgba(14,6,4,1) 0%, rgba(54,19,11,1) 100%);
}
.tkotd .at_num, .tkotd .symbol, .tkotd .at_details, .tkotd .at_years {
    color: #8fc75f;
}

.nazgul, .nazgul.elementBig:hover {
    background: black;
    border-color: black;
}
.nazgul:hover {
    background: black;
}

.witchking, .witchking.elementBig:hover {
    background: black;
    border-color: black;
}
.witchking:hover {
    background: black;
}

.gothmog, .gothmog.elementBig:hover {
    background: grey;
    border-color: grey;
}
.gothmog:hover {
    background: grey;
}

.bombadil, .bombadil.elementBig:hover {
    background: white;
    border-color: white;
}
.bombadil:hover {
    background: white;
}
.bombadil .at_num, .bombadil .symbol, .bombadil .at_details, .bombadil .at_years  {
    color:  #2c6099;
}

.goldberry, .goldberry.elementBig:hover {
    background: white;
    border-color: white;
}
.goldberry:hover {
    background: white;
}
.goldberry .at_num, .goldberry .symbol, .goldberry .at_details, .goldberry .at_years  {
    color: #a28539;
}




/************** FINE COLORI ***************/ 



.cell:nth-child(1) .element {
    -webkit-transform-origin: 0 50%;
    -ms-transform-origin: 0 50%;
    transform-origin: 0 50%;
}


.cell:nth-child(19) .element {
    -webkit-transform-origin: 100% 50%;
    -ms-transform-origin: 100% 50%;
    transform-origin: 100% 50%;
}


.periodic-row:nth-child(11) .cell .element {
    -webkit-transform-origin: 50% 100%;
    -ms-transform-origin: 50% 100%;
    transform-origin: 50% 100%;
}



.periodic-row:nth-child(1) .cell:nth-child(1) .element {
    -webkit-transform-origin: 0 0;
    -ms-transform-origin: 0 0;
    transform-origin: 0 0;
}


.periodic-row:nth-child(1) .cell:nth-child(19) .element {
    -webkit-transform-origin: 100% 0;
    -ms-transform-origin: 100% 0;
    transform-origin: 100% 0;
}


.periodic-row:nth-child(11) .cell:nth-child(19) .element {
    -webkit-transform-origin: 100% 100%;
    -ms-transform-origin: 100% 100%;
    transform-origin: 100% 100%;
}

.periodic-row {
    height: 11%;
}



.symbol {
    font-size: 18px;
    margin-top: -11px;
}

.at_num {
    top: 3px;
    right: 4px;
}
.at_years {
    top: 3px;
    left: 4px;
}
.at_details {
    opacity: 1;
    font-size: 7px;
    line-height: 9px;
}

@media (min-width: 992px) {

}

.periodic {
    height: 680px;
}

.at_num,
.at_details
{
    font-size: 10px;
    line-height: 12px;
}
.at_years {
    font-size: 5px;
}

.symbol {
    font-size: 24px;
}
.at_num {
    top: 4px;
    right: 5px;
}
.at_years {
    top: 4px;
    left: 5px;
}
.at_details {
    bottom: 5px;
}



@media (min-width: 1200px) {

}

.periodic {
    height: 800px;
}

.at_num,
.at_details
{
    font-size: 11px;
    line-height: 13px;

}
.at_years {
    font-size: 6px;
    line-height: 6px;
    text-align: left;
}

.symbol {
    font-size: 30px;
}






.lightbox {
    
  text-decoration: none;
  /* Default to hidden */
  display: none;

  /* Overlay entire screen */
  position: fixed;
  z-index: 990;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  
  /* A bit of padding around image */
  padding: 1em;

  /* Translucent background */
  background: rgba(0, 0, 0, 0.8);
}

/* Unhide the lightbox when it's the target */
.lightbox:target {
  display: block;
}

.elementBig {
    z-index: 999;
    display: block;
    width: 500px;
    height: 600px;
    position: relative;
    margin: 100px auto;
    text-align: center;
    -webkit-border-radius: 0px;
    -moz-border-radius: 0px;
    border-radius: 0px;
    border-width: 6px;
    border-style: solid;
}

.elementBig .at_years {
    font-size: 40px;
    line-height: 44px;
    left: 25px;
    top: 22px;
}
.elementBig .at_num {
    font-size: 40px;
    line-height: 40px;
    right: 25px;
    top: 25px;
}

.elementBig .at_ring {
    width: 50px;
    height: 50px;
    border-radius: 50px;
    background: #DAA520;
    position: absolute;
    bottom: 25px;
    left: 25px;
}

.elementBig .inner_ring {
    width: 26px;
    height: 26px;
    border-radius: 20px;
    background: #307636;
    position: absolute;
    bottom: 12px;
    left: 12px;
}

.elementBig .at_details {
    top: 130px;
    font-size: 90px;
    line-height: 90px;
}

.elementBig .at_desc {
    padding: 25px 45px 0px 45px;
    font-size: 17px;
    line-height: 25px;
    font-weight: 500;
}



/* Legenda */

.legenda {
    text-align: center;
    margin-bottom: 50px;
}

.spanlegenda {
    cursor: zoom-in;
    color: white;
    margin: 10px;
    display: inline-block;
    padding: 10px 20px;
    box-shadow: 7px 6px 10px rgba(0,0,0,0.2);

    font-weight: 500!important;

    -webkit-border-top-right-radius: 5px;
    -webkit-border-bottom-left-radius: 5px;
    -webkit-border-top-left-radius: 1px;
    -webkit-border-bottom-right-radius: 1px;

    -moz-border-radius-topright: 5px;
    -moz-border-radius-bottomleft: 5px;
    -moz-border-top-left-radius: 1px;
    -moz-border-bottom-right-radius: 1px;

    border-top-right-radius: 5px;
    border-bottom-left-radius: 5px;
    border-top-left-radius: 1px;
    border-bottom-right-radius: 1px;
}

.greylegenda {
    filter: alpha(opacity=20);
    opacity: 0.2;
}

#legend-hobbits {
    background: linear-gradient(138deg, rgba(63,135,71,1) 0%, rgba(36,105,42,1) 100%);
    border-color: rgba(36,105,42,1);
}

#legend-men {
    background: linear-gradient(138deg,  rgba(171,57,32,1) 0%,rgba(125,47,30,1) 100%);
    border-color: rgba(125,47,30,1);
}

#legend-halfelves {
    background: linear-gradient(138deg, rgba(199,185,26,1) 0%, rgba(156,146,29,1) 100%);
    border-color: rgba(156,146,29,1);
}

#legend-elves {
    background: linear-gradient(138deg, rgba(57,76,162,1) 0%, rgba(38,50,106,1) 100%);
    border-color: rgba(38,50,106,1);
}

#legend-dwarves {
    background: linear-gradient(138deg, rgba(153,102,50,1) 0%, rgba(101,67,33,1) 100%);
    border-color: rgba(101,67,33,1);
}

#legend-trolls {
    background: linear-gradient(138deg, rgba(17,45,14,1) 0%, rgba(3,8,3,1) 100%);
    border-color: rgba(3,8,3,1);
}

#legend-orcs {
    background: linear-gradient(138deg, rgba(20,27,55,1) 0%, rgba(6,9,18,1) 100%);
    border-color: rgba(6,9,18,1);
}

#legend-birds {
    background: linear-gradient(138deg, rgba(171,57,32,1) 0%,rgba(125,47,30,1) 100%);
    border-color: rgba(125,47,30,1);
    color: #d9c91c;
}

#legend-trees {
    background: linear-gradient(138deg, rgba(52,136,61,1) 0%, rgba(26,103,33,1) 100%);
    border-color: rgba(26,103,33,1);
    color: #d9c91c;
}

#legend-istari {
    background: white;
    border-color: white;
    color: #141b37;
}





