@font-face {
    font-family: 'libre_baskervilleitalic';
    src: url('font/LibreBaskerville-Italic-webfont.eot');
    src: url('font/LibreBaskerville-Italic-webfont.eot?#iefix') format('embedded-opentype'),
         url('font/LibreBaskerville-Italic-webfont.woff2') format('woff2'),
         url('font/LibreBaskerville-Italic-webfont.woff') format('woff'),
         url('font/LibreBaskerville-Italic-webfont.ttf') format('truetype'),
         url('font/LibreBaskerville-Italic-webfont.svg#libre_baskervilleitalic') format('svg');
    font-weight: normal;
    font-style: normal;

}

/*Cacher checkbox*/
[type="checkbox"]:not(:checked),
[type="checkbox"]:checked {
    position: absolute;
    left:-9999px;
}


* {
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}
.center {
    width: 100%;
    text-align: center;
}
.italic {
    font-style: italic;
}

body {
    background-color: #161e2d;
    background-image: url(images/bg.jpg);
    background-repeat: no-repeat;
    background-origin: top center;
    background-position: top center;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    font-family: 'Fira Sans', sans-serif;
    font-weight: normal;
    color: white;
}
header {
    position: absolute;
    top: 40px;
    max-width: 1200px;
    margin: 0 auto 0 auto;
    margin-bottom: 20px;
    height:20px;
    width: 100%;
    background-image: url(images/hugoroman.svg);
    background-repeat: no-repeat;
    background-position: 40px 0;
    -webkit-background-size: contain;
    -moz-background-size: contain;
    -o-background-size: contain;
    background-size: contain;
    opacity: 1;
    transition: all 0.3s ease 0s;
    z-index: 10;
}
header:hover {
    opacity: 0.9;
    transition: all 0.3s ease 0s;
    
}
header a {
    width: 150px;
    height: 100%;
    display: block;
}
.wrapper-out {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: auto;
    width: 100%;
}
.wrapper {
    height: 100%;
    width: 100%;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}
.column-left {
    position: absolute;
    top: 50%;
    left: 0;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
    width: 66%;
    height: auto;
    padding-left: 40px;
    padding-right: 40px;
    z-index: 9;
}
.column-right {
    position: absolute;
    top: 50%;
    right: 0;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
    width: 34%;
    height: auto;
    padding-right: 40px;
    max-width: 350px;
    z-index: 9;
}
.column-right #book_cover {
    width: 100%;
    height: 100%; 
}
.column-right #book_cover img {
    width: 100%;
    margin-bottom: 10px;
}
#cover {
    height: 70%;
    width: 100%;
    background-image: url(images/book.png);
    background-repeat: no-repeat;
    background-position: center center;
    -webkit-background-size: contain;
    -moz-background-size: contain;
    -o-background-size: contain;
    background-size: contain; 
}
#button-read {
    font-size: 18px;
    line-height: 43px;
    font-weight: normal;
    text-transform: uppercase;
    text-decoration: none;
    color:white;
    padding: 10px 20px;
    -webkit-border-radius:14px;
    -moz-border-radius:14px;
    border-radius: 14px;
    background: #232C3A;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s ease 0s;
}
#button-read:hover, #button-read:active, #button-read:focus {
    background: #6483c1;
    transition: all 0.3s ease 0s;
}

#bar-buy {
    position: fixed;
    bottom: 0;
    left:0;
    right:0;
    width: 100%;
    background: #232C3A;
    color: white;
    z-index: 10;
}
.button-buy {
    font-size: 18px;
    padding: 13px 10px;
    font-weight: normal;
    display: block;
    width: 50%;
    height: 100%;
    border-right: 2px solid #6483c1;
    float: left;
    text-align: center;
    text-transform: uppercase;
    text-decoration: none;
    color: white;
    cursor: pointer;
    background: #232C3A;
    transition: all 0.3s ease 0s;
}
.button-buy:hover, .button-buy:active, .button-buy:focus {
    background: #6483c1;
    transition: all 0.3s ease 0s;
}
h1 {
    color: #6483c1;
    font-size: 48px;
    font-weight: normal;
    font-family:'libre_baskervilleitalic';
    margin: 40px 0 25px;
}

h3 {
    font-size: 20px;
    font-weight: normal;
	font-style: normal;
    font-family: 'Fira Sans', sans-serif;
    margin: 8px 0;
	text-align: center;

}

p {
    font-size: 16px;
}
p.small {
    font-size: 13px;
    font-style: normal;
    margin: 32px 0 ;
    text-align: justify;

}

p#margin-bottom {
    margin-bottom: 20px;
}
label, a {
    cursor: pointer;
}
/*
a.button-buy {
    text-transform: uppercase;
    text-decoration: none;
    color:#76E522;
    font-size: 23px;
    padding: 9px 20px 8px;
    -webkit-border-radius:14px;
    -moz-border-radius:14px;
    border-radius: 14px;
    background: #232C3A;
}
*/
#author {
    float: left;
    margin-right: 20px;
}


