/* ==========================================================================
   Fonts
   ========================================================================== */

@font-face {
    font-family: "Irish Grover";
    src: url('../fonts/IrishGrover-Regular.ttf');
}

@font-face {
    font-family: "Atma";
    src: url('../fonts/Englebert-Regular.ttf');
}

/* ==========================================================================
   Base elements
   ========================================================================== */

/* html {
    scroll-behavior: smooth;
}
 */
body, html {
    overflow-x: hidden;
}

body {
    background-color: #3ba8e8;
    margin: 0;
    overflow-y: auto;

    /* Hide scrollbar across browsers while keeping scroll enabled */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.main {
    background-color:LightBlue;
}

body::-webkit-scrollbar {
    display: none;
}

h1 {
    text-align: center;
    font-family: atma;
    font-size: 3vw;
}

p {
    text-align: center;
    font-size: 2vw;
    color: black;
    margin: 1vw;
    padding: 0px;
    font-family: atma;
}

a {
    text-decoration: none;
    color: black;
}

bold {
    font-family: "Irish Grover";
}

italic {
    font-style: italic;
}

svg {
    display: inline;
    margin: 0;
    padding: 0;
}

/* ==========================================================================
   Logo
   ========================================================================== */

#logo {
    color: Blue;
    font-size: 0;
    font-family: "Irish Grover";
    text-align: center;
    padding-top: 0em;
    margin-top: 0vh;
    margin-bottom: 0px;
    -webkit-text-stroke: .001px black;
}

#logo span {
    display: inline-block;
    font-size: 6.5vw;
    animation: wave 3s ease-in-out infinite;
    -webkit-text-stroke: .25vw black;
}

#logo span:nth-child(1)  { animation-delay: 0.0s; }
#logo span:nth-child(2)  { animation-delay: 0.1s; }
#logo span:nth-child(3)  { animation-delay: 0.2s; }
#logo span:nth-child(4)  { animation-delay: 0.3s; }
#logo span:nth-child(5)  { animation-delay: 0.4s; }
#logo span:nth-child(6)  { animation-delay: 0.5s; }
#logo span:nth-child(7)  { animation-delay: 0.6s; }
#logo span:nth-child(8)  { animation-delay: 0.7s; }
#logo span:nth-child(9)  { animation-delay: 0.8s; }
#logo span:nth-child(10) { animation-delay: 0.9s; }
#logo span:nth-child(11) { animation-delay: 1.0s; }
#logo span:nth-child(12) { animation-delay: 1.1s; }

.taxalottle-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.taxalottle {
    width: 10vw;
    height: 10vw;
    animation-name: rotate;
    animation-duration: 1s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
    margin-top: 0vh;
    margin-left: 7vw;
    margin-right: 7vw;
}

.game_mascot {
    width: 10vw;
    height: 10vw;
    animation-name: rotate;
    animation-duration: 1s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
    margin-top: 0vh;
    margin-left: 5vw;
    margin-right: 5vw;
}

.img_left {
    animation-direction: alternate;
}

.img_right {
    animation-direction: alternate-reverse;
}

/* ==========================================================================
   Header / wave banner
   ========================================================================== */

.header {
    width: 100%;
}

.short-header {
    width: 100%;
    height: 15vh;
    overflow: hidden;
}

.short-header svg {
    width: 100%;
    height: 100%;
    display: block;
}

.wave-wrap {
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.wave-track {
    display: flex;
    width: 200%;
    animation: scroll-waves 14s linear infinite;
    margin: 0px;
}

.wave-track svg {
    width: 50%; /* each svg = 100% of the visible viewport */
    margin: 0;
    padding: 0;
}

/* ==========================================================================
   Ocean section / project cards
   ========================================================================== */

#ocean {
    width: 100%;
    min-height: 110vw;
    background-color: #0693e3;
    background-image: linear-gradient(to bottom, #0693e3 5%, #0792dd 10%, #072c92);
    position: relative;
}

.project-card {
    background-color: rgb(201, 201, 201);
    width: 50vw;
    position: absolute;
    border-radius: 2vw;
    border-style: solid;
    border-width: .5vw;
    line-height: 1.5;
}

.project-card header {
    text-align: center;
    font-family: "Irish Grover";
    font-size: 3.5vw;
}

.project-card p {
    text-align: center;
}

.project-card img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    border-style: solid;
    border-width: 7px;
    border-radius: 15px;
    width: 50%;
}

