@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Orbitron:wght@400..900&family=Quattrocento:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Original+Surfer&display=swap');

:root {
  --first-color: hsl(82, 60%, 28%);
  --title-color: hsl(0, 0%, 15%);
  --text-color: hsl(0, 0%, 35%);
  --body-color: hsl(0, 0%, 95%);
  --container-color: hsl(0, 0%, 100%);

  --body-font: "Poppins", sans-serif;
  --h2-font-size: 1.25rem;
  --small-font-size: .813rem;
}
@media screen and (min-width: 1120px) {
  :root {
    --h2-font-size: 1.5rem;
    --small-font-size: .875rem;
  }
}

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

body {
 background: url('images/sea.png');
 height: 100vh;
  font-family: var(--body-font);
  background-color: var(--body-color);
  color: var(--text-color);
}

::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb {
    background-color: rgb(42, 35, 112);
    outline: 1px solid slategrey;
    border-radius: 100px;
    width: 10px;
}

header {
    display: flex;
    justify-content: center;
    width: 100vw;
    box-shadow: 1px 1px 26px #000,
        -1px -1px 26px #0000;
    position: fixed;
    background-color: white;
    top: 0;
    z-index: 99999;
}

.inner-header {
    display: flex;
    justify-content: space-between;
    height: 70px;
    width: 90vw;
    max-width: 1300px;

}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;

}

.logo div {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
}

.logo div,
.logo img {
    height: 90%;
}

.logo div h4,
.logo div h6 {
    margin: 0;
    font-family: "Orbitron", serif;
}

.logo div h6 {
    font-weight: 400;
}

nav {
    display: flex;
    justify-content: flex-end;
    gap: 1.5rem;
    align-items: center;
    height: 100%;
    width: 40%;
}

nav a {
    text-decoration: none;
    color: black;
    font-family: "Orbitron", serif;
    font-weight: 500;
}

.phone-nav-btn{
  background-color: transparent;
  border: none;
  display: none;
}
.phone-nav-btn svg{
  width: 80%;
  height: 80%;
}
@keyframes menuDown {
  from{
      transform: translateY(-110%);

  }
  to {
      transform: translateY(0);
  }
}
@keyframes menuUp {
  from{
      transform: translateY(0);
  }
  to {
      transform: translateY(-110%);
  }
}
.phone-nav{
  position: fixed;
  padding-top:10px ;
  top: 55px;
  width: 100%;
  background-color: white;
  list-style: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 998;
  /*animation: menu 2s;*/
  display: none;
}
.phone-nav li{
  margin: 25px 0;
}
.phone-nav li a{
  text-decoration: none;
  color: black;
  font-family: "Orbitron", serif;

}
.games {
    padding: 10px 5px;
    border-radius: 10px;
    color: #0FA3B1;
    border: 1px solid #0FA3B1;

}

