/** layout **/
body{
    font-family: 'Amarante', serif;
    font-size: 16px;
    line-height: 20px;
    color: #321 ;
}

#fg{
    z-index:1;
    position: relative;
}
.container{
    margin: 0 auto;
    max-width: 1200px;
}
#bg{
    background-image: url("../img/bg_stone.jpg");
    background-size: cover;
    background-position: left top;
    position:fixed;
    top:0;
    height:100vh;
    width:100vw;
    z-index:0;
}
header, footer{
    text-align: center;
    background-color: rgba(255, 255, 255, 0.6);
    padding: 20px 0;
}
footer{
    margin:20px 0 0 0;
}
header img{
    width: 300px;
}

main{
    background-color: rgba(255, 255, 255, 0.7);
}
main.alt{
    background-color: rgba(220, 220, 220, 0.7);
    border-top: 1px solid #aaa;
    border-bottom: 1px solid #aaa;
}

/** description with grid */
.desGrid{
    display: grid;
	grid-gap: 20px;
  	grid-template-columns: repeat(1, 1fr);
  	width: 100%;
}
.desGrid .contText{
    background-color: #eee;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 26px;
    line-height: 32px;
    text-align: center;
}
.desGrid .withImage {
    background-size: cover;
    background-position: center;
}
.desGrid .withImage .contText{
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    color: #fff;
    text-shadow: 1px 1px #000;
}
.desGrid .withDraw {
    background-color: #fff;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}
.desGrid .withDraw .contText{
    height: 100%;
    background-color: rgba(255, 255, 255, 0.4);
    text-shadow: 1px 1px #fff;
}
.wTrans7, .desGrid .withDraw .wTrans7{
    background-color: rgba(255, 255, 255, 0.7);
}
.desGrid .square{
    height: 300px;
}

.factions{
    grid-template-columns: repeat(2, 1fr);
}
.factions .square{
    height: 100px;
}
.factions .contText{
    font-size: 20px;
    line-height: 26px;
}
.factions .colEnd {
    grid-column: 1 / 3;
}

.galerie .photo{
    text-align: center;
}
.galerie .photo .image{
    height: 300px;
    background-size: cover;
    background-position: center;
}


/** global **/
a{
    color: #057;
    text-decoration: none;
    font-weight: bold;
}
a:hover{
    text-decoration: underline;
}

h2{
    font-family: "New Rocker", system-ui;
    font-size: 28px;
    line-height: 30px;
    margin:0 0 10px 0;
}
ul{
    list-style-type:square;
    list-style-position:inside;
}

/** nav */
nav{
    margin:0 0 20px 0;
    background-color: rgba(3, 56, 77, 0.6);
}
nav ul {
  display: block;
  list-style-position: outside;
}
nav ul li {
  display: inline-block;
  list-style: none outside none;
  margin: 0;
  padding: 0;
}
nav ul li a {
  display: block;
  padding: 0 0 0 10px;
  color:#fff;
  text-shadow: 1px 1px #000;
  line-height: 30px;
}

/** portal */
#portal {
    position: fixed;
    right: 0;
    bottom: 0;
    display: inline-block;
    width: 30px;
    height: 30px;
    background-image: url("../img/magic-gate.png");
    background-size: cover;
}
.enchanted #fg{
    filter: invert(1);
}

/** profil */
table.profil th, table.profil td{
    padding: 5px 8px;
    text-align: center;
}
table.profil td.name{
    text-align: left;
    font-weight: bold;

}
table.profil tr.carac{
    background-color: #178;
    color: #fff;
}
table.profil tr.value{
    background-color: #ddb;
}

/** downloads */
ul.downloads {
    padding:10px;
    margin: 50px 0;
    background-color: rgba(255, 255, 255, 0.7);
    display: inline-block;
    text-align: left;
}
ul.downloads li a {font-size: 20px; line-height: 24px;}

/** generic */
.w100 {width: 100%;}
.mAuto {margin: 0 auto;}
.mt2 {margin-top: 20px;}
.pad1{padding: 10px;}
.pad2{padding: 20px;}
.relative{position: relative;}
.center{text-align: center;}
.button{
    height: 40px;
    line-height: 40px;
    display: inline-block;
    padding: 0 10px;
    border: 1px solid rgb(10, 120, 124);
    color: #fff;
    background-color: rgb(10, 120, 124);
    border-radius: 4px;
    font-weight: normal;
    box-sizing: border-box;
    font-size: 20px;
}
.button:hover{
    background-color: rgb(2, 61, 63);
    border-color: rgb(2, 61, 63);
    text-decoration: none;
}
/*.spaceBetween{display: flex; justify-content: space-between;}*/

/* petites tablettes 768 */
@media screen and (min-width:768px) {
	.desGrid{
        grid-template-columns: repeat(2, 1fr);
    }
    .factions{
        grid-template-columns: repeat(3, 1fr);
    }
    .factions .colEnd {
        grid-column: 1 / 4;
    }
}
/* tablettes 980 */
@media screen and (min-width:980px) {
	.desGrid .square{
        height: 400px;
    }
    .factions .square{
        height: 150px;
    }
    .factions .contText{
        font-size: 26px;
        line-height: 32px;
    }
}

/* tablettes 1024 */
@media screen and (min-width:1024px) {
    
	header img{
        width: 400px;
    }

    nav ul li a {
        line-height: 40px;
        font-size: 24px;
        padding: 0 20px;
    }
    #portal {
        height: 40px;
        width: 40px;
    }

    .desGrid{
        grid-template-columns: repeat(3, 1fr);
    }
    .factions{
        grid-template-columns: repeat(4, 1fr);
    }
    .factions .colEnd {
        grid-column: 3 / 5;
    }
    
    
}