@font-face {
    font-family: 'Chantelli_Antiqua';
    src: url('Chantelli_Antiqua.ttf') format('truetype');        
}  

html, body {
    margin: 0;
    height: 100%;
    background: #222831;
    color:#EEEEEE;
    font-weight: 500;
    font-family: Chantelli_Antiqua !important;
    scroll-behavior: smooth;
}


.logo {
    width: 140px;
    padding-top: 5%;
}


a:link {
    text-decoration: inherit;
    color: inherit;
}

a:visited {
    text-decoration: inherit;
    color: inherit;
}
.site-title {
    font-style: oblique;
}

h2 {
    vertical-align: center;
    text-align: center;
}



.top-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    /*background-color: #00BAF0;*/
    /*background: linear-gradient(to left, #f46b45, #eea849);*/
    /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
    color: #FFF;
    height: 50px;
    padding: 1em;
}

.menu {
    display: flex;
    flex-direction: row;
    list-style-type: none;
    margin: 0;
    padding: 0;
    z-index: 1000;
}

.menu > li {
    margin: 0 1rem;
    overflow: hidden;
}

.menu-button-container {
    display: none;
    height: 100%;
    width: 30px;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#menu-toggle {
    display: none;
}

.menu-button,
.menu-button::before,
.menu-button::after {
    display: block;
    background-color: #fff;
    position: absolute;
    height: 4px;
    width: 30px;
    transition: transform 400ms cubic-bezier(0.23, 1, 0.32, 1);
    border-radius: 2px;
}

.menu-button::before {
    content: '';
    margin-top: -8px;
}

.menu-button::after {
    content: '';
    margin-top: 8px;
}

#menu-toggle:checked + .menu-button-container .menu-button::before {
    margin-top: 0px;
    transform: rotate(405deg);
}

#menu-toggle:checked + .menu-button-container .menu-button {
    background: rgba(255, 255, 255, 0);
}

#menu-toggle:checked + .menu-button-container .menu-button::after {
    margin-top: 0px;
    transform: rotate(-405deg);
}

@media (max-width: 700px) {
    .menu-button-container {
        display: flex;
    }
    .menu {
        position: absolute;
        top: 0;
        margin-top: 50px;
        left: 0;
        flex-direction: column;
        width: 100%;
        justify-content: center;
        align-items: center;
    }
    #menu-toggle ~ .menu li {
        height: 0;
        margin: 0;
        padding: 0;
        border: 0;
        transition: height 400ms cubic-bezier(0.23, 1, 0.32, 1);
    }
    #menu-toggle:checked ~ .menu li {
        border: 1px solid #333;
        height: 2.5em;
        padding: 0.5em;
        transition: height 400ms cubic-bezier(0.23, 1, 0.32, 1);
    }
    .menu > li {
        display: flex;
        justify-content: center;
        margin: 0;
        padding: 0.5em 0;
        width: 100%;
        color: white;
        background-color: #222;
    }
    .menu > li:not(:last-child) {
        border-bottom: 1px solid #444;
    }
}

.postCardContent {
    background: white;
    color: black;
    width: 50%;
    min-width: 80%;
    min-height: 400px;
    margin-left: 10%;
    text-align: justify;
    padding: 15px;
}
.stampPlace {
    width: 85px;
    height: 110px;
    border: 2px solid black;
    position: absolute;
    right: 0;
    padding: 2px;
    text-align: center
}
.postCardContentText {
    border-right: 2px solid black;
}

.postCardaddress {
    position: absolute;
    top: 50%;
    left: 20%;

}

/* The flip box container - set the width and height to whatever you want. We have added the border property to demonstrate that the flip itself goes out of the box on hover (remove perspective if you don't want the 3D effect */
.flip-box {

    background-color: transparent;
    /*width: 300px;*/
    height: 400px;
    /*border: 1px solid #f1f1f1;*/
    perspective: 1000px; /* Remove this if you don't want the 3D effect */
    padding-bottom: 54% !important;
}

/* This container is needed to position the front and back side */
.flip-box-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

/* Do an horizontal flip when you move the mouse over the flip box container */
.flip-box:hover .flip-box-inner {
    transform: rotateY(180deg);
}

/* Position the front and back side */
.flip-box-front,
.flip-box-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden; /* Safari */
    backface-visibility: hidden;
}

/* Style the front side (fallback if image is missing) */
.flip-box-front {
    /*background-color: #13315c;*/
    color: black;
}

/* Style the back side */
.flip-box-back {
    /*background-color: #13315c;*/
    color: white;
    transform: rotateY(180deg);
}

.postcard-container {
    margin-top: 5%;
}

.postcard-tag {
    margin-top: 5px;
}

.postcard-tag-container {
    /*color: #ffc107 ;*/
    color: #FFD369;
}

.btn-upload {
    background-color: #FFD369;
}

.page-link {
    color: black !important;
}

.pagination {
    margin-top: 5%;
}


.footer-footer {
    margin-top: 5%;
    border-top: 1px solid white;



}
.footer-column {
    float: left;
    width: 33.33%;
    padding: 10px;
}

/* Clear floats after the columns */
.footer-row:after {
    content: "";
    display: table;
    clear: both;
}

/* Responsive layout - makes the three columns stack on top of each other instead of next to each other */
@media screen and (max-width: 600px) {
    .footer-column {
        width: 100%;
    }
}


.post-title {
    text-align: center; 
    border-bottom: 1px solid white; 
    padding-top: 2%; 
    padding-bottom: 2%;
}

#btn-back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
}

.bg-image-div {
    margin-top: 1%;
    background-image: url('images/background.jpg') ; 
    background-size: cover;
    min-height: 40vw;
    width: 100%;
}

.main-title {
    margin-top: 25%;
    font-size: 3.5vh;
    font-style: italic;
}
.karinthy {
    display: block;
    margin: auto;
    margin-right: 5%;
    font-size: 2vh;
    font-style: italic;
    float: right;
}