@import url('https://fonts.googleapis.com/css?family=Montserrat:100,200,300,400,500,600,700,800,900');

/* Asosiy menyu */
.has-submenu {
    position: relative;
}
.sub-menu {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    background: #f4f4f4;
    list-style: none;
    padding: 5px;
    min-width: 150px;
}

.has-submenu:hover > .sub-menu {
    display: block;
}

/* Ichki dropdown uchun */
.has-submenu .sub-menu .has-submenu {
    position: relative;
}

.has-submenu .sub-menu .sub-menu {
    left: -100%;
    top: 0;

}

/* Add scrollbar to submenus */
.sub-menu {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.sub-menu .has-submenu > a {
    cursor: pointer;
}

.sub-menu .test{
    padding: 10px 15px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
    color: #fff;
    border: 2px solid transparent;
    display: block;
    transition: all 0.5s;
}

.term{
    width: 300px;
    padding: 20px;
    font-size: 18px;
    background-color:orange;
    color:#000000;
    position: relative;
    font-weight: bold;
    text-align: justify;
    border-radius: 10px;
    display: none;
}
.term.show{
    display: block;
    width: 100%;
    height: auto;
}

.item-1 {
    position: relative;
    padding: 10px;
    outline: 2px solid orange;
    animation: outlineGlow 1.5s infinite alternate;
    background-color:orange;
    font-weight: bold;
    color: black;
    border-radius: 10px;
}
.about{
    overflow-x: hidden;
    overflow-y:auto;
    max-height: 400px;
    max-width: 1000px;
}
html,
body {
    height: 100%;
    padding: 0;
    margin: 0;
}



/* Carousel */
.js-transitions-disabled * {
    transition: none !important;
}

.carousel {
    position: relative;
    height: 100%;
    overflow: hidden;
    perspective: 50vw;
    perspective-origin: 50% 50%;
}

.carousel__control {
    position: absolute;
    height: 160px;
    width: 40px;
    background: #fff;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    z-index: 1;
}

.carousel__control a {
    position: relative;
    display: block;
    width: 100%;
    padding-top: 75%;
    box-sizing: border-box;
}

.carousel__control a:hover::before {
    background-color: rgba(0, 0, 0, 0.4);
}

.carousel__control a.active::before,
.carousel__control a.active:hover::before {
    background-color: orange;
}

.carousel__control a:first-child {
    margin-top: 15px;
}

.carousel__control a::before {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    margin: auto;
    border-radius: 50%;
    padding-top: 25%;
    width: 25%;
    background: rgba(0, 0, 0, 0.2);
    content: '';
    display: block;
    margin-top: -12.5%;
}

.carousel__stage {
    position: absolute;
    top: 20px;
    bottom: 20px;
    left: 20px;
    right: 20px;
    margin: auto;
    transform-style: preserve-3d;
    transform: translateZ(calc(-50vh + 20px));
}

.spinner {
    position: absolute;
    width: calc(50vw - 20px);
    height: calc(100vh - 40px);
    top: 0;
    left: 0;
    right: auto;
    bottom: 0;
    margin: auto;
    transform-style: preserve-3d;
    transition: transform 1s;
    backface-visibility: hidden;
    transform-origin: 50% 50%;
    transform: rotateX(0);
}

.js-spin-fwd .spinner {
    transform: rotateX(-90deg);
}

.js-spin-bwd .spinner {
    transform: rotateX(90deg);
}

.js-spin-fwd .spinner--right {
    transform: rotateX(90deg);
}

.js-spin-bwd .spinner--right {
    transform: rotateX(-90deg);
}

.spinner--right {
    right: 0;
    left: auto;
}

.spinner__face {
    display: none;
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.spinner__face.js-next {
    display: block;
    transform: rotateX(90deg) translateZ(calc(50vh - 20px));
}

.spinner--right .spinner__face.js-next {
    transform: rotateX(270deg) translateZ(calc(50vh - 20px));
}

.js-spin-bwd .spinner__face.js-next {
    transform: rotateX(-90deg) translateZ(calc(50vh - 20px));
}

.js-spin-bwd .spinner--right .spinner__face.js-next {
    transform: rotateX(-270deg) translateZ(calc(50vh - 20px));
}

.js-active {
    display: block;
    transform: translateZ(calc(50vh - 20px));
}

/* Content */
.content {
    position: absolute;
    width: 200%;
    height: 100%;
    left: 0;
}

.spinner--right .content {
    left: -100%;
}

.content__left,
.content__right {
    position: absolute;
    left: 0;
    top: 0;
    width: 50%;
    height: 100%;
}

.content__right {
    right: 0;
    left: auto;
}

.content__left {
    background-repeat: no-repeat;
    background-size: cover;
}

.content__left::after {
    position: absolute;
    display: block;
    content: "";
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.1);
}

.content__left h1 {
    position: absolute;
    top: 50%;
    margin-top: -3vw;
    text-align: center;
    /*font-family: oswald;*/
    font-size: 5vw;
    height: 10vw;
    opacity: 1;
    color: #fff;
    width: 100%;
    letter-spacing: 0.15em;
    line-height: 0.6;
}



.content__left span {
    font-size: 1vw;
    font-weight: 300;
    letter-spacing: 0.2em;
    opacity: 0.9;
    /*font-family: Merriweather;*/
}

.content__right {
    display: flex;
    align-items: center;
    justify-content: center;
}

.content__right .content__main {
    position: absolute;
    /*font-family: Merriweather, serif;*/
    text-align: left;
    color: #fff;
    font-size: 1.3vw;
    padding: 0 8vw;
    line-height: 1.65;
    font-weight: 300;
    margin: 0;
    opacity: 0.8;
}

.content__right .content__main p:last-child {
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.85em;
}

.content__right .content__index {
    font-size: 30vh;
    position: absolute;
    right: -1vh;
    top: 35vh;
    opacity: 0.04;

    color:orange;
}

/* Background images for different locations */
[data-type="iceland"] .content__left {
    background-image: 
    url('./photo/11.jpg'),
    url('./photo/22.jpg'),
    url('./photo/33.jpg'),
    url('./photo/44.jpg');
    /* url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/215059/iceland.jpg'),
    url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/215059/china.jpg'),
    url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/215059/usa.jpg'),
    url('./photo/bahor.jpg'); */
    /* url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/215059/peru.jpg'); */
    background-size: 50% 50%;
    background-position: top left, top right, bottom left, bottom right;
    background-repeat: no-repeat;

}

.spinner--right [data-type="iceland"] .content__left {
    background-image: none;
}

[data-type="china"] .content__left {
    background-image: 
    url('./photo/55.jpg'),
    url('./photo/66.jpg'),
    url('./photo/77.jpg'),
    url('./photo/88.jpg');
    background-size: 50% 50%;
    background-position: top left, top right, bottom left, bottom right;
    background-repeat: no-repeat;
}

.spinner--right [data-type="china"] .content__left {
    background-image: none;
}

[data-type="usa"] .content__left {
    background-image: 
    url('./photo/mashq-1.jpg'),
    url('./photo/mashq-2.jpg'),
    url('./photo/mashq-3.jpg'),
    url('./photo/mashq-4.jpg');
    background-size: 50% 50%;
    background-position: top left, top right, bottom left, bottom right;
    background-repeat: no-repeat;
}

.spinner--right [data-type="usa"] .content__left {
    background-image: none;
}

[data-type="peru"] .content__left {
    background-image: 
    url('./photo/mashq-5.jpg'),
    url('./photo/mashq-6.jpg'),
    url('./photo/mashq-7.jpg'),
    url('./photo/mashq-8.jpg');
    background-size: 50% 50%;
    background-position: top left, top right, bottom left, bottom right;
    background-repeat: no-repeat;
}

[data-type="japan"] .content__left {
    background-image: 
    url('./photo/mashq-9.jpg'),
    url('./photo/mashq-10.jpg'),
    url('./photo/mashq-11.jpg'),
    url('./photo/mashq-12.jpg');
    background-size: 50% 50%;
    background-position: top left, top right, bottom left, bottom right;
    background-repeat: no-repeat;
}

[data-type="index-6"] .content__left {
    background-image: url('./photo/bahor.jpg');
    background-size: cover; /* Yoki 'contain' */
    background-position: center;
    background-repeat: no-repeat;
}

[data-type="index-7"] .content__left {
    background-image: url('./photo/1.jpg');
    background-size: cover; /* Yoki 'contain' */
    background-position: center;
    background-repeat: no-repeat;
}

[data-type="index-8"] .content__left {
    background-image: url('./photo/2.jpg');
    background-size: cover; /* Yoki 'contain' */
    background-position: center;
    background-repeat: no-repeat;
}

[data-type="index-9"] .content__left {
    background-image: 
        url('./photo/mashq-13.jpg'),
        url('./photo/mashq-14.png'); /* Ikkinchi rasm */
    background-size: 50% 100%, 50% 100%; /* Ikkala rasmni teng bo‘lishi uchun */
    background-position: left center, right center; /* Rasm joylashuvi */
    background-repeat: no-repeat;
}


[data-type="index-10"] .content__left {
    background-image: url('./photo/mashq-15.jpg');
    background-size: contain; /* Yoki 'contain' */
    background-position: center;
    background-repeat: no-repeat;
}

[data-type="index-11"] .content__left {
    background-image: url('./photo/mashq-16.jpg');
    background-size: contain; /* Yoki 'contain' */
    background-position: center;
    background-repeat: no-repeat;
}

[data-type="index-12"] .content__left {
    background-image: url('./photo/mashq-17.jpg');
    background-size: contain; /* Yoki 'contain' */
    background-position: center;
    background-repeat: no-repeat;
}

[data-type="index-13"] .content__left {
    background-image: url('./photo/mashq-20.jpg');
    background-size: contain; /* Yoki 'contain' */
    background-position: center;
    background-repeat: no-repeat;
}


[data-type="index-14"] .content__left {
    background-image: 
    url('./photo/mashq-21.jpg'),
    url('./photo/mashq-22.jpg'),
    url('./photo/mashq-23.jpg'),
    url('./photo/mashq-24.jpg');
    background-size: 50% 50%;
    background-position: top left, top right, bottom left, bottom right;
    background-repeat: no-repeat;
}

[data-type="index-15"] .content__left {
    background-image: url('./photo/mashq-25.jpg');
    background-size: contain; /* Yoki 'contain' */
    background-position: center;
    background-repeat: no-repeat;
}

[data-type="index-16"] .content__left {
    background-image: url('./photo/mashq-25.jpg');
    background-size: contain; /* Yoki 'contain' */
    background-position: center;
    background-repeat: no-repeat;
}

[data-type="index-17"] .content__left {
    background-image: url('./photo/topshiriq.jpg');
    background-size: contain; /* Yoki 'contain' */
    background-position: center;
    background-repeat: no-repeat;
}
[data-type="index-18"] .content__left {
    background-image: url('./photo/topshiriq.jpg');
    background-size: contain; /* Yoki 'contain' */
    background-position: center;
    background-repeat: no-repeat;
}

.content__main .question{
    word-spacing: 0px; /* So‘zlar orasidagi bo‘shliqni yo‘q qiladi */
    font-size: 10px;
}










.spinner--right [data-type="peru"] .content__left {
    background-image: none;
}


.quad-image {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    width: 400px;
    height: 400px;
}
.quad-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;

}


.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    background-color: white;
    margin-top: 40px;
    /* margin: 10% auto; */
    /* padding: 20px; */
    width: 60%;
    position: relative;
    border-radius: 10px;
}

.close1 {
    position: absolute;
    top: 10px;
    right: 140px;
    font-size: 30px;
    cursor: pointer;
    color: rgb(255, 0, 0);
    outline:transparent;
}

.pdf-link {
    color: blue;
    text-decoration: none;
    font-weight: bold;
}

.pdf-link:hover {
    color: red;
}
.content__main p{
    text-align: justify;
    font-size: 20px;   
}

.content__main .info {
    margin-top: 60px;
    font-size: 12px;
    text-align: center;
    font-style: italic;

}

