@font-face {
    font-family: 'AmericanTypewriter';
    src: url('fonts/AmericanTypewriter.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'AmericanTypewriter-Bold';
    src: url('fonts/AmericanTypewriter-Bold.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
}

html {
    scroll-behavior: smooth;
  }

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background-color: #F0EBE3;
    background-image: 
      radial-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
      radial-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px);
    background-position: 0 0, 10px 10px;
    background-size: 20px 20px;
    font-family: 'AmericanTypewriter', serif;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 5px;
    padding-right: 5px;
}

.header {
    font-family: 'AmericanTypewriter-Bold';
    padding-top: 10px;
    padding-bottom: 10px;
    text-align: center;
    font-size: 84px;
    white-space: nowrap;
    text-shadow: 2px 2px 2px #5d5d5d;
    text-transform: uppercase;
}

.sub-header {
    font-family: 'AmericanTypewriter';
    text-align: center;
    white-space: nowrap;
    padding-bottom: 10px;
}

.title {
    column-count: 1;
    font-family: 'AmericanTypewriter-Bold';
    text-transform: uppercase;
    text-align: center;
    font-size: 50px;
    margin-top: 3px;
    margin-bottom: 0px;
}

.footer {
    border-bottom: 2px solid black;
    border-top: 2px solid black;
    padding: 7px 8px;
    text-align: center;
}

.topnav {
    font-family: 'AmericanTypewriter-Bold';
    overflow: hidden;
    border-bottom: 3px solid black;
    border-top: 3px solid black;
}

.topnav a {
    float: left;
    display: block;
    text-align: center;
    padding: 7px 8px;
    text-decoration: none;
    color: black;
    transition: background-color .5s;
}

.topnav a:visited {
    color: black;
}

.topnav a:hover {
    background-color: #e1d6c7;
    color: black;
}

.container {
    column-count: 3;
    column-gap: 1.5rem;
}

.news-block {
    padding: 5px;
    opacity: 0;
    transform: translateY(50px);
    transition: transform 0.3s ease, opacity 0.3s ease;
    display: inline-block;
    width: 100%;
}

.news-block.visible {
    opacity: 1;
    transform: translateY(0);
}

.line {
    opacity: 0;
    transform: translateY(50px);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.line.visible {
    opacity: 1;
    transform: translateY(0);
}


/* Formáty obsahu */
h1 {
    font-family: 'AmericanTypewriter-Bold';
    text-transform: uppercase;
    font-size: 20px;
    margin-top: 3px;
    margin-bottom: 0px;
}

h2 {
    font-family: 'AmericanTypewriter-Bold';
    font-size: 16px;
    margin-top: 0px;
    margin-bottom: 0px;
}

p {
    text-indent: 25px;
    margin-top: 0px;
    margin-bottom: 0px;
    text-align: justify;
}

img {
    max-width: 100%;
    height: auto;
    padding: 10px;
}

/* Konec formátů obsahu */

td {
    vertical-align: top;
    width: 50%;
}

a, a:visited {
    color: black;
    text-decoration: none;
}

@media screen and (max-width: 1200px) {
    .header {
        font-size: 7vw;
        text-shadow: 1px 1px 1px #5d5d5d;
    }
    .title {
        font-size: 4vw;
    }
}

@media (max-width: 1000px) {
    .container {
        column-count: 2;
    }
}

@media screen and (max-width: 600px) {
    .title {
        font-size: 5vw;
    }
    .container {
        column-count: 1;
    }
    .news-block {
        padding-left: 10px;
        padding-right: 10px;
    }
    .footer {
        font-size: 3vw;
    }
    h1 {
        font-size: 4vw;
    }
    h2 {
        font-size: 3.8vw;
    }
}
