@media screen and (min-width:1000px) {

    html {
        scroll-behavior: smooth;
    }

    body {
        margin: 0;
        font: 14px Verdana;
        color: black;
        background: url(../images/maps/city-map.webp) 64% 0 #151921 scroll;
    }

    #ev_bg {
        background: url(../images/ev_bg.gif) repeat-y;
        width: 1064px;
        margin: 0px auto;
    }

    #everything {
        width: 1000px;
        margin: 0 32px;
        background: url(../images/parchment-light2.jpg);
        border: 1px solid black;
        border-width: 0px 1px;
    }

    #header {
        height: 162px;
        background: url(../images/header2.png) right no-repeat;
        padding: 0 20px;
    }

    #header p {
        padding-top: 125px;
        font-family: "PageName";
        text-shadow: 2px 2px 3px black;
        font-size: 28px;
        /*text-shadow: black 1px 1px 0, black -1px -1px 0, 
                 black -1px 1px 0, black 1px -1px 0;*/
        word-spacing: 5px;
        margin: 0;
        color: white;
        text-align: center;
    }

    #header a {
        color: #000 !important;
        text-decoration: none;
    }

    #middle {
        clear: both;
        background: url(../images/border2.gif) repeat-x;
        padding: 20px 10px;
    }

    #left_column {
        width: 195px;
        float: left;
    }

    .horizontal #left_column {
        width: auto;
        float: none;
    }

    form {
        margin: 0 auto;
        max-width: 500px;
        min-width: 300px;
        width: 60vw;
    }

    form label {
        display: block;
        margin: 0.5rem 0;
    }

    /* input[type="submit"] {
  display: block;
  width: 60%;
  margin: 0 auto;
 	} DID YOU KNOW YOU CAN DO THAT? */

    #navigation a {
        background: url(../images/button2_bg.gif) no-repeat;
        font-family: "navigation";
        width: 170px;
        height: 25px;
        display: block;
        padding-left: 21px;
        margin: 5px 0;
        font-size: 16px;
        color: white;
        text-decoration: none;
        line-height: 25px;
    }


    #navigation a:hover {
        background-position: 0 bottom;
    }


    .horizontal #navigation a {
        float: left;
    }


    #links a {
        background: url(../images/button1_bg.gif) no-repeat;
        font-family: "navigation";
        width: 170px;
        height: 25px;
        display: block;
        padding-left: 25px;
        margin: 5px 0;
        font-size: 16px;
        color: white;
        text-decoration: none;
        line-height: 25px;
    }

    #links a:hover {
        background-position: 0 bottom;
    }


    .horizontal #links a {
        float: left;
    }

    #unavaliable p {
        background: url(../images/button3_bg.png) no-repeat;
        width: 170px;
        height: 25px;
        display: block;
        padding-left: 25px;
        margin: 5px 0;
        font-size: 14px;
        color: white;
        text-decoration: none;
        line-height: 25px;
    }

    #unavaliable p:hover {
        background-position: 0 bottom;
    }

    .horizontal #unavaliable p {
        float: left;
    }

    #more_information {
        padding-top: 15px;
    }

    #middle_column {
        float: left;
        width: 75%;
        /* if you need the right column back, remove the comment tag (duh) and change the width of the middle column back to 50% */
        margin: 0px 20px;
    }

    #middle_column.two_column {
        float: left;
        width: 75%;
    }

    .horizontal #middle_column {
        width: auto;
        float: none;
    }

    .date_break {
        font-size: 19px;
        border-bottom: 1px solid #7A0C0C;
        margin-bottom: 10px;
    }

    .centered {
        display: block;
        margin-left: auto;
        margin-right: auto;
      	text-align: center;
    }

    .vertimage {
      	padding-left: 5px;
        width: 333px;
    }

    .thumbnails-4grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        justify-content: center;
        align-items: center;
    }

    .thumbnails-3grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        justify-content: center;
        align-items: center;
    }

    .small-thumbnail {
        max-width: 100%;
        padding: 3px 3px;
        height: auto;
        display: block;
    }

    #topButton {
        background: url(../images/button1_bg.gif) no-repeat;
        font-family: "navigation";
        width: 170px;
        height: 25px;
        margin: 5px 0;
        line-height: 25px;
        display: none;
        position: fixed;
        bottom: 20px;
        left: 150px;
        /*  left: 12.5%;  */
        z-index: 99;
        font-size: 18px;
        border: none;
        outline: none;
        background-color: transparent;
        color: white;
        cursor: pointer;
        padding: auto auto;
        border-radius: 4px;
    }
	
	.inlineButton {
	background: url(../images/button1_bg.gif) no-repeat;
        font-family: "navigation";
        width: 170px;
        height: 25px;
        line-height: 25px;
        left: 150px;
        /*  left: 12.5%;  */
        font-size: 18px;
        border: none;
        outline: none;
        background-color: transparent;
        color: white;
        cursor: pointer;
        padding: auto auto;
        border-radius: 4px;
    }
	

    .post {
        background: url(../images/parchment-light3.jpg);
        border: 1px solid #545454;
        margin-bottom: 35px;
        line-height: 18px;
    }

    .post h2 {
        background: url(../images/title_bg2.gif) repeat-x #0d2368;
        padding: 2px 10px;
        font-family: "Merriweather";
        margin: 0;
        font-size: 19px;
        color: white;
    }

    .post h1 {
        background: url(../images/title_bg2.gif) repeat-x #0d2368;
        padding: 2px 10px;
        font-family: "Merriweather";
        margin: 0;
        font-size: 22px;
        color: white;
        text-align: center;
    }

    .post_body {
        font-family: "Merriweather";
        padding: 5px 15px;
        font-size: 17px;
        line-height: 1.5;
    }

    .post_body a {
        color: #7A0C0C;
    }

    .post_body a:hover {
        color: #E51414
    }

    .post .postedby {
        float: left;
        clear: both;
        margin: 0
    }

    .post .additional {
        float: left;
        clear: both;
        margin: 0;
    }

    .post .timestamp {
        float: right;
        margin: 0;
    }

    .share {
        text-align: right;
    }

    .body_courier {
        color: #000000;
        font-size: 17px;
        line-height: 1.5;
        font-family: courier, serif;
        text-decoration: none;
    }

    .mobile-only {
        display: none;
    }

    #analysis-table {
        max-width: fit-content;
        margin-left: auto;
        margin-right: auto;
    }

    #analysis-table li {
        list-style: square;
        background: 0 5px no-repeat;
        padding-left: 10px;
        line-height: 20px;
    }

    ul {
        margin-top: 5px;
        padding: 10px;
    }

    ul li {
        list-style: none;
        background: url(../images/bullet.png) 0 1px no-repeat;
        padding-left: 30px;
        line-height: 25px;
    }

    .list_left,
    .list_right {
        width: 48%;
        float: left
    }

    .post_info {
        clear: both;
        padding-top: 10px;
    }

    .post_info a {
        color: #7A0C0C;
    }

    .post_info a:hover {
        color: #E51414;
    }

    /*#right_column {
	width: 26%;
	float: left;
}*/

    .box {
        background: url(../images/parchment-light3.jpg);
        border: 1px solid #545454;
        margin: 10px 0 25px 0;
        padding: 10px;
        font-family: "navigation";
        font: 16px;
    }

    .box a {
        color: #7A0C0C;
    }

    .box a:hover {
        color: #E51414;
    }

    #footer {
        clear: both;
        padding: 20px;
    }

    #subnav {
        margin: 10px 0;
        text-align: center;
    }

    #subnav a {
        color: #7A0C0C;
    }

    #subnav a:hover {
        color: #E51414;
    }

    .copyright {
        font-size: 10px;
        font-family: "navigation";
        margin: 0 auto;
    }

    .year {
        font-size: 13px;
        font-family: Arial;
        text-align: center;
    }
  
