.m1{
    background: radial-gradient(circle, rgba(224,229,235,1) 0%, rgba(212,218,226,1) 100%);
    position: relative;
    min-height: 100vh;
}

body{ margin:0; padding: 0; }

.grid-container {
    display: grid;
    padding-bottom: 5%;
    grid-template-columns: 10% 1fr 1fr 10%;
    grid-template-rows: 80px 1fr;
}

.header { 
    grid-row-start: 1;
    grid-column-start: 1;
    grid-row-end: 2;
    grid-column-end: 7;
    background: white;
    min-height: 80px;
    max-height: 80px;
    display: flex;
    justify-content: center;
    box-shadow: 0 0 10px #F2BF93;
}

.logo{
    grid-row-start: 1;
    grid-column-start: 2;
    grid-row-end: 2;
    grid-column-end: 3;
    background-image: url(../img/logocut.png);
    background-position: center;
    background-repeat: no-repeat;
    opacity: 1;
    height: 80px;
    width: 80px;
    transition: opacity 0.6s ease-out;
}

.logo:hover{
    opacity: 0.5;
}

.navigacia{
    grid-row-start: 1;
    grid-column-start: 3;
    grid-row-end: 2;
    grid-column-end: 6;
    display: inline-block;
    vertical-align: top;
    font-size: 24px;
    font-family: 'Roboto', sans-serif;
    margin: auto 0 auto 0;
}

.navigacia_knopki{
    color: lightslategrey;
    text-decoration: none;
    margin: 0 40px;
    position: relative;
    transition: color 0.5s linear;
}

.navigacia_knopki:hover{
    color: orange;
}

.navigacia_knopki:after{
    content: "";
    display: block;
    width: 100%;
    height: 3px;
    opacity: 0;
    
    
    top: 100%;
    left: 0;
    z-index: 1;
    
    background-color: orange;
    position: absolute;
    
    transition: opacity .5s linear;
}

.navigacia_knopki:hover{
    color: orange;
}

.navigacia_knopki:hover:after{
    opacity: 1;
}

.m1::-webkit-scrollbar {
  width: 10px;
}

.m1::-webkit-scrollbar-track {
  -webkit-box-shadow: 5px 5px 5px -5px rgba(34, 60, 80, 0.2) inset;
  background-color: #f9f9fd;
}

.m1::-webkit-scrollbar-thumb {
  background-color: #f2bf93;
  background-image: -webkit-linear-gradient(45deg,rgba(255, 255, 255, .25) 25%,
                    transparent 25%,
                    transparent 50%,
                    rgba(255, 255, 255, .25) 50%,
                    rgba(255, 255, 255, .25) 75%,
                    transparent 75%,
                    transparent);
}

.karusel{
    grid-row-start: 2;
    grid-column-start: 2;
    grid-row-end: 3;
    grid-column-end: 4;
    width: 100%;
    max-height: 100%;
    margin-top: 5%;
    grid-template-columns: 1fr;
    grid-template-rows: 50px 1fr 10%;
    background-color: white;
    box-shadow: 0 0 10px #F2BF93;
}

.t1{
    font-size: 2rem;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    color: orange;
    text-align: center;
    margin: 2% 0;
}

.t2{
    position: relative;
    font-size: 1rem;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    color: darkslategray;
    text-align: center;
    transition: color .8s linear;
    cursor: default;
}

.t2:hover{
    color: orangered;
}

.carousel-3d {
    margin: 1% 10%;
    padding-top: 20px;
    -webkit-perspective: 500px;
    perspective: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}
.carousel-3d > * {
    flex: 0 0 auto;
}
.carousel-3d figure {
    margin: 0;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    transition: -webkit-transform 0.5s;
    transition: transform 0.5s;
    transition: transform 0.5s, -webkit-transform 0.5s;
}

.carousel-3d figure img{ height: 450px; }

.carousel-3d figure img,
.carousel-3d figure div {
    max-width: 100%;
    box-sizing: border-box;
    padding: 0;
}
.carousel-3d figure div:not(:first-of-type),
.carousel-3d figure img:not(:first-of-type) {
    position: absolute;
    left: 0;
    top: 0;
}
.carousel-3d nav {
    display: flex;
    justify-content: center;
    margin: 20px 0 0;
}
.carousel-3d nav button {
    flex: 0 0 auto;
    margin: 10% 20%;
    cursor: pointer;
    color: slategrey;
    background: white;
    border: 1px solid black;
    border-radius: 3px;
    padding: 5px 25px;
    font-weight: bold;
    transition: all .3s ease;
    box-shadow: 0 0 3px #F2BF93;
}
.carousel-3d nav button:hover {
    color: black;
    background: orange;
    opacity: 0.7;
}

.a{
    grid-row-start: 3;
    grid-column-start: 1;
    grid-row-end: 4;
    grid-column-end: 2;
    border-top: 3px solid slategrey;
    max-height: 4px;
    opacity: 0.3;
    margin: 0 20%;
}

.b{
    margin: 3% 20%;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    color: orange;
    text-align: center;
}

.c{
    position: relative;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 120px;
    background-color: white;
    box-shadow: 0 0 10px #F2BF93;
}

@media (max-width: 1200px) {
    .navigacia{ font-size: 1,4rem; padding: 2% 0 0 0; }
    .carousel-3d nav button { margin: 10% 5%; }
    .carousel-3d figure img,
    .carousel-3d figure div { max-height: 250px; max-width: 100%; }
}



