

/* Language Radiobuttons Display */

.input-hidden {
  position: absolute;
  left: -9999px;
}

input[type=radio]:checked + label>img {
  border: 1px solid #fff;
  box-shadow: 0 0 3px 3px #090;
}

/* Stuff after this is only to make things more pretty */
input[type=radio] + label>img {
  border: 1px dashed #444;
  width: 5.0vmin;
  height: 3.75vmin;
  transition: 500ms all;
}

input[type=radio]:checked + label>img {
  transform:
    rotateZ(-10deg)
    rotateX(10deg);
}

.flags {
    padding-top: 1vmax;
    padding-right: 3vmax;
    float: right;
}

/* Text effects */

.center-v {
    margin: auto;
    position: relative;
    top: 45%;
}

.strong-text {
    font-size: 1.9em;
    color: orange;
    font-weight: 600;
}

.text-stroke-black {
    -webkit-text-stroke: 1px black;
}

.text-center {text-align: center;
}

.red-underline {
    text-decoration: red underline;
}

.red-underline-wavy {
    text-decoration: red wavy underline;
}

.linear-wipe {
  text-align: center;
  /* background: linear-gradient(to right, #FFA 20%, #FA5 40%, #FA5 60%, #FFA 80%);*/
  background: linear-gradient(to left,
        rgba(255, 0, 0, 1) 0%,
        rgba(255, 154, 0, 1) 10%,
        rgba(208, 222, 33, 1) 20%,
        rgba(79, 220, 74, 1) 30%,
        rgba(63, 218, 216, 1) 40%,
        rgba(47, 201, 226, 1) 50%,
        rgba(28, 127, 238, 1) 60%,
        rgba(95, 21, 242, 1) 70%,
        rgba(186, 12, 248, 1) 80%,
        rgba(251, 7, 217, 1) 90%,
        rgba(255, 0, 0, 1) 100%);
  background-size: 200% auto;
  color: #000;
  background-clip: text;
  text-fill-color: transparent;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 9s linear infinite;
}

  @keyframes shine {
    to {
      background-position: 200% center;
    }
  }

.text-shadow-1 {
    text-shadow: 6px 5px 8px #000;
}


input[type=radio] {
	opacity: 0;
}

label {
  display: inline-block;
  margin: 10px 0 10px 0;
  cursor: pointer;
}

#sapphire-logo {
    width:400px;
    height: 120px;
}

.sapphire-logo-container {
    position: fixed;
    top: 60px;
    left: 20px;
    transition: top 0.2s ease-in-out;
}

#sapphire-logo img{
    width:330px;
    height: auto;
    position:absolute;
    max-height:100%;
    top:10%;
    left:50%;
    transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    transform-origin: 0 0;
    -webkit-transform-origin: 0 0;
}

#sapphire-logo img.main {
    z-index:2;
}

#sapphire-logo img.glow {
  z-index:1;
  transform: scale(1.01) translate(-50%, -50%);
  -webkit-transform: scale(1.01) translate(-50%, -50%);
  filter: brightness(0) invert(1) blur(5px);
  -webkit-filter: brightness(0) invert(1) blur(15px);
  opacity:1;
}

#sapphire-logo img.main:hover ~ img.glow {
  z-index:1;
  transform: scale(1.01) translate(-50%, -50%);
  -webkit-transform: scale(1.01) translate(-50%, -50%);
  filter: brightness(0) invert(1) blur(5px);
  -webkit-filter: brightness(0) invert(1) blur(25px);
  opacity:1;
}

.sapphire-side-logo {
    width: 210px;
    height: auto;
    margin: auto;
    position: absolute;
    top: 130px;
    left:-30px;
    transform: rotateZ(-90deg);
    display: none;
}


/* Navbar section */

.nav {
    width: auto;
    height: auto;
    float: right;
    line-height: 1.4rem;
    text-align: center;
}

.nav div.logo {
    float: left;
    width: auto;
    height: auto;
    padding-left: 3rem;
}

.nav div.logo a {
    text-decoration: none;
    color: #fff;
    font-size: 2.5rem;
}

.nav div.logo a:hover {
    color: #00E676;
}

.nav div.main_list {
    height: 1.4rem;
    width: 100%;
    height: auto;
}

.navlinks {
    list-style: none;
    position: relative;
    float: right;
    width: 100%;
    height: auto;
    margin-left: auto;
}

.nav-item{
    display: inline-block;
    width: auto;
    height: 1.4rem
    padding: 0;
    padding-left: 0rem;
}