.button-54 {
  font-family: "Open Sans", sans-serif;
  font-size: 16px;
  letter-spacing: 2px;
  text-decoration: none;
  text-transform: uppercase;
  color: #000;
  cursor: pointer;
  border: 3px solid;
  padding: 0.25em 0.5em;
  box-shadow: 1px 1px 0px 0px, 2px 2px 0px 0px, 3px 3px 0px 0px, 4px 4px 0px 0px, 5px 5px 0px 0px;
  position: relative;
  user-select: none;
  margin-left: auto;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.button-54:active {
  box-shadow: 0px 0px 0px 0px;
  top: 5px;
  left: 5px;
}

    ::-moz-selection {
        /* for Firefox */
        color: white;
        background: #cc0001;
    }

    ::selection {
        color: white;
        background: #cc0001;
    }

    #toTop {
        width: 100px;
        border: 1px solid #ccc;
        background: #f7f7f7;
        text-align: center;
        padding: 5px;
        position: fixed;
        bottom: 15px;
        /* отступ кнопки от нижнего края страницы*/
        right: 10px;
        cursor: pointer;
        display: none;
        color: #333;
        font-family: verdana;
        font-size: 11px;
    }

    progress[value] {
        --w: 200px;
        /* the width*/
        --color:
            /* the progress color */
            linear-gradient(#fff8, #fff0),
            repeating-linear-gradient(135deg, #0003 0 10px, #0000 0 20px),
            /* if < 30% "red" */
            linear-gradient(red 0 0) 0 /calc(var(--w)*.3 - 100%) 1px,
            /* if < 60% "orange" */
            linear-gradient(orange 0 0) 0 /calc(var(--w)*.6 - 100%) 1px,
            /* else "green" */
            green;
        --background: lightgrey;
        /* the background color */

        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        border: none;
        width: var(--w);
        margin: 0 10px;
        border-radius: 10em;
        background: var(--background);
    }

    progress[value]::-webkit-progress-bar {
        border-radius: 10em;
        background: var(--background);
    }

    progress[value]::-webkit-progress-value {
        border-radius: 10em;
        background: var(--color);
    }

    progress[value]::-moz-progress-bar {
        border-radius: 10em;
        background: var(--color);
    }

    @font-face {
        font-family: "PageName";
        src: url("../fonts/Oldtimer.ttf") format("truetype");
        font-style: normal;
        font-weight: normal;
    }

    @font-face {
        font-family: "Merriweather";
        src: url("../fonts/Merriweather-Regular.ttf") format("truetype");
        font-style: normal;
        font-weight: normal;
    }

    @font-face {
        font-family: "navigation";
        src: url("../fonts/vladivostokregular.ttf") format("truetype");
        font-style: normal;
        font-weight: normal;
    }

    @font-face {
        font-family: "Okuda Regular";
        src: url("../fonts/Okuda/Okuda/Okuda.otf") format("opentype");
        font-style: normal;
        font-weight: normal;
    }
}

@media screen and (max-width: 999px) {

    html {
        scroll-behavior: smooth;
    }

    #navigation a {
        font-family: "navigation";
        padding-left: 8%;
        /* margin: 5px 0; */
        font-size: 16px;
        color: black;
        text-shadow: white 1px 1px 0, white -1px -1px 0,
            white -1px 1px 0, white 1px -1px 0;
        text-decoration: none;
    }

    #middle {
        clear: both;
        background: url(../images/border2.gif) repeat-x;
        padding: 20px 10px;
        overflow-x: scroll;
    }

    #header {
        height: 162px;
        /* width: 100%; */
        background-size: contain;
        background: url(../images/header-mobile.png);
        background-position: center;
    }

    #header p {
        text-shadow: 2px 2px 3px black;
        font-size: 24px;
        padding-top: 34%;
        word-spacing: 5px;
        margin: 0;
        color: white;
        font-family: "PageName";
        text-align: center;
    }

    #header a {
        color: #000 !important;
        text-decoration: none;
    }

    form {
        margin: 0 auto;
        max-width: 500px;
        min-width: 300px;
        width: 60vw;
    }

    form label {
        display: block;
        margin: 0.5rem 0;
    }

    #footer {
        clear: both;
        padding: 20px
    }

    #subnav {
        margin: 10px 0;
        text-align: center;
    }

    #subnav a {
        color: #7A0C0C;
        text-decoration: none;
    }

    #links a {
        display: none;
    }

    body {
        background: url(../images/parchment-light2.jpg) 100% 0 #151921 fixed;
        margin: 0%;
    }

    .large_image {
        max-width: 95%;
    }

    .centered {
        display: block;
        margin-left: auto;
        margin-right: auto;
      	text-align: center;
    }

    .vertimage {
        width: 95%;
    }

    .body_courier {
        color: #000000;
        font-size: 19px;
        line-height: 1.5;
        font-family: courier, serif;
        text-decoration: none;
    }

    .post {
        background: url(../images/parchment-light3.jpg);
        border: 1px solid #545454;
        line-height: 18px;
        width: 95%;
        float: left;
        text-align: start;
        padding-left: 2%;
        padding-right: 2%;
        font: Verdana 18px;
        color: black;
        margin-top: 6%;
    }

    .post_body {
        font-family: "Merriweather";
        font: 16px;
    }

    .post h1 {
        font-family: "PageName";
        font: 24px;
        line-height: 30px;
        text-align: center;
    }

    .post h2 {
        font-family: "PageName";
        font: 20px;
        line-height: 26px;
        text-align: center;
    }

    .copyright {
        font-size: 10px;
        font-family: "navigation";
        text-align: center;
    }

    .year {
        font-size: 11px;
        font-family: Arial;
        text-align: center;
    }

    .box {
        display: none;
    }

    .thumbnails-4grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        justify-content: center;
        align-items: center;
    }

    .thumbnails-3grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        justify-content: center;
        align-items: center;
    }

    .small-thumbnail {
        max-width: 100%;
        height: auto;
        display: block;
    }

    .desktop-only {
        display: none;
    }

    #analysis-table {
        height: 100vh;
        width: 100vw;
        position: absolute;
        margin-left: auto;
        margin-right: auto;
    }

    .post .postedby {
        float: left;
        clear: both;
        margin: 0;
        color: #808080;
        font: 14px Verdana;
        text-decoration: none;
    }

    .post .additional {
        float: left;
        clear: both;
        margin: 0;
        color: #808080;
        font: 14px Verdana;
    }

    .post .timestamp {
        float: right;
        margin: 10px;
        color: #808080;
        font: 14px Verdana;
    }

    .post_body a {
        color: #7A0C0C;
        text-decoration: none;
    }

    .post_info a {
        color: #7A0C0C;
    }

    ::-moz-selection {
        /* for Firefox */
        color: white;
        background: #cc0001;
    }

    ::selection {
        color: white;
        background: #cc0001;
    }

    progress[value] {
        --w: 200px;
        /* the width*/
        --color:
            /* the progress color */
            linear-gradient(#fff8, #fff0),
            repeating-linear-gradient(135deg, #0003 0 10px, #0000 0 20px),
            /* if < 30% "red" */
            linear-gradient(red 0 0) 0 /calc(var(--w)*.3 - 100%) 1px,
            /* if < 60% "orange" */
            linear-gradient(orange 0 0) 0 /calc(var(--w)*.6 - 100%) 1px,
            /* else "green" */
            green;
        --background: lightgrey;
        /* the background color */

        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        border: none;
        width: var(--w);
        margin: 0 10px;
        border-radius: 10em;
        background: var(--background);
    }

    progress[value]::-webkit-progress-bar {
        border-radius: 10em;
        background: var(--background);
    }

    progress[value]::-webkit-progress-value {
        border-radius: 10em;
        background: var(--color);
    }

    progress[value]::-moz-progress-bar {
        border-radius: 10em;
        background: var(--color);
    }

    @font-face {
        font-family: "PageName";
        src: url("../fonts/Oldtimer.ttf") format("truetype");
        font-style: normal;
        font-weight: normal;
    }

    @font-face {
        font-family: "navigation";
        src: url("../fonts/vladivostokregular.ttf") format("truetype");
        font-style: normal;
        font-weight: normal;
    }

    @font-face {
        font-family: "Merriweather";
        src: url("../fonts/Merriweather-Regular.ttf") format("truetype");
        font-style: normal;
        font-weight: normal;
    }
}