body {
    background-color: #FFFDF2;
    margin: 0px 150px;
    font-family: sans-serif;
    font-size: 1rem;
}

h1 {
    font-weight: 300;
    font-size: 5rem;
    text-align: center;
    padding: 150px;
    margin: 0px -150px 50px -150px;
    background-image: url("../media/background.png");
    background-color: #ffffff4d;
    background-blend-mode: lighten;
    background-position: center;
    background-size: contain;
}

h2 {
    font-weight: 260;
    font-size: 3rem;
}

h1, h2, h3 {
    font-family: 'Courier New';

}

p, aside, section, article {
    text-align: justify;
}

aside {
    margin-bottom: 20px;
}

img {
    border-radius: 5px;
    padding: 5px;
    border: 1px solid #DDD;
}

footer {
    background-color: #E8CCBF;
    margin: 50px -150px 0px -150px;
    padding: 20px;
    text-align: center;
}

.navbar_style {
    background-color: #E8CCBF;
    margin: 0px -150px;
    padding: 20px 150px;
}

.start {
    display: flex;
    margin-bottom: 50px;
}

.pic {
    height: 350px;
}

.introduction {
    margin: 0px 0px 0px 50px;
}

.awards {
    text-align: center;
}

table {
    margin: auto;
    margin-top: 50px;
}

td,
th {
    padding: 10px;
}

th {
    background-color: #DDD;
}

table,
th,
tr,
td {
    border: 1px solid black;
}

.book {
    display: flex;
    align-items: center;
    margin: 50px 0px;
}

.bookpic {
    width: 150px;
}

video {
    height: 450px;
    width: 750px;
}

.elozetes {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.leiras {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin: 20px;
    max-width: 750px;
}


fieldset {
    width: 600px;
    padding: 20px 40px;
    margin: 20px auto;
    border: 1px solid black;
    border-radius: 8px;
    font-family: sans-serif;
}

legend {
    font-weight: bold;
}

label {
    margin-right: 10px;
}

.form-col {
    display: flex;
    justify-content: space-around;
    margin: 10px;
}

.form-row {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}

.checkboxes,
.radiobuttons {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    margin-left: 10px;
}

textarea {
    width: 100%;
    height: 100px;
    margin-top: 10px;
    margin-bottom: 20px;
}

.buttons {
    text-align: right;
}

input[type="submit"],
input[type="reset"] {
    margin-left: 10px;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.overlay img {
    max-width: 90%;
    max-height: 90%;
    border: 4px solid white;
    border-radius: 10px;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 32px;
    color: white;
    cursor: pointer;
}


.btn:hover {
    border: 1px solid black;
}
.btn {
    border-radius: 8px;
    background-color: grey;
    color: white;
    padding: 15px;
}

p a:link {
    color: #d98660;
}

p a:visited {
    color: #5f5757;
}

p a:hover {
    color: #924018;
}

#subm {
    background-color: #55d259;
    border: 3px solid #55d259;

}

#res {
    background-color: #d41c1c;
    border: 3px solid #d41c1c;

}

#subm:hover, #res:hover{
    background-color: #FFFDF2;
}

.film p{
    margin: 3px 0px;
}

.film {
    margin: 15px 0px;
    font-style: italic;
}

figure {
    max-width: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 0px 50px 0px 0px;

}

figcaption {
    font-family: 'Courier New';
} 

.bookfig {
    margin-left: 50px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
  }
  
  .skip-link:focus {
    position: static;
    width: auto;
    height: auto;
    padding: 10px;
    background-color: #000;
    color: #fff;
    z-index: 1000;
  }
  
@media print {
    body {
        background: white !important;
        color: black !important;
        font-family: serif !important;
        font-size: 11pt;
        margin: 1cm;
    }

    header,
    nav,
    .navbar_style,
    footer,
    aside,
    video,
    .overlay,
    .close-btn,
    .buttons {
        display: none !important;
    }

    * {
        background: none !important;
    }

    h1 {
        background-image: none !important;
        padding: 0;
        font-size: 3rem;
        margin: 0 0 20px 0;
    }
    
    h2{
        font-size: 2rem;
    }
    h3 {
        font-size: 1rem;
    }

    h1, h2, h3, figcaption {
        font-family: serif !important;
    }

    img,
    .bookpic,
    figure {
        height: auto !important;
        page-break-inside: avoid;
        margin: 5px auto;
        display: block;
    }

    figure {
        max-width: 50% !important;
    }

    .pic {
        max-width: 50% !important;
    }
    h1, h2, h3, p, table {
        page-break-inside: avoid;
    }

    table,
    th,
    td {
        border: 1px solid #000;
        border-collapse: collapse;
    }

    th {
        background: #ddd !important;
    }

    td,
    th {
        padding: 5px;
    }

    .elozetes {
        display: none !important;
    }

    .book {
        margin: 10px auto !important;
    }

    .start,
    .leiras,
    .introduction {
        display: block;
        margin: 10px 0;
    }
}

@media (max-width: 1200px) {
    body {
        margin: 0px 5vw;
    }

    h1 {
        font-size: 4rem;
        padding: 10vw;
        margin: 0px -5vw 50px -5vw;
    }

    .navbar_style, footer {
        margin: 0 -5vw;
        padding: 20px 5vw;
    }

    .start {
        flex-direction: column;
        align-items: center;
    }

    .introduction {
        margin: 20px 0 0 0;
        text-align: center;
    }

    figure, .bookfig {
        margin: 20px auto;
    }

    .video, video {
        width: 100%;
        height: auto;
    }

    fieldset {
        width: 90%;
    }

    table {
        width: 100%;
        overflow-x: auto;
    }
    .pic {
        max-width: 100vw;
    }

    figure {
        margin: 0px 10vw ;
    }

    section {
        align-items: center;
    }

    .book section {
        margin-right: 5vw;
    }


}

@media (max-width: 768px) {
    h1 {
        font-size: 3rem;
        padding: 8vw;
    }

    h2 {
        font-size: 2rem;
        text-align: center;
    }

    .book {
        flex-direction: column;
        align-items: center;
    }
    .book section {
        margin-right: 0px;
    }

    .bookfig {
        margin: 20px 0 0 0;
    }

    .form-row, .form-col {
        flex-direction: column;
        align-items: flex-start;
    }

    .checkboxes, .radiobuttons {
        margin-left: 0;
    }

    input[type="submit"],
    input[type="reset"] {
        margin-top: 10px;
    }
    
    input[type="text"]{
        max-width: 50vw;
    }

    fieldset {
        padding: 5vw;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2rem;
        padding: 6vw;
    }

    h2 {
        font-size: 1.5rem;
    }

    .navbar_style, footer {
        padding: 15px 3vw;
    }

    .btn {
        padding: 10px;
        font-size: 0.9rem;
    }

    .pic {
        height: auto;
        width: 100%;
    }

    .bookpic {
        width: 100px;
    }

    legend {
        font-size: 1rem;
    }

    figcaption {
        font-size: 0.9rem;
    }

    td {
        padding: 2px;
    }
}