/*Lightbox*/

.state {
  position: absolute;
  top: 0;
  left: -100vw;
}

.state:checked + .content {
  -webkit-transform: none;
  -ms-transform: none;
  transform: none;
}
.state:checked ~ .content {
  -webkit-transform: none;
  -ms-transform: none;
  transform: none;
}

.state:checked + .backdrop {
  bottom: 0;
  opacity: 1;
  z-index: 1;
}
.state:checked ~ .backdrop {
  bottom: 0;
  opacity: 1;
  z-index: 1;
}

.lightbox {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  height: 0;
  padding: 0 20px;
  z-index: 10;
}
.lightbox p {
    color: #000000;
    font-size: 13px;
    line-height: 1.5;
    text-align: justify;
}

.lightbox .content {
    display: block;
    overflow: visible;
    position: relative;
    z-index: 2;
    max-width: 640px;
    width: 100%;
    margin: 80px auto;
    -webkit-transform: translateY(-1000%);
    -ms-transform: translateY(-1000%);
    transform: translateY(-1000%);
    -webkit-transition: 0.3s -webkit-transform ease-in-out;
    transition: 0.3s transform ease-in-out;
    min-height: 445px;
}
.lightbox .content-buy {
    max-width: 300px;
}

.lightbox .main {
  float: left;
    display: block;
  overflow-y: scroll;
  background: white;
  padding: 20px;
  width: 50%;
    min-width: 280px;
  height: 455px;
    cursor: url("images/cursor.png"), pointer;
}
.lightbox .buy-pop {
    background-color: #232C3A;
    text-align: center;
    text-transform: uppercase;
    padding: 2px;
}

.lightbox .backdrop {
  position: fixed;
  z-index: -1;
  top: 0;
  right: 0;
  bottom: 100%;
  left: 0;
  opacity: 0;
  background: rgba(0, 0, 0, 0.3);
  -webkit-transition: 0.3s opacity ease-in-out;
  transition: 0.3s opacity ease-in-out;
}
.close {
    cursor: pointer;
  display: block;
  position: absolute;
  top: -44px;
  width: 40px;
  height: 40px;
  background-color: #232C3A;
  background-image: url(images/close.svg);
  background-repeat: no-repeat;
  background-position: 50% 50%;
  transition: 0.3s all ease-in-out;
  z-index: 10;
  overflow: visible;
  right: 0;
}
.close:hover, .close:focus, .close:active {
    background-color: #6483c1;
    transition: 0.3s all ease-in-out;
}
.buy {
    width: 50%;
    min-width: 300px;
    background-color: #DFDFDF;
    float: left;
    height: 100%;
    min-height: 455px;
}
.buy a {
  width: 90%;
  margin: 0 auto;
  padding: 5px 10px 10px 60px;
  background-color: white;
  -webkit-border-radius: 8px;
  -moz-border-radius: 8px;
  border-radius: 8px;
  display: block;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 14px;
  text-align: left;
  height: 44px;
  margin-top: 10px;
  margin-bottom: 10px;
  color: black;
  line-height: 37px;
    max-width: 260px;
}
.buy a:hover, .buy a:focus, .buy a:active {
  background-color: #232C3A;
    color: white;
    transition: 0.3s all ease-in-out;
}
.only-buy {
    width: 100%;
}
.amazon {
    background-image: url(images/amazon.png);
    background: url(images/amazon.png);
    background-repeat: no-repeat;
    background-position: 8px 50%;
    transition: 0.3s all ease-in-out;
}
.fnac {
    background-image: url(images/fnac.png);
    background: url(images/fnac.png);
    background-repeat: no-repeat;
    background-position: 8px 50%;
    transition: 0.3s all ease-in-out;
}
.chapitre {
    background-image: url(images/chapitre.png);
    background: url(images/chapitre.png);
    background-repeat: no-repeat;
    background-position: 8px 50%;
    transition: 0.3s all ease-in-out;
}
.apple {
    background-image: url(images/apple.png);
    background: url(images/apple.png);
    background-repeat: no-repeat;
    background-position: 8px 50%;
    transition: 0.3s all ease-in-out;
}
.google {
    background-image: url(images/gplay.png);
    background: url(images/gplay.png);
    background-repeat: no-repeat;
    background-position: 8px 50%;
    transition: 0.3s all ease-in-out;
}

