@font-face {
    font-family: 'Ubuntu';
    src: url('../fonts/ubuntu/Ubuntu.woff2') format('woff2'),
         url('../fonts/ubuntu/Ubuntu.woff') format('woff'),
         url('../fonts/ubuntu/Ubuntu.ttf') format('truetype'),
         url('../fonts/ubuntu/Ubuntu.otf') format('otf');
}

@font-face {
    font-family: 'PixelifySans';
    src: url('../fonts/pixelifysans/pixelifysans.woff2') format('woff2'),
         url('../fonts/pixelifysans/pixelifysans.woff') format('woff'),
         url('../fonts/pixelifysans/pixelifysans.ttf') format('truetype'),
         url('../fonts/pixelifysans/pixelifysans.otf') format('otf');
}

@font-face {
    font-family: 'Inconsolata';
    src: url('../fonts/inconsolata/Inconsolata.woff2') format('woff2'),
         url('../fonts/inconsolata/Inconsolata.woff') format('woff'),
         url('../fonts/inconsolata/Inconsolata.ttf') format('truetype'),
         url('../fonts/inconsolata/Inconsolata.otf') format('otf');
}

@font-face {
    font-family: 'Raleway';
    src: url('../fonts/raleway/raleway.woff2') format('woff2'),
        url('../fonts/raleway/raleway.woff') format('woff'),
        url('../fonts/raleway/raleway.ttf') format('truetype'),
        url('../fonts/raleway/raleway.otf') format('otf');
}

@font-face {
    font-family: 'Impact';
    src: url('../fonts/impact/impact.woff2') format('woff2'),
        url('../fonts/impact/impact.woff') format('woff'),
        url('../fonts/impact/impact.ttf') format('truetype'),
        url('../fonts/impact/impact.otf') format('otf');
}

:root {
    --background-image: url('../../images/backgrounds/seraph/homebg.png');
    --font-family: 'Ubuntu', sans-serif;
    --text-color: #fff;
    --background-color: black;
    --border-color1: #000000;
    --border-color2: #ffffff;
    --hover-color: #1a1818;
    --text-glow: #000000
}

:root.theme-azurite {
    --background-image: url('../../images/backgrounds/azure/homebg.png');
    --font-family: 'Ubuntu', sans-serif;
    --text-color: #c8d9e9; 
    --border-color1: #2d6cc4;
    --border-color2: #111633;
    --background-color: #495092;
    --hover-color: #373e7d;
    --text-glow: #4e5bd0;
}

:root.theme-retro {
    --background-image: url('../../images/backgrounds/retro/homebg.png');
    --font-family: 'PixelifySans', 'Ubuntu', sans-serif;
    --text-color: #ffffff; 
    --border-color1: #2fce56;
    --border-color2: #375945;
    --background-color: #2f8154;
    --hover-color: #258a79;
    --text-glow: #4ed089;
}

:root.theme-cosmic {
    --background-image: url('../../images/backgrounds/cosmic/homebg.png');
    --font-family: 'Inconsolata', 'Ubuntu', sans-serif;
    --text-color: #ffffff; 
    --border-color1: #1e1d1f;
    --border-color2: #322c2c;
    --background-color: #121212;
    --hover-color: #181a1a;
    --text-glow: #d6c9c9;
}
  

:root.theme-molten {
    --background-image: url('../../images/backgrounds/molten/homebg.png');
    --font-family: 'Ubuntu', sans-serif;
    --text-color: #f58484; 
    --border-color1: #e70e0e;
    --border-color2: #742e2e;
    --background-color: #892525;
    --hover-color: #9b2121;
    --text-glow: #dc1010;
}

:root.theme-amethyst {
    --background-image: url('../../images/backgrounds/amethyst/homebg.png');
    --font-family: 'Raleway', sans-serif;
    --text-color: #c284f5; 
    --border-color1: #6c0ee7;
    --border-color2: #4c1587;
    --background-color: #502589;
    --hover-color: #5f24ae;
    --text-glow: #662589;
}

:root.theme-ethereal {
    --background-image: url('../../images/backgrounds/ethereal/homebg.png');
    --font-family: 'Ubuntu', sans-serif;
    --text-color: #84f5ac; 
    --border-color1: #00fb82;
    --border-color2: #bbe9c3;
    --background-color: #258969;
    --hover-color: #219b48;
    --text-glow: #6c957b;
}

