/*GEneral*/
html {
    background-image: url(books_bg.jpg);
    background-attachment: fixed;
    background-size      : cover;
    background-color: rgb(206, 206, 239);
}

body {
    font-family     : Helvetica, sans-serif;
    margin          : 20px auto;
    padding         : 10px 20px;
    background-color: white;
    color           : #333;
    line-height     : 1.6;
    border-radius   : 10px;
    border    : 2px solid rgb(57, 33, 78);
    max-width : 1200px;
    box-shadow: 5px 5px 10px rgba(57, 33, 78, 0.77);
    text-align: left;
}

/*Header*/
header, footer {
    background-color: lavender;
    border-radius: 10px;
    text-align: center;
    padding-bottom: 0.5em;
}

header a {
    margin: 5px;
    font-size: 1.2em;
}

#currentPage {
    margin: 5px;
    font-size: 1.2em;

}

/*links*/
a:link {
    color: rgb(108, 1, 162);
}

a:visited {
    color: rgb(94, 68, 112);
}

button{
    background-color: #E1EACD;
}

/*Headings*/
h1, h2, h3 {
    margin-top: 10px;    
    margin-bottom: 10px;
}

h1 {
    text-align      : center;
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-weight: bold;
    font-variant: small-caps;
    padding         : 5px;
    color           :  rgb(57, 33, 78);
    border-radius   : 5px 5px 5px 5px;
    margin-bottom: 10px;  
}

h2, legend {
    font-family: Georgia, 'Times New Roman', Times, serif;
    color           :  rgb(57, 33, 78);
}

h3, h4 {
    color:darkslategray;
}

img {
  max-width: 100%;
  height: auto;
}


/*logo*/
#logo {
    width: 20%;
    height: auto;
    display: block;
    margin: auto;
}
@media (min-width: 768px) {
    #logo {
        width: 80%;
    }
}

#quote {
    color:  #5d477a;
}

nav#content {
    background-color:  #E1EACD;
    border-radius: 5px;
    border: 2px dotted #5d477a;
    padding: 10px;
    padding-left: 20px;
}

/*About me part*/
#aboutme {
    text-align: center;
}

#aboutme + p {
    text-align: center;
}

/*carousel*/
#carousel {
    background-color:#E1EACD ;
    padding: 20px;
}

.slideimg {
    height: 25em ;
    width: auto;
    display: block;
    margin: auto;
}

.slide-text {
    padding: 10%;
}

/*tabs*/
.tab-img {
    display: block;
    max-height: 100%;
    height: 40em;
    width: auto;
    padding: 8px;
    border: 6px solid #E1EACD;
}

.tab-text{
    padding: 10px;
}

.stars{
    font-size: 280%;
    padding-left: 10px;
}

@media (max-width: 768px) {
    .stars{
        font-size: 160%;
    }
    
}

table {
    border-collapse: collapse;
    border: 1px solid rgb(57, 33, 78);
    width: 80%;
    margin-bottom: 10px;
}

td, th {
    padding: 5px 15px 5px 15px;
    border: 1px solid rgb(57, 33, 78);
}
th {
    background-color: #E1EACD ;
}

.slider {
  -webkit-appearance: none;
  height: 6px;
  background: #E1EACD;
  border-radius: 3px;
  outline: none;
  width: 100%;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 18px;
  width: 18px;
  background: rgb(57, 33, 78);
  border: 2px solid #fff;
  border-radius: 70%;

}
#ratingTable {
    border:none;
    width: 100%;
}

#ratingTable tr td{
    background-color: #E1EACD;
    border: none;
}

#currentBook{
    max-height: 100%;
}

#currentBookImg {
    display: block;
    margin:auto;
    height: 25em;
    width: auto;
    padding: 5px;
}

figcaption{
    text-align: center;
}

#recommendMe {
    margin-top: 20px;
    text-align: center;
}

/*Űrlap*/

main#tartalom{
    padding:10px;
}

legend {
    margin-top: 10px;
}

#radio-buttons{
    text-align: center;
    font-size: 120%;
}

#bookPileImg{
    height: 80%;
    width: auto;
    display: block;
    margin: auto;
    padding-top: 30px;
}

/* Top 10*/
aside{
    opacity: 80%;
    text-align: center;
}

.placements{
    background-color: #E1EACD;
    border-radius: 10px;
    margin-top: 10px;
    border: 2px solid rgb(94, 68, 112);
    padding: 8px 10px 8px 35px;
    
}
@media (max-width: 1024px) {
    .placements{
        margin: auto;
        margin-bottom: 10px;
        text-align: center;
        padding: 8px 10px 8px 10px;
        max-width: 80%;
    }
}

/*books*/
.top-book{
    display: block;
    max-height: 100%;
    height: 32em;
    width: auto;
    padding: 8px;
    border: 6px solid #E1EACD;
    margin: auto;

}

#top10-container hr {
    border:4px dashed rgb(94, 68, 112);
}

#speechBubble {
    position: relative;
    background-color: #E1EACD;
    border-radius: 5px;
    max-width: 500px;
    padding: 10px 10px 5px 10px;
    margin: 20px 0px 15px 20px;

}
#speechBubble::after {
    content: "";
    display: block;
    position: absolute;

    left: -14px;
    top: 15px;

    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 15px solid #E1EACD;
    
}


/*akadálymentesség */
body.accessible-mode {
    background-color: black !important;
    color: yellow !important;
    font-size: 1.3em;
}

body.accessible-mode h1,
body.accessible-mode h2,
body.accessible-mode h3,
body.accessible-mode h4,
body.accessible-mode legend {
    color: yellow !important;
}

body.accessible-mode a:link,
body.accessible-mode a:visited {
    color: cyan !important;
    text-decoration: underline;
}

body.accessible-mode header,
body.accessible-mode footer,
body.accessible-mode .placements,
body.accessible-mode nav#content,
body.accessible-mode #carousel,
body.accessible-mode #speechBubble,
body.accessible-mode th,
body.accessible-mode #ratingTable tr td {
    background-color: #222 !important;
    color: yellow !important;
    border-color: yellow !important;
}

body.accessible-mode #quote{
    color: yellow;
}

body.accessible-mode table,
body.accessible-mode td,
body.accessible-mode th {
    border-color: yellow !important;
}

body.accessible-mode .slider::-webkit-slider-thumb {
    background: yellow !important;
    border: 2px solid black;
}

body.accessible-mode .slider {
    background: #444 !important;
}

body.accessible-mode caption{
    color: yellow !important;
}
body.accessible-mode figcaption{
    color: yellow !important;
}
body.accessible-mode input::placeholder,
body.accessible-mode textarea::placeholder{
    color: yellow  !important;
}

body.accessible-mode input,
body.accessible-mode textarea,
body.accessible-mode select,
body.accessible-mode button {
    font-size: 1.2em !important;
    background-color: black;
    color: yellow;
    border: 1px solid yellow;
}

/*nyomtatas*/
@media print {
  img, 
  .slideimg, 
  .tab-img, 
  #currentBookImg, 
  .top-book {
    max-height: 200px; 
    max-width: 100%; 
    height: auto; 
    width: auto 
  }

  header, footer, nav, aside {
    display: none;
  }
}