/* General resets */
body, html {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: black;
    color: white;
}
audio {
        display: none; 
}
.center{
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-top: auto;
    width: 50%;
}
/* Top menu styling */
#top-menu {
    position: absolute;
    top: 10px;
    right: 20px;
    display: flex;
    gap: 30px;
    z-index: 2;
}

#top-menu a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    padding: 5px 15px;
    background-color: #333;
    border: 1px solid #f0a500;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

#top-menu a:hover {
    background-color: #f0a500;
    color: black;
}

/* Game section styling */
#game-section {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
}

#game-section h1 {
    font-size: 5rem;
    margin: 0;
    text-shadow:0 0 5px #ff0000, 0 0 10px #ff0000, 0 0 15px #ff0000;
    color: black;
}

/* Oval-shaped Start button */
#start-button {
    width: 10em;
    height: 3em;
    margin: 1em;
    background-image: radial-gradient( #00aaa1a7, #010000);
    color: rgb(0, 0, 0);
    border: none;
    border-radius: 0.625em;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    position: relative;
    z-index: 3;
    overflow: hidden;
}

#start-button:after {
    content: "";
    background-image: radial-gradient(closest-side, #ff0000, #010000);
    position: absolute;
    z-index: -1;
    left: -20%;
    right: -20%;
    top: 0;
    bottom: 0;
    transform: skewX(30deg) scale(0, 1);
    transition: all 0.7s;
   }

#start-button:hover:after {
    transform: skewX(-45deg) scale(1, 1);
    -webkit-transition: all 5s;
    transition: all 0.9s;
   }

/* Larger button styling (Vs Human, Vs AI) */
.game-button {
    width: 10em;
    height: 3em;
    margin: 2em;
    background-image: radial-gradient( #ff3700, #010000af);
    color: rgb(0, 0, 0);
    border: none;
    border-radius: 0.625em;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    position: relative;
    z-index: 3;
    overflow: hidden;
}

.game-button:after {
    content: "";
    background-image: radial-gradient(closest-side, #ff0000, #010000);
    position: absolute;
    z-index: -1;
    left: -20%;
    right: -20%;
    top: 0;
    bottom: 0;
    transform: skewX(30deg) scale(0, 1);
    transition: all 0.7s;
   }

.game-button:hover:after {
    transform: skewX(-45deg) scale(1, 1);
    -webkit-transition: all 5s;
    transition: all 0.9s;
   }

/* Background canvas */
canvas {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}
/* img {
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
} */

/* Contact page styling */
#contact-section {
    text-align: center;
    padding: 50px;
}

#contact-section h1 {
    font-size: 3rem;
    color: #f0a500;
    margin-bottom: 30px;
}

.contact-card {
    background-color: #222;
    padding: 20px;
    margin: 20px auto;
    width: 300px;
    border: 1px solid #f0a500;
    border-radius: 10px;
    color: white;
}

.contact-card h3 {
    margin: 0 0 10px 0;
    color: #f0a500;
}

.contact-card p {
    margin: 0;
}

.contact-card a {
    color: #1abc9c;
    text-decoration: none;
}

.contact-card a:hover {
    text-decoration: underline;
}

#top-menu a {
    padding: 10px 20px;
     background-image: radial-gradient( closest-side ,#f70000, #6f1a05);
    color: #000;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2em;
    /* transition: background-color 0.3s ease; */
    border-bottom: 5px solid rgb(50, 50, 50);
    box-shadow: 0px 1px 6px 0px rgb(235, 254, 129);
    transform: translate(0, 3px);
    transition: 0.2s;
    transition-timing-function: linear;
    margin-top: 20px;
  }

#top-menu a:active {
  cursor: pointer;
  transform: translate(0, 0);
  border-bottom: 2px solid rgb(50, 50, 50);
}

/* Back to home link */
#back-to-home {
    margin-top: 30px;
}

#back-to-home a {
    color: #f0a500;
    text-decoration: none;
    font-size: 1.2rem;
}

#back-to-home a:hover {
    text-decoration: underline;
}
