@font-face {
    font-family: Larosa;
    src: url(../fonts/LarosaBold.ttf);
}

body{
    background-color: #1B4457;
    overflow-x: hidden;
    margin: 0;
}

.wrapper {
    height: 100vh;
    overflow-y: hidden;
    overflow-x: hidden;
    perspective: 10px;
}

:root {
    --dark-color: black;
    --light-color: white;
}

#iframe {
    position: absolute;
  
}

.f1 {
    scale: 7;
    animation-name: expand1;
    animation-duration: 2s;
    animation-fill-mode: forwards;
    animation-timing-function: ease-in-out;
}
.f2 {
    scale: 1;
    animation-name: expand2;
    animation-duration: 1s;
    animation-fill-mode: forwards;
    animation-delay: .3s;
    
}
.f3 {
    scale: 7;
    animation-name: expand3;
    animation-duration: 1.5s;
    animation-delay: .45s;
    animation-fill-mode: forwards;
}

.f4 {
    margin-top: -18%;
    opacity: 0;
    scale: 1.1;
    position: absolute;
    animation: f4 5s ease-in-out 0s 1;
    animation-iteration-count: infinite;
    animation-direction: alternate;
    animation-delay: 1s;
}

.fh {
    margin-top: -44%;
    opacity: 0;
    scale: 1.1;
    position: absolute;
    animation: fh 5s ease-in-out 0s 1;
    animation-iteration-count: infinite;
    animation-direction: alternate;
    animation-delay: 1s;
    z-index: -1;
}

.logo1 {
    scale: .39;
    z-index: 1;
    opacity: 0;
    animation-name: logo;
    animation-duration: .4s;
    animation-delay: .5s;
    animation-fill-mode: forwards;
}


.box {
    font-family: Larosa;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100px;
    width: 100%;
    background-color: #F7EEE3;
    color: #4592A6;
    margin: 1px;
    padding: 5px;
    border-radius: 2px;
    overflow: auto;
}

.boxOne {
    font-family: Larosa;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    width: 70%;
    background-color: #F7EEE3;
    color: #4592A6;
    overflow: auto;
    transform: rotate(-90deg);
}

.boxTwo {
    font-family: Larosa;
    display: flex;
    border: solid 1px #4592A6;
    align-items: center;
    justify-content: center;
    height: 200px;
    width: 100%;
    background-color: #F7EEE3;
    color: #4592A6;
    padding: 5px;
    border-radius: 0px;
    overflow: auto;
}

.page {
    padding: 5%;
    margin: 5%;
    border: solid 2px #F7EEE3;
    background-color: #F7EEE3;
}

.box_nav {
    font-family: Larosa;
    align-items: center;
    justify-content: center;
    background-color: #D4B170;
    color: #F7EEE3;
    margin: 1px;
    padding: 5px;
}

#iFrame {
    position: relative;
    display: flex;
    height: 100%;
    bottom:0;
    left:0;
    width:100%;
    height:100vh;
    object-fit: cover;

}
.vcover {
    display: flex;
    position: absolute;
    object-fit: fill;
    top: 0;
    left:0;
}

.box:hover {
    color: #D4B170;
    background-color: #F7EEE3;
    cursor: pointer;
}
.box:active {
    border: 3px solid #4592A6;
    box-shadow: 1px 1px 1px 1px #3D3120;
    transform: scale(.95);
    transition: .15s;
}

.box_lang:hover {
    color: #D4B170;
    background-color: #F7EEE3;
    cursor: pointer;
}
.box_lang:active {
    
    box-shadow: 1px 1px 1px 1px #3D3120;
    transform: scale(.95);
    transition: .15s;
}

.english, .german, .ukrainian {
    border: none;
    
}

.nav-list{
    display: flex;
}

/*ENGLISH*/
/*Chinese Simplified*/


/*Chinese Traditional*/
.box3 {
    position: relative;
}

.box3::after{
    content: "MALAYSIA";
    display: inline-block;
    position: absolute;
    bottom: 10;
    left: 0;
    right: 0;
    height: 20px;
}

/*Japanese*/
.box4 {
    position: relative;
}

.box4::after{
    content: "JAPAN";
    display: inline-block;
    position: absolute;
    bottom: 10;
    left: 0;
    right: 0;
    height: 20px;
}

/*Ukrainian*/
.box5 {
    position: relative;
}

.box5::after{
    content: "ESAN";
    display: inline-block;
    position: absolute;
    bottom: 10;
    left: 0;
    right: 0;
    height: 20px;
}

/*German*/
.box6 {
    position: relative;
}

.box6::after{
    content: "AMWAY HONG KONG";
    display: inline-block;
    position: absolute;
    bottom: 10;
    left: 0;
    right: 0;
    height: 20px;
}