:root.theme-misinformation {
    --background-image: url('../../images/backgrounds/misinformation/homebg.gif');
    --font-family: 'Impact', sans-serif;
    --text-color: #d94cd0;
    --background-color: rgb(87, 40, 169);
    --border-color1: #ff0000;
    --border-color2: #00ff0d;
    --hover-color: rgb(220, 78, 78);
    --text-glow: #000000
}

:root.theme-subzero {
    --background-image: url('../../images/backgrounds/subzero/homebg.png');
    --font-family: 'Ubuntu', sans-serif;
    --text-color: rgb(255,255,255); 
    --border-color1: rgb(13, 12, 80);
    --border-color2: rgb(0, 0, 153);
    --background-color: rgb(0, 4, 78);
    --hover-color: rgb(10, 15, 112);
    --text-glow: rgb(34, 13, 110);
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-family);
    display: flex;
    background-color: var(--background-color); 
    animation: mainHeaderAnimation 2s forwards;
    cursor: none;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
  
body::-webkit-scrollbar {
    width: 0;
}
  
.content-side {
    width: 100%;
    background-color: var(--background-color);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: mainHeaderAnimation 1s ease-in-out forwards;
    background-image: var(--background-image);
    background-size: cover;
}
  
h1 {
    font-size: 96px;
    font-family: var(--font-family);
    text-shadow: 0 0 10px var(--text-color),
                 0 0 10px var(--text-glow),
                 0 0 30px var(--text-glow),
                 0 0 40px var(--text-color),
                 0 0 50px var(--text-glow),
                 0 0 60px var(--text-color),
                 0 0 70px var(--text-glow),
                 0 0 80px #000000;
    margin-bottom: 0px;
}
  
h2 {
    font-size: 20px;
}
  
p {
    font-size: 18px;
    margin-bottom: 2px;
    padding-left: 10%;
    padding-right: 10%;
    text-align: center;
    text-shadow: 5px 5px 5px var(--text-glow);
    animation: paragraphTween 1.2s ease-in-out forwards;
}
  
.linkp a {
    font-size: 20px;
    text-align: center;
    border: 3px solid transparent;
    transition: 0.15s ease-in-out;
    text-shadow: 5px 5px 5px var(--text-glow);
}
  
.linkp a:hover {
    color: rgb(199, 192, 192);
}
  
a {
    font-size: 18px;
    text-decoration: underline;
    color: var(--text-color);
    cursor: none;
    text-shadow: 5px 5px 5px var(--text-glow);
}
  
.gamesbutton {
    background-color: var(--background-color);
    color: var(--text-color);
    width: 50%;
    max-width: 100px;
    padding-top: 10px;
    padding-bottom: 10px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    height: 90px;
    margin: 0 10px;
    padding-left: 20px;
    padding-right: 20px;
    cursor: none;
    transition: background-color 0.15s ease-in-out;
    border: 3px solid transparent;
    border-image: linear-gradient(45deg, rgb(0, 0, 0), rgb(255, 255, 255));
    border-image-slice: 1;
    border-radius: 4px;
    animation: borderAnimation 1s infinite alternate;
    animation-delay: calc(var(--delay) * 1ms);
    position: relative;
}
  
.gamesbutton img {
    width: calc(100% - 24px);
    height: auto;
    display: block;
    margin: 0 auto;
}

.gamesbutton-link {
    text-decoration: none;
    color: var(--text-color);
    cursor: pointer;
}

.gamesbutton:hover {
    background-color: var(--hover-color); 
    transition: background-color 0.3s ease-in-out; 
}
  
.button-text {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    text-align: center; 
}

.button-container {
    display: flex;
    text-align: center; 
}
  
  
.cursor {
    width: 7px;
    height: 7px;
    background-color: var(--text-color);
    border-radius: 50%;
    position: absolute;
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0.8;
    z-index: 10000;
}
  
@keyframes mainHeaderAnimation {
    0% {
        opacity: 0;
        transform: translateY(-25%);
    }
    100% {
        opacity: 1;
        transform: translateY(0%);
    }
}
  
@keyframes paragraphTween {
    0% {
        transform: translateX(-4%);
    }
    100% {
        transform: translateX(0%);
    }
}
  
@keyframes borderAnimation {
    0% {
        border-image-source: linear-gradient(45deg, var(--border-color1), var(--border-color2));
    }
    100% {
        border-image-source: linear-gradient(45deg, var(--border-color2), var(--border-color1));
    }
}
  