.amazon:hover, .amazon:focus, .amazon:active {
    background-image: url(images/amazon2.png);
    background: url(images/amazon2.png);
    background-repeat: no-repeat;
    background-position: 8px 50%;
    transition: 0.3s all ease-in-out;
}
.fnac:hover, .fnac:focus, .fnac:active {
    background-image: url(images/fnac2.png);
    background: url(images/fnac2.png);
    background-repeat: no-repeat;
    background-position: 8px 50%;
    transition: 0.3s all ease-in-out;
}
.chapitre:hover, .chapitre:focus, .chapitre:active {
    background-image: url(images/chapitre2.png);
    background: url(images/chapitre2.png);
    background-repeat: no-repeat;
    background-position: 8px 50%;
    transition: 0.3s all ease-in-out;
}
.apple:hover, .apple:focus, .apple:active {
    background-image: url(images/apple2.png);
    background: url(images/apple2.png);
    background-repeat: no-repeat;
    background-position: 8px 50%;
    transition: 0.3s all ease-in-out;
}
.google:hover, .google:focus, .google:active {
    background-image: url(images/gplay2.png);
    background: url(images/gplay2.png);
    background-repeat: no-repeat;
    background-position: 8px 50%;
    transition: 0.3s all ease-in-out;
}
.show-for-portrait {
    display: none;
}
.lightbox .main::-webkit-scrollbar {
      width: 4px;
}
.lightbox .main::-webkit-scrollbar-track {
      background-color: rgba(0, 0, 0, 0);
} /* the new scrollbar will have a flat appearance with the set background color */
 
.lightbox .main::-webkit-scrollbar-thumb {
      background-color: #232C3A; 
} /* this will style the thumb, ignoring the track */
 
.lightbox .main::-webkit-scrollbar-button {
      background-color: rgba(0, 0, 0, 0);
} /* optionally, you can style the top and the bottom buttons (left and right for horizontal bars) */
 
.lightbox .main::-webkit-scrollbar-corner {
      background-color: rgba(0, 0, 0, 0);
} /* if both the vertical and the horizontal bars appear, then perhaps the right bottom corner also needs to be styled */

.footer {
    width: 100%;
    float: left;
    color: #CCCCCC;
    text-align: center;
    font-size: 0.8em;
    padding: 20px;
}
.footer a {
    color: grey;
    text-decoration: none;
}
.footer a:hover {
    color: #D0021B;
}


@media screen and (max-height:200px) and (orientation:landscape) {
    .column-left,
    .column-right {
        top: 0;
        -webkit-transform: translateY(0%);
        -ms-transform: translateY(0%);
        transform: translateY(0%);
        margin-top: 50px;
    }
    p#margin-bottom {
        margin-bottom: 120px;
    }
}

@media screen and (max-width: 960px) and (orientation:landscape) {
    h1 {
        font-size: 36px;
    }
	
	
}
@media screen and (max-height: 600px) and (min-width: 960px) and (orientation:landscape) {
    .column-right {
        width: 25%;
    }
    h1 {
        font-size: 36px;
		
    }
	

	
}
@media screen and (max-height: 500px) and (max-width: 960px) and (orientation:landscape) {
    .column-right,
    .column-left {
        top: 60px;
        -webkit-transform: translateY(0%);
        -ms-transform: translateY(0%);
        transform: translateY(0%);
    }
    p#margin-bottom {
        margin-bottom: 120px;
    }
}

@media screen and (orientation:portrait) {
    #author {
      margin-top: 25px;
    }
    .column-right {
        display: none;
    }
    .show-for-portrait {
        display: inline;
    }
    .hide-for-portrait {
        display: none;
    }
    .column-left {
        top: 0;
        -webkit-transform: translateY(0%);
        -ms-transform: translateY(0%);
        transform: translateY(0%);
        margin-top: 50px;
        width: 100%;
    }
    p#margin-bottom {
        margin-bottom: 120px;
    }
    h1 {
        text-align: center;
        margin: 25px 0 20px;
    }
    .book {
        width: 100%;
        text-align: center;
        display: block;
    }
    #book_cover-portrait img {
        width: 50%;
    }
}
@media screen and (max-width: 640px) and (orientation:portrait) {
    h1 {
        font-size: 36px;
    }
    #book_cover-portrait img {
        width: 80%;
    }
    .button-buy {
        font-size: 12px;
    }
}
@media screen and (max-width: 640px) {
    .column-left {
        padding-left: 20px;
        padding-right: 20px;
    }
    header {
        background-position: 20px 0;
        top: 20px;
    }
    .lightbox {
        position: relative;
    }
    .lightbox .content {
        margin: 70px auto;
    }
    .lightbox .main {
      width: 100%;
        height: auto;
    }
    .buy {
        width: 100%;
        min-width: 280px;
        margin-bottom: 50px;
    }
    .only-buy {
        position: absolute;
    }
}

@media screen and (max-width: 568px) {
    .button-buy {
        padding: 5px 20px;
        font-size: 12px;
    }
    h1 {
        font-size: 22px;
    }
    #button-read {
      font-size: 12px;
      padding: 10px 13px;
    }
}
@media screen and (max-width: 424px) {
    #button-read {
      font-size: 18px;
      padding: 10px 75px;
    }
    h1 {
        margin: 5px 0 20px;
    }
    #book_cover-portrait img {
        width: 75%;
    }
}
@media screen and (max-width: 480px) and (orientation:portrait) {
    #button-read {
      font-size: 18px;
      padding: 10px 75px;
    }
}