.nav-item a {
    text-decoration: uppercase;
    color: #fff;
    line-height: 1.4em;
    font-size: 1.4rem;
}

.list-container {
    width: 70vw;
    margin-left: auto;
}

.navTrigger {
    display: none;
    background: rgba(0,0,0,0.5);
    margin-top: 15px;
    margin-right: 10px;
    padding: 4px;
    padding-bottom: 6px;
    border-radius: 2px;
}

.nav {
    padding-top: 20px;
    padding-bottom: 20px;
    -webkit-transition: all 0.4s ease;
    transition: all 0.4s ease;
}

.nav-wrapper {
    width: 100%;
    height: 2rem;
    position: sticky;
    top: 0px;
    z-index: 2000;
}

/*.tm-img-overlay {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0,0,0,0.4);
    cursor: pointer;
    transition: all 0.3s ease ;
}

.tm-overlay-icon {
    color: #a7a7a7;
    opacity: 1;
    font-size: 2rem;
    padding: 10px 15px;
    background-color: rgba(0,0,0,0.5);
    border-radius: 50%;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-right: 8px;
    z-index: 1002;
    transition: all 0.3s ease;
}

.tm-img-overlay:hover { background-color: transparent; }
.tm-img-overlay:hover .tm-overlay-icon { opacity: 0; }
.tm-catalog-item-description { flex: 1; }*/

.nav-item .nav-link {
    border-bottom: 1px solid transparent;
    color: yellow !important;
    font-family: "Be Vietnam";
    font-size: 1.4rem !important;
    padding-left: 4px;
    padding-right: 6px;
    padding-top: 0px;
    padding-bottom: 0px;
}
.nav-item.active .nav-link,
.nav-item:hover  .nav-link {
    border-bottom: 1px solid white;
    color: orange !important;
}



/***** Ming *****/

figure.effect-ming {
	background: #030c17;
}

figure.effect-ming img {
	opacity: 0.9;
	-webkit-transition: opacity 0.35s;
	transition: opacity 0.35s;
}

figure.effect-ming figcaption::before {
	position: absolute;
	top: 30px;
	right: 30px;
	bottom: 30px;
	left: 30px;
	border: 2px solid #fff;
	box-shadow: 0 0 0 30px rgba(255,255,255,0.2);
	content: '';
	opacity: 0;
	-webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
	transition: opacity 0.35s, transform 0.35s;
	-webkit-transform: scale3d(1.4,1.4,1);
	transform: scale3d(1.4,1.4,1);
}

figure.effect-ming h2 {
    font-size: 1.3em;
	opacity: 0;
	-webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
	transition: opacity 0.35s, transform 0.35s;
	-webkit-transform: scale(1.5);
	transform: scale(1.5);
}

figure.effect-ming:hover figcaption::before,
figure.effect-ming:hover h2 {
	opacity: 1;
	-webkit-transform: scale3d(1,1,1);
	transform: scale3d(1,1,1);
}

figure.effect-ming:hover figcaption { background-color: rgba(58,52,42,0); }
figure.effect-ming:hover img { opacity: 0.4; }

/***** End Ming *****/

@media (min-width: 992px) {
    /*#tm-main-nav*/ .nav-item { margin: 20px 40px; }
    .navbar-expand-lg .navbar-nav .nav-link { padding: 8px 0px; }
    .navbar-expand-lg .navbar-collapse { justify-content: flex-end; }
}

@media (min-width: 768px) {
  .container {
    width: 750px;
  }

}

@media (max-width: 1300px) {
    .sapphire-side-logo {
        width: 100px;
    }
}

@media (max-width: 1023px) {
    .sapphire-side-logo {
        display: none;
    }
}

@media (max-width: 991px) {

    .sapphire-side-logo {
        display: none;
    }
    .nav-item { margin-bottom: 10px; }

    .navTrigger {
        display: block;
    }
    .nav div.logo {
        margin-left: 15px;
    }
    .nav div.main_list {
        width: 90%;
        height: 0;
        float: right;
        overflow: hidden;
        flex-basis: 100%;
        flex-grow: 1;
        align-items: center;
        border-radius: 10px;
        background-color: rgba(0, 0, 0, 0.5);
    }
    .nav div.show_list {
        height: auto;
        display: none;
    }
    .nav div.main_list ul, .navlinks {
        display: flex;
        flex-direction: column;
        width: auto;
        height: auto;

    }
    .nav div.main_list ul li, .nav-item {
        width: 100%;
        text-align: right;
        display: inherit;
    }
    .nav div.main_list ul li a, .nav-item a {
        text-align: center;
        width: 100%;
        font-size: 3rem;
        padding: 20px;
    }
    .nav div.media_button {
        display: block;
    }
}