/*Korean*/
.box7 {
    position: relative;
}

.box7::after{
    content: "KOREA";
    display: inline-block;
    position: absolute;
    bottom: 10;
    left: 0;
    right: 0;
    height: 20px;
}

/*Thai*/
.box8 {
    position: relative;
}

.box8::after{
    content: "THAILAND";
    display: inline-block;
    position: absolute;
    bottom: 10;
    left: 0;
    right: 0;
    height: 20px;
}

/*Vietnamese*/
.box9 {
    position: relative;
}

.box9::after{
    content: "VIETNAM";
    display: inline-block;
    position: absolute;
    bottom: 10;
    left: 0;
    right: 0;
    height: 20px;
}

/*Russian*/
.box10 {
    position: relative;
}

.box10::after{
    content: "AMWAY TAIWAN";
    display: inline-block;
    position: absolute;
    bottom: 10;
    left: 0;
    right: 0;
    height: 20px;
}

.mobile-container {
    max-width: 480px;
    margin: auto;
    background-color: #555;
    height: 500px;
    color: white;
    border-radius: 10px;
  }
  
  .topnav {
    overflow: hidden;
    background-color: #2C2C2C;
    position: relative;
    z-index: 1;
  }
  
  .topnav #myLinks {
    display: none;
  }
  
  .topnav a {
    color: #F7EEE3;
    padding: 30px 20px;
    margin-top: -20px;
    text-decoration: none;
    font-size: 20px;
    display: block;
  }
  
  .topnav a.icon {
    background: #D4B170;
    display: block;
    position: absolute;
    right: 0;
    top: 0;
  }
  
  .topnav a:hover {
    background-color: #F7EEE3;
    color: #2C2C2C;
  }
  
  .active {
    background-color: #D4B170;
    color: #F7EEE3;
  }

  .flex-header {
    display: flex;
  }

  .logo2 {
    position: absolute;
    overflow-x: clip;
    max-width: 18%;
    left: 40%;
    animation: 3.2s ease-in-out 0s 1 slideInLeft;
    animation-fill-mode: forwards;
    animation-iteration-count: infinite;
    animation-direction: alternate;
  }

  .logoTwo {
    position: absolute;
    overflow-x: clip;
    margin-top: 0%;
    max-width: 18%;
    left: 40%;
    animation: 3.2s ease-in-out 0s 1 fadeInAnimation;
    animation-fill-mode: forwards;
  }

  .boxThree {
    font-family: Larosa;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
    width: 100%;
    background-color: #1B4457;
    border: solid #1B4457 5px;
    color: #4592A6;
    border-radius: 2px;
    overflow: auto;
  }

  .box_lang {
    font-family: Larosa;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
    width: 100%;
    background-color: #F7EEE3;
    color: #4592A6;
    margin: 1px;
    padding: 2%;
    border-radius: 2px;
    overflow: auto;
  }

  .flexbox_lang {
    display: flex;
    width: 25%;
    justify-content: center;
    align-items: center;
    margin: auto;
    margin-top: 11%;
  }

  .flexbox {
    display: flex;
  }
  .flex1 {
    margin-right: .5%;
  }
  .flex2 {
    margin-left: .5%;
  }


@keyframes expand1 {
    0% {
        transform: scale(.2);
        
    }
   
    100% {
        transform: scale(1);
    }
}

@keyframes expand2 {
    0% {
        opacity: 0;
    }
    30% {
        opacity: 1;
    }
    31% {
        opacity: 0;
    }
    100% {
        opacity: 0;
    }
}


@keyframes expand3 {
    0% {
        transform: scale(.2);
       
    }
    100% {
        transform: scale(1);
        
    }
}

@keyframes logo {
    0% {
        opacity: 0;

    }
    99% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes f4 {
    0% {
        opacity: 0;
        scale: 1;
        rotate: 0deg;
    }
    100% {
        opacity: 0.9;
        scale: 0.99;
        rotate: 1deg;
    }
}

@keyframes fh {
    0% {
        opacity: 0;
        scale: .95;
        rotate: 0deg;
    }
    100% {
        opacity: 0.9;
        scale: 0.99;
        rotate: 1deg;
    }
}

@keyframes fadeInAnimation {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}
@media (min-width: 40em) {
    .langs {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 71em) {
    .langs {
        grid-template-columns: repeat(5, 1fr);
}
}

@media (min-width: 40em) {
    .box {
        font-size: 100%;
    }

@media (min-width: 60em) {
    .box {
        font-size: 100%;
    }
}}


@media (max-width: 700px) {
    .box {
        display: none;
    }
}

@media (min-width: 701px) {
    .topnav {
        display: none;
    }
}