/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Momo+Trust+Display:wght@400;600;700&display=swap');

* {
    margin:0;
    padding:0;
    box-sizing: border-box;
}

/* Global Styles */
:root {
    --bg-dark: #000;
    --text-light: #e0e0e0;
    --text-white: #fafafa66;
    --button-bg: #252525;

    /* Hover Gradient */
    --gradient-hover: linear-gradient(135deg, #00aaff, #ff00aa);
    /* Focus Gradient */
    --gradient-focus: linear-gradient(135deg, #00ff66, #ffeb3b);
    /* Existing Glow Gradient */
    --gradient-glow: linear-gradient(45deg, rgba(40, 167, 69, 0.4), rgba(0, 200, 255, 0.4), rgba(255, 0, 150, 0.4));
}

html, body {
    font-family: 'Momo Trust Display', serif;
    background: var(--bg-dark);
    color: var(--text-light);
    min-width:100vw;
    min-height:100vh;
}

body {
    display:flex;
    flex-direction: column;
    align-items:center;
    justify-content: center;
    padding-bottom: 16px;
}

/* Typography */
h1 {
    display:block;
    position:absolute;
    text-align: center;
    font-weight: 600;
    font-size: 2.5rem;
    color: white;
    text-shadow: 0 0 0px white;
    z-index:2;
    top:8px;
    left:16px;
    transform: translateY(-60px);
    opacity:0;
    animation: slideDownFade 0.5s ease forwards 0.5s;
    transition: all 0.2s ease-in-out;
}

@keyframes title-bg {
  0% {
    background-position: calc(50% - 30px) calc(50% - 30px);
    text-shadow: 0 0px 20px rgba(0, 0, 0, 0.4)
  }
  12.5% {
    text-shadow: 0 +10px 20px rgba(0, 0, 0, 0.4)
  }
  25% {
    background-position: calc(50% - 30px) calc(50% + 30px);
    text-shadow: 0 0px 20px rgba(0, 0, 0, 0.4)
  }
  37.5% {
    text-shadow: +10px 0 20px rgba(0, 0, 0, 0.4)
  }
  50% {
    background-position: calc(50% + 30px) calc(50% + 30px);
    text-shadow: 0 0px 20px rgba(0, 0, 0, 0.4)
  }
  62.5% {
    text-shadow: 0 -10px 20px rgba(0, 0, 0, 0.4)
  }
  75% {
    background-position: calc(50% + 30px) calc(50% - 30px);
    text-shadow: 0 0px 20px rgba(0, 0, 0, 0.4)
  }
  87.5% {
    text-shadow: -10px 0 20px rgba(0, 0, 0, 0.4)
  }
  100% {
    background-position: calc(50% - 30px) calc(50% - 30px);
    text-shadow: 0 0px 20px rgba(0, 0, 0, 0.4)
  }
}

/* Launch animations */
@keyframes fadeInBg {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes slideDownFade {
  from { opacity: 0; transform: translateY(-60px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideUpFade {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes bgBlurIn {
    from {     
        -webkit-backdrop-filter: blur(0px);
        backdrop-filter: blur(0px);
    }
    to { 
        -webkit-backdrop-filter: blur(8px);
        backdrop-filter: blur(8px);
    }
}

.bg-controls {
    position:absolute;
    top:8px;
    right:8px;
    z-index:10;
    background-color: rgba(0,0,0,0.2);
    padding:16px;
    border-radius:16px;
    display:flex;
    align-items: center;
    gap:4px;
    transform: translateY(-60px);
    opacity:0;
    animation: slideDownFade 0.5s ease forwards 0.5s;
}

.bg-controls button {
    aspect-ratio: 1 / 1;
    width:32px;
    height:32px;
    background:none;
    border:none;
    font-size:24px;
    font-weight: 900;
    color:white;
    margin-top:-4px;
    transition: transform 0.1s ease-in-out, text-shadow 0.1s ease-in-out;
}

.bg-controls button:hover {
    transform: scale(1.3) translateY(-1px);
    text-shadow: 0 0 5px white;
}

.bg-controls input[type="checkbox"] {
    width:20px;
    height:20px;
    display:block !important;
    transition: transform 0.1s ease-in-out, box-shadow 0.1s ease-in-out;
}
.bg-controls input[type="checkbox"]:hover {
    box-shadow: 0 0 10px white;
    transform: scale(1.3);
}

.bg-container {
    position: fixed;
    top:0;
    left:0;
    width:100vw;
    height:100vh;
    overflow:hidden;
    z-index:1;
}

.bg-image {
    position: fixed;
    width:100vw;
    height:100vh;
    object-fit: cover;
    filter:blur(0px);
    animation: fadeInBg 0.5s ease forwards;
}

/* Flexbox Layout for Buttons */
.button-flex {
    max-width: 1640px;
    width: 100%;
    display: flex;
    flex-wrap: wrap; 
    justify-content: center; 
    flex-direction: row;
    gap: 0.5rem;
    padding-top:90px;
    z-index:3;
    opacity:0;
    animation: slideUpFade 0.5s ease forwards 1s;
}

/* Button Styling */
.button {
    position: relative;
    padding: 35px;
    display: flex;
    max-width: 40vw;
    width: 150px;
    flex-direction: column;
    align-items: center; 
    justify-content: center; 
    gap: 0.3rem;
    aspect-ratio: 1/1;
    /* background: var(--button-bg); */
    background: rgba(0, 0, 0, 0.2);
    color: #fff;
    text-decoration: none;
    border-radius: 10%;
    font-size: 0.7rem;
    transition: all 0.2s ease-in-out;
    z-index: 3;
    box-shadow: 0 1px 1px rgba(255,255,255, 0.3);
    text-align: center;
    -webkit-backdrop-filter: blur(0px);
    backdrop-filter: blur(0px);
    animation: bgBlurIn 0.5s ease forwards 1.5s;
}

img.icon{
    padding: 15px;
}

.button > img {
    max-width:100%;
    opacity 50%;
}

.button:active {
    background-color: #343434;
}

@media (min-width: 650px) {
    h1 {
        left:unset;
        font-size: 4.0rem;
    }
    .button {
        width:200px;
        font-size: 0.95rem;
    }
    .button-flex {
        gap: 1rem;
    }
}

@media (min-width: 860px) {
    .button {
        width:250px;
        font-size: 1.15rem;
    }
    .button-flex {
        gap: 1.5rem;
    }
}

/* Elevate Hover Effect */
.button:hover {
    transform: translateY(-5px); /* Slight elevation effect */
    box-shadow: 15px 15px 100px rgba(255, 0, 170, 1.0), -15px -15px 100px rgba(0, 170, 255, 1.0);
    /* animation: animacja 3s linear infinite; */
    z-index:1;
}