#beach img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    border-style: solid;
    border-width: 8px;
    border-radius: 20px;
    width: 40%;
}

#pokemon {
    top: 1vw;
    left: 10vw;
}

#games {
    top: 60vw;
    right: 10vw;
}

#k2 {
    top: 70vw;
    right: 11vw;
}

#jam {
    top: 120vw;
    left: 5vw;
}

#godot {
    top: 180vw;
    right: 7vw;
}

#magic {
    top: 250vw;
    left: 11vw;
}

#java {
    top: 335vw;
    left: 16vw;
}

.button {
    background-color: #2ecc71;
    padding: .3vw;
    margin-top: .1vw;
    margin-bottom: .5vw;
    border-radius: .5vw;
    border-style: solid;
    border-width: .25vw;
    display: inline-block;
}

/* ==========================================================================
   Sand footer
   ========================================================================== */

.sand {
    position: absolute;
    bottom: 0vw;
    left: 0px;
    width: 100vw;
    height: auto;
    overflow: hidden;
}

#sand_svg {
    display: block; /* removes inline text line-height space underneath */
    margin: 0;
    padding: 0;
}

#sand {
    height: 10vw;
    width: 100%;
    background-color: #e8e5b3;
    display: flex;
    justify-content: space-between;
}

#sand p {
    text-align: right;
    font-family: atma;
    margin: 0px;
    padding-top: 3vw;
    padding-right: 2vw;
    padding-left: 2vw;
    color: #422304;
}

/* ==========================================================================
   Grid nav buttons
   ========================================================================== */

.grid-container {
    align-items: center;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    width: 89vw;
    padding-left: 5vw;
    padding-right: 5vw;
}

.grid-button {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    height: 20vh;
    border-style: solid;
    background-color: rgb(73, 165, 109);
    border-radius: 15px;
}

.grid-button span {
    font-size: 4vw;
    transition: transform 0.3s ease-in-out, background-color 0.1s ease;
}

.grid-button:hover {
    background-color: #2ecc71;
    transform: scale(1.01); /* scales the element up by 1% */
}

/* ==========================================================================
   Animations
   ========================================================================== */

@keyframes rotate {
    from { rotate: -10deg; }
    to   { rotate: 10deg; }
}

@keyframes scroll-waves {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

@keyframes wave {
    0%, 22.5%, 50%          { transform: translateY(0); }
    11.25%                  { transform: translateY(-15px); }
    0%, 72.5%, 100%         { transform: translateY(0); }
    61.25%                  { transform: translateY(-15px); }
    20.5%, 48%              { color: rgb(12, 203, 209); }
    9.25%, 70.5%, 98%       { color: blue; }
}

.tide-divider svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    animation: roll-tide 5s ease-in-out infinite;
}

.tide-wet svg {
    position: absolute;
    top: 4;
    left: 0;
    width: 100%;
    height: 100%;
    animation: roll-tide 5s ease-in-out infinite;
}

@keyframes roll-tide {
    0%   { transform: translateY(90px); }  /* pulled back */
    38%  { transform: translateY(30px); }  /* pushed up over the sand */
    50%  { transform: translateY(30px); }
    100% { transform: translateY(90px); }  /* receded */
}

@keyframes roll-sand {
    0%   { transform: translateY(90px); }  /* pulled back */
    50%  { transform: translateY(30px); }  /* pushed up over the sand */
    100% { transform: translateY(90px); }  /* receded */
}


#shore {
    position: relative;
    background-color: #e8e5b3;
    height:6vw;
    width:100%;
    z-index: 1;
    margin-bottom:0px;
}

.tide-stack {
    position: relative;   /* establishes a positioning context for the two layers */
    height: 110px;        /* matches the viewBox height */
}