.games:hover {
    background-color: #0FA3B1;
    color: white;
    transition: 1s;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/*=============== CARD ===============*/
.container {
  display: grid;
  place-items: center;
  margin-inline: 1.5rem;
  padding-block: 5rem;
}

.card__container {
  display: grid;
  row-gap: 3.5rem;
}

.card__article {
  position: relative;
  overflow: hidden;
}

.card__img {
  width: 328px;
  border-radius: 1.5rem;
}

.card__data {
  width: 280px;
  background-color: var(--container-color);
  padding: 1.5rem 2rem;
  box-shadow: 0 8px 24px hsla(0, 0%, 0%, .15);
  border-radius: 1rem;
  position: absolute;
  bottom: -9rem;
  left: 0;
  right: 0;
  margin-inline: auto;
  opacity: 0;
  transition: opacity 1s 1s;
}
.play-btn {
  background-color: #0fa3b1;
  padding: 10px 20px;
  border-radius: 20px;
  width: 80px;
  position: absolute;
  left: calc(50% - 40px);
  bottom: -20px;
  color: white;
  text-decoration: none;
  text-align: right;
}
.play-btn::after{
  content: " ";
  position: absolute;
  left: 15px;
  top: calc(50% - 5px);
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 5px solid white;

}

.card__description {
  display: block;
  font-size: var(--small-font-size);
  margin-bottom: .25rem;
}

.card__title {
  font-size: var(--h2-font-size);
  font-weight: 500;
  color: var(--title-color);
  margin-bottom: .75rem;
}

.card__button {
  text-decoration: none;
  font-size: var(--small-font-size);
  font-weight: 500;
  color: var(--first-color);
}

.card__button:hover {
  text-decoration: underline;
}

/* Naming animations in hover */
.card__article:hover .card__data {
  animation: show-data 1s forwards;
  opacity: 1;
  transition: opacity .3s;
}

.card__article:hover {
  animation: remove-overflow 2s forwards;
}

.card__article:not(:hover) {
  animation: show-overflow 2s forwards;
}

.card__article:not(:hover) .card__data {
  animation: remove-data 1s forwards;
}

/* Card animation */
@keyframes show-data {
  50% {
    transform: translateY(-10rem);
  }
  100% {
    transform: translateY(-7rem);
  }
}

@keyframes remove-overflow {
  to {
    overflow: initial;
  }
}

@keyframes remove-data {
  0% {
    transform: translateY(-7rem);
  }
  50% {
    transform: translateY(-10rem);
  }
  100% {
    transform: translateY(.5rem);
  }
}

@keyframes show-overflow {
  0% {
    overflow: initial;
    pointer-events: none;
  }
  50% {
    overflow: hidden;
  }
}

/*=============== BREAKPOINTS ===============*/
/* For small devices */
@media screen and (max-width: 340px) {
  .container {
    margin-inline: 1rem;
  }

  .card__data {
    width: 250px;
    padding: 1rem;
  }
}

/* For medium devices */
@media screen and (min-width: 768px) {
  .card__container {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 1.5rem;
  }
}

/* For large devices */
@media screen and (min-width: 1120px) {
  .container {
    height: 100vh;
  }

  .card__container {
    grid-template-columns: repeat(3, 1fr);
  }
  .card__img {
    width: 348px;
  }
  .card__data {
    width: 316px;
    padding-inline: 2.5rem;
  }
}
footer {

    background-image: url("./images/sand footer (1) 1.png");
    background-size: 100% 100%;;
    width: 99.5 vw;
    height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;

}
.logo div, .logo img {
    height: 90%;
    color: black;
}

.inner-footer {
    width: 100%;
    max-width: 1300px;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-part {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    width: 33.33%;
}

.footer-part img {
    /*height: 80%;*/
    width: 60%;
    display: block;
}

.footer-part ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-part ul li {
    margin: 10px 0;
}

.footer-part ul li a {
    position: relative;
    text-decoration: none;
    color: black;
    font-family: "Original Surfer", serif;
    font-size: 1.5rem;

}

.footer-part ul li a:before {
    content: "";
    position: absolute;
    bottom: -5px;
    height: 2px;
    left: 50%;
    width: 0%;
    background-color: #000000;
    transition: 0.3s;
}

.footer-part ul li a:hover:before {
    left: 0;
    width: 100%;
}

.footer-middle {
    flex-direction: column;
    justify-content: center;
}

.footer-middle img {
    width: 50%;
}

.footer-middle h1 {
    font-family: "Orbitron", serif;
    text-align: center;
}

.footer-right ul li {
    text-align: right;
}
@media screen and (max-width: 1000px) {
  .text-container {
      position: absolute;
      width: 567px;
      top: 10px;
      left: calc(50% - 270px);
  }

  .big-photo-part .text-container h1 {
      font-size: 74px;
      text-align: center;
  }
  .hat {
      position: absolute;
      width: 60px;
      left: 5px;
      top: 55px;
  }

  .glasses {
      position: absolute;
      width: 55px;
      right: 128px;
      top: 75px;
  }

  .umbrella {
      position: absolute;
      width: 70px;
      right: 20px;
      top: 55px;

  }
  .seaText {
      width: 90vw;
  }
  .diver-container {
      width: 7vw;
  }
  .submarine-container {
      left: calc(50% - 45vw);
      width: 90vw;
  }
  .game-container {
      bottom: 15%;
  }
  .game-container div {
      width: 15vw;
      height: 15vw;
  }

  .big-fish{
      width: 50vw;
  }
  .footer-part ul li a {
      font-size: 1rem;
  }
  .footer-middle h1 {
      font-size: 1rem;
  }
}
@media screen and (max-width: 650px) {
  nav{
      display: none;
  }
  .phone-nav-btn{
      display: block;
  }
  .text-container {
      position: absolute;
      width: 375px;
      top: 10px;
      left: calc(50% - 160px);

  }
  .big-photo-part .text-container h1 {
      font-size: 45px;
  }
  .hat {
      position: absolute;
      width: 35px;
      left: 5px;
      top: 35px;
  }

  .glasses {
      position: absolute;
      width: 35px;
      right: 106px;
      top: 45px;
  }

  .umbrella {
      position: absolute;
      width: 40px;
      right: 43px;
      top: 34px;

  }
  .diver-container {
      width: 10vw;
  }
  .submarine-container {
      left: calc(50% - 45vw);
      width: 90vw;
  }
  .game-container {
      bottom: 15%;
  }
  .game-container div {
      width: 10vw;
      height: 10vw;
  }
  .game-container a {
      font-size: 0.75rem;
  }
  .welcome-container {
      left: calc(50% - 22.5vw);
  }
  .about-us-container {
      right: calc(50% - 22.5vw);
  }
}