@media (max-width: 879px) {
    /*.tm-categories-container {
        flex-direction: column;
        align-items: flex-start;
    } */

    input[type=radio] + label>img {
      width: 45px;
      height: auto;
    }

    #sapphire-logo img{
      width:230px;
      height: auto;
    }
    .strong-text {
        font-size: 1.6em;
    }
      .red-underline-wavy {
      text-decoration: red underline;
    }
}

@media (min-width: 992px) {
  .container {
    width: 970px;
  }
    .nav-item { margin: 8px 20px; }
}

@media (min-width: 1200px) {
  .container {
    width: 1024px;
  }
/*    .tm-catalog-item { margin-bottom: 30px; }*/
}

/* Animation */

.navTrigger {
    cursor: pointer;
    width: 30px;
    height: 25px;
    margin: auto;
    position: absolute;
    right: 30px;
    top: 0;
    bottom: 0;
}

.navTrigger i {
    background-color: #fff;
    border-radius: 2px;
    content: '';
    display: block;
    width: 100%;
    height: 4px;
}

.navTrigger i:nth-child(1) {
    -webkit-animation: outT 0.8s backwards;
    animation: outT 0.8s backwards;
    -webkit-animation-direction: reverse;
    animation-direction: reverse;
}

.navTrigger i:nth-child(2) {
    margin: 5px 0;
    -webkit-animation: outM 0.8s backwards;
    animation: outM 0.8s backwards;
    -webkit-animation-direction: reverse;
    animation-direction: reverse;
}

.navTrigger i:nth-child(3) {
    -webkit-animation: outBtm 0.8s backwards;
    animation: outBtm 0.8s backwards;
    -webkit-animation-direction: reverse;
    animation-direction: reverse;
}

.navTrigger.active i:nth-child(1) {
    -webkit-animation: inT 0.8s forwards;
    animation: inT 0.8s forwards;
}

.navTrigger.active i:nth-child(2) {
    -webkit-animation: inM 0.8s forwards;
    animation: inM 0.8s forwards;
}

.navTrigger.active i:nth-child(3) {
    -webkit-animation: inBtm 0.8s forwards;
    animation: inBtm 0.8s forwards;
}

@-webkit-keyframes inM {
    50% {
        -webkit-transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(45deg);
    }
}

@keyframes inM {
    50% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(45deg);
    }
}

@-webkit-keyframes outM {
    50% {
        -webkit-transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(45deg);
    }
}

@keyframes outM {
    50% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(45deg);
    }
}

@-webkit-keyframes inT {
    0% {
        -webkit-transform: translateY(0px) rotate(0deg);
    }
    50% {
        -webkit-transform: translateY(9px) rotate(0deg);
    }
    100% {
        -webkit-transform: translateY(9px) rotate(135deg);
    }
}

@keyframes inT {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(9px) rotate(0deg);
    }
    100% {
        transform: translateY(9px) rotate(135deg);
    }
}

@-webkit-keyframes outT {
    0% {
        -webkit-transform: translateY(0px) rotate(0deg);
    }
    50% {
        -webkit-transform: translateY(9px) rotate(0deg);
    }
    100% {
        -webkit-transform: translateY(9px) rotate(135deg);
    }
}

@keyframes outT {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(9px) rotate(0deg);
    }
    100% {
        transform: translateY(9px) rotate(135deg);
    }
}

@-webkit-keyframes inBtm {
    0% {
        -webkit-transform: translateY(0px) rotate(0deg);
    }
    50% {
        -webkit-transform: translateY(-9px) rotate(0deg);
    }
    100% {
        -webkit-transform: translateY(-9px) rotate(135deg);
    }
}

@keyframes inBtm {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-9px) rotate(0deg);
    }
    100% {
        transform: translateY(-9px) rotate(135deg);
    }
}

@-webkit-keyframes outBtm {
    0% {
        -webkit-transform: translateY(0px) rotate(0deg);
    }
    50% {
        -webkit-transform: translateY(-9px) rotate(0deg);
    }
    100% {
        -webkit-transform: translateY(-9px) rotate(135deg);
    }
}

@keyframes outBtm {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-9px) rotate(0deg);
    }
    100% {
        transform: translateY(-9px) rotate(135deg);
    }
}

.affix {
    padding: 0;
    background-color: #111;
}


