/* 
Created by Norton Andreev
Last updated: 
*/

/* General */
body {
  position: relative;
  width: 100%;
  min-width: 320px;
  display: flex;
  flex-direction: column;
  font-family: "Roboto", sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -moz-text-size-adjust: none;
  -ms-text-size-adjust: 100%;
  min-height: calc(var(--vh, 1vh) * 100);
}

.grecaptcha-badge {
  visibility: hidden;
}

/* Header */
header {
  margin-bottom: 1rem;
  background-color: #38404d;
}

nav a {
  display: block;
  color: white;
}

#logo {
  width: 10%;
  height: 10%;
}

#logo:hover {
  cursor: pointer;
}

#topnav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

#topnav a {
  float: left;
  text-align: center;
  padding: 5px 7px;
  border-bottom: 3px solid transparent;
}

#topnav a:hover {
  border-bottom: 3px solid white;
  color: white;
  text-decoration: none;
}

#topnav a.active {
  border-bottom: 3px solid white;
}

#topnav a:last-child {
  padding-right: 0;
}

#topnav a:first-child {
  padding-left: 0;
}

#subnav {
  padding-bottom: 1em;
  background-color: #38404d;
  position: absolute;
  z-index: 100;
  width: 100%;
}

#subnav_links {
  width: 80%;
  margin: 0 auto;
  max-width: 960px;
}

/* Main */
main {
  flex: 1 0 auto;
}

/* Paragraphs */
p {
  margin-bottom: 2rem;
}

.roberto_c {
  font-family: "Roboto Condensed", sans-serif;
}

.uppercase {
  text-transform: uppercase;
}

.center {
  text-align: center;
}

.bold {
  font-weight: 600;
}

.black {
  font-weight: 900;
}

.gray {
  color: gray;
}

.white {
  color: white;
}

small {
  font-size: smaller;
  display: block;
  margin-bottom: 1em;
}

/* Contact Form */
::placeholder {
  font-family: "Roboto Condensed", sans-serif;
}

input[type="submit"] {
  font-family: "Roboto Condensed", sans-serif;
  border-radius: 0;
  margin-bottom: 0;
  line-height: initial;
  letter-spacing: initial;
}

input[type="email"],
input[type="text"],
textarea {
  border-radius: 0;
  border-width: 2px;
}

input[type="email"]:focus,
input[type="text"]:focus,
textarea:focus {
  border: 2px solid #38404d;
}

input[type="submit"]:hover {
  border: 2px solid #38404d;
  background-color: white;
  color: #38404d;
}

input[type="submit"] {
  color: white;
  background-color: #38404d;
  border: 2px solid #38404d;
}

textarea {
  resize: none;
}

/* Links */
a {
  color: #6bf;
  text-decoration: none;
}

a:hover {
  color: #6bf;
  text-decoration: underline;
}

a span {
  margin-left: 0.3rem;
}

.body_color,
.body_color:hover {
  color: black;
}

.contacts_link {
  color: #38404d;
  text-decoration: underline;
}

/* Misc */
hr {
  width: 100%;
  border-top: 1px solid #38404d;
  margin-top: 1rem;
  margin-bottom: 2rem;
}

/* Spacing */

.m-0 {
  margin: 0;
}

.mb-0 {
  margin-bottom: 0;
}

.mb-1 {
  margin-bottom: 1rem;
}

.mb-2 {
  margin-bottom: 2rem;
}

.mb-25 {
  margin-bottom: 2.5rem;
}

.mr-05 {
  margin-right: 0.5rem;
}

/* Footer */
footer {
  font-family: "Roboto Condensed", sans-serif;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  padding: 1em 0;
  color: white;
  background-color: #38404d;
}

footer a,
footer a:hover {
  color: white;
}

.footer_wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Uslugi Page*/
.uslugi {
  background-position: center; /* Center the image */
  background-repeat: no-repeat; /* Do not repeat the image */
  background-size: cover; /* Resize the background image to cover the entire container */
  height: 200px;
  display: flex;
  flex-direction: column;
  padding: 2rem;
  justify-content: center;
  align-items: flex-start;
  color: white;
}

#print_home {
  background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url(../images/print_home.jpg);
}

#banners_home {
  background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url(../images/banner_home.jpg);
}

#souvenirs_home {
  background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url(../images/souvenirs_home.jpg);
}

#maps_home {
  background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url(../images/map_home.jpg);
}

#print_home:hover {
  background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url(../images/print_home.jpg);
  transition: linear-gradient 2s ease-in-out;
}

#banners_home:hover {
  background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url(../images/banner_home.jpg);
}

#souvenirs_home:hover {
  background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url(../images/souvenirs_home.jpg);
}

#maps_home:hover {
  background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url(../images/map_home.jpg);
}

/* Owl Carousel */
.owl-carousel .owl-item img {
  overflow: hidden;
}

.owl-carousel .owl-item .contain {
  object-fit: contain;
}

.owl-carousel {
  margin-bottom: 2rem;
}

.owl-theme .owl-nav.disabled + .owl-dots {
  margin-top: 0;
}

.standard img {
  height: 15em;
}

@media screen and (min-width: 768px) {
  .uslugi {
    height: 150px;
  }
}

@media screen and (max-width: 900px) {
  .hidden_mobile {
    display: none;
  }

  .scrollLink {
    padding: 0.5em 0;
  }

  .scrollLink:not(:last-child) {
    border-bottom: 1px solid rgb(77, 84, 96);
  }

  #subnav_links a:hover {
    color: white;
    text-decoration: none;
    opacity: 0.7;
  }
}

@media screen and (min-width: 900px) {
  #subnav {
    position: relative;
    padding-bottom: 0;
  }

  #subnav #subnav_links {
    flex-direction: row;
    justify-content: space-between;
    display: flex;
  }

  #subnav a {
    border-bottom: 3px solid #38404d;
  }

  #subnav a:not(:last-child) {
    padding-right: 1rem;
  }

  #subnav a:hover {
    border-bottom: 3px solid white;
    color: white;
    text-decoration: none;
  }
}