.tide-divider,

.tide-wet {
    position: absolute;   /* pulls both out of normal flow so they occupy the same space */
    left: 0;
    width: 100%;
}

.tide-divider svg,
.tide-wet svg {
    width: 100%;
    height: 100%;
    display: block;
}

.tide-divider { z-index: 3; height: 125px; top:.96vw;}   /* main wave — drawn on top */
.tide-wet     { z-index: 2; height: 120px; top:1vw;}   /* wet-sand layer — drawn underneath */

.tide-divider svg { animation: roll-tide 5s ease-in-out infinite;}
.tide-wet svg     { animation: roll-sand 5s ease-in-out infinite;}

#beach {
    box-sizing: border-box;
    margin:0px;
    padding-left:1vw;
    padding-right:1vw;
    width:100%;
    min-height:100vh;
    background-color: #e8e5b3;
    padding-top:1.1vw;
    padding-bottom:1.1vw;
}

#beach p {
    text-wrap: balance;
}

#beach a {
    display:block;
    text-align:center;
    background-color:rgb(54, 170, 54);
    width:max-content;
    padding:0;
    margin:0 auto;
    margin-top:2vw;
    margin-bottom:1vw;
    border-radius:1vw;
    border:solid;
    border-width:.3vw;
}

.sign{
  position:absolute;
  top:1vw;
  left:0;
  display:block;
  background-color:#83430e;
  color:#fdf2e0;
  padding:.1vw 2vw;
  border-radius:14px;
  font-weight:600;
  transform:rotate(-1deg);
  box-shadow:
  0 4px 0px rgb(70, 38, 2);
  margin-left:3vw;
  margin-bottom:1vw;
  border-style:solid;
  border-color:black;
}

.sign p{
    color:rgb(255, 251, 247);
    font-size:3.5vw;
}

.beach-card{
    position:relative;
    box-sizing: border-box;
    background-color:#f7f5d6;
    width:100%;
    padding:.5vw;
    padding-top:1vw;
    padding-bottom:1vw;
    border-radius:3vw;
    display:flex;
    justify-content:center;
    align-items:center;
    margin-top:2vw;
    margin-bottom:2vw;
    
}

.half {
    width:48.5%;
}

.beach-card > img {
    border-color:white;
    border-radius:0px !important;
    transform:rotate(1.5deg);    
      box-shadow:
    5px 5px 10px 5px #0000002c,
    0 8px 14px rgba(74,45,24,0.25);
}

.sand-container {
    margin-top:10vw;
    margin-bottom:1vw;
    display:flex;
    gap: 3vw;
}

.sand-item {
    background-color:#f3f1e6;
    height:20vw;
    width:20vw;
    border-radius:1vw;
    border-style:solid;
    margin:0px;
    padding:0px;
}

.sand-item p {
     margin-bottom:.5vw;
}

#switch {
    border-style:none !important;
    width:14vw !important;
}

#pi {
    border-style:none !important;
    width:11vw !important;
}

.screenshot {
    border-radius:0px !important;
    border-width:.3vw !important;
    width:12vw !important;
}

canvas {
    width:100%;
    background:blue;
    display:block;
}

#game-body {
    overflow:hidden;
    margin:0;
    padding:0;
    image-rendering: pixelated;
}

.sand-svg {
    z-index:3;
    margin-top: 0;
}

.wave-svg {
    display:block;
    z-index: 3;
}

#wave-svg {
    display:block;
    z-index: 1;
}

#wave-svg-2 {
    display:block;
    z-index: 1;
}

.wave-container {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    background-color:#e8e5b3;
}

.wave-container svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#white-svg {
    display:block;
    z-index: 2;
    opacity:.8;
}

#white-svg-2 {
    display:block;
    z-index: 2;
    opacity:.8;
}

@keyframes opacityShift {
  from { opacity: 1; }
  to { opacity: 0; }
}

/* 2. Create the triggering class */
.animate-out {
  animation: opacityShift 5s ease-out forwards;
}