@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,400;0,500;0,700;1,400;1,500;1,700&display=swap');

body {
    font-family: 'Montserrat', 'Roboto', sans-serif;
    margin: 0;
    height: max-content;
    text-decoration: none;
    background: url(img/background-mobile.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

@media (min-width: 650px) {
    body {
        background: url(img/mercedes.png);
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        background-attachment: fixed;
    }
}

h1 {
    background: url(img/nadpis-mobile.png) 0 0 /
        cover no-repeat;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 65px;
    margin-top: 10px;
    margin-bottom: 0px;
    text-align: center;
}

@media (min-width: 650px) {
    h1 {
        background: url(img/nadpis.png) 0 0 /
        cover no-repeat;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    }
}

h3 {
    background: url(img/nadpis-mobile.png) 0 0 /
        cover no-repeat;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 35px;
    margin-top: 10px;
    text-align: center;
}

@media (min-width: 650px) {
    h3 {
        background: url(img/nadpis.png) 0 0 /
        cover no-repeat;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    }
}

article {
    text-align: center;
    align-items: center;
    justify-content: center;
    display: flex;
    flex-direction: column;
    transition: 750ms;
}

@media (min-width: 650px) {
    article {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

article.btn {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin: 5px;
}

nav {
    filter: drop-shadow(12px 12px 12px black);
    transition: 1.5s;
    background-color: rgba(90, 83, 83, 0.6);
    border-radius: 10%;
    text-align: center;
    position: relative;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    max-width: fit-content;
    margin: 20px
}

@media (min-width: 650px) {
    nav {
        flex-direction: row;
    }
}

nav a {
    text-decoration: none;
    color: #fff;
    display: inline-block;
    font-weight: 700;
}

nav img {
    width: 250px;
    height: 167px;
    border-radius: 10%;
}

nav h2 {
    color: #fff;
    margin: 15px;
    text-decoration: none;
}

nav:hover {
    rotate: 0 0 1 360deg;
    transition: 2s;
    font-weight: 700 bold;
    background-color: rgba(148, 138, 138, 0.6);
    transform: scale(1.125);
}

.button {
  color: white;
  background-color: #222;
  font-weight: 500;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  line-height: 0.75rem;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
  cursor: pointer;
  text-align: center;
  margin-right: 0.5rem;
  display: inline-flex;
  align-items: center;
  border: none;
  margin: 8px;
}

.button:hover {
  background-color: #333;
}

.button svg {
  display: inline;
  width: 1.3rem;
  height: 1.3rem;
  margin-right: 0.75rem;
  color: white;
}

.button:focus svg {
  animation: spin_357 0.5s linear;
}

@keyframes spin_357 {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}
