/*Global styles*/
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  font-size: 10px;
  color: #ffffff;
  font-family: 'Roboto', sans-serif;
}

body {
  background: url('images/3.jpg') center no-repeat;
  background-size: cover;
  overflow: hidden;
}

a {
  text-decoration: none;
}
html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji',
    'Segoe UI Symbol';
  -webkit-text-size-adjust: none;
}

.container {
  width: 100%;
  min-width: 100rem;
  margin: 0 auto;
  padding: 0 2.4rem;
}

/*header*/
header {
  width: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  min-width: 100rem;
}

.nav {
  height: 10rem;
  display: flex;
}

.nav div.glitter {
  height: 8rem;
  margin: 10px auto;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  opacity: 0;
  animation: scale 2s forwards;
  animation-delay: 0.9s;
}

.glitter img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
}

/* .zhezhao {
  position: absolute;
  top: 0;
  left: 0;
  mask: url('./line.png') no-repeat;
  -webkit-mask: url('./line.png') no-repeat;
  -moz-mask: url('./line.png') no-repeat;
  -o-mask: url('./line.png') no-repeat;
  -ms-mask: url('./line.png') no-repeat;
  animation: maskPosition 5s infinite;
} */

/*hero*/
.hero {
  width: 100%;
  height: calc(100vh - 10rem);
  position: relative;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.container {
  width: 100%;
  position: relative;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

.casino {
  width: 100%;
}

h2 {
  font-size: 2.6rem;
  line-height: 3rem;
  text-align: center;
  font-weight: 400;
  width: 100%;
  position: relative;
  letter-spacing: 5px;
}

h2::before,
h2::after {
  content: '';
  display: block;
  width: 24%;
  height: 1px;
  background-color: white;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

h2::before {
  right: 50%;
  transform: translateX(-16rem);
}

h2::after {
  left: 50%;
  transform: translateX(16rem);
}

h2.line::before {
  transform: translateX(-11rem);
  width: 27.2%;
}

h2.line::after {
  transform: translateX(11rem);
  width: 27.2%;
}

.group {
  margin: 3rem auto 0;
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  overflow: hidden;
}

.group-item {
  flex: 0 0 13.5%;
  text-align: center;
  margin-right: 1.2rem;
}

div.group-item:first-child {
  margin-left: auto;
}

div.group-item:last-child {
  margin-right: auto;
}

.item-package {
  width: 100%;
  padding-top: 100%;
  position: relative;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  cursor: pointer;
}

.item-package:hover .item-bottom {
  height: 100%;
  border-radius: 8px 8px;
  background-image: linear-gradient(
    to right,
    #000000 0%,
    #000000 50%,
    #000000 100%
  );
}

.item-package:hover .bt-line {
  display: block;
}

.img {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 10;
  width: 40%;
  opacity: 0;
  animation: opacity 3s ease infinite;
}

.item-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 80%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url('images/item-bg.jpg') center no-repeat;
  background-size: cover;
  border-radius: 8px 8px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

/*缩小logo图片 在item-top后面添加*/
.zoom img {
  transform: scale(0.7);
}
.zoom-x img {
  transform: scale(0.8);
}

.item-top img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
}

.item-bottom {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 20%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  letter-spacing: 2px;
  background-image: linear-gradient(
    to right,
    #484849 0%,
    #000000 50%,
    #484849 100%
  );
  color: #f6de8a;
  border-radius: 0 0 8px 8px;
  transition: all 0.5s;
}

.bt-line {
  display: none;
}

.bt-line a {
  display: block;
  width: 100%;
  color: #ffffff;
  margin: 10px 0;
  padding: 5px 20px;
  border-radius: 2px;
  cursor: pointer;
  outline: none;
  border: none;
  background-size: 200%;
  background-image: linear-gradient(to right, #d7cb72, #cdbd48, #332a02);
  transition: 0.5s;
}

.bt-line a:hover {
  background-position: right;
}

.single-animation-left {
  opacity: 0;
  animation: fadeLeft 0.5s forwards;
  animation-delay: 0.5s;
}

.single-animation-right {
  opacity: 0;
  animation: fadeRight 0.5s forwards;
  animation-delay: 0.5s;
}

@keyframes fadeLeft {
  0% {
    transform: translateX(-40rem);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeRight {
  0% {
    transform: translateX(40rem);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scale {
  0% {
    transform: scale(2);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/*标签动画*/
@keyframes opacity {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes maskPosition {
  0% {
    -webkit-mask-position: -100px;
  }
  100% {
    -webkit-mask-position: 200px;
  }
}

/*屏幕宽带小于1400*/
@media screen and (max-width: 1400px) {
  .item-bottom {
    font-size: 1.4rem;
  }
}

/*屏幕宽带小于1200*/
@media screen and (max-width: 1200px) {
  .item-bottom {
    font-size: 1.2rem;
  }
}
