:root {
  --primary-color: #D12317;
  --background-color-light: #F0F0F0;
  --text-color-light: #333;
  --background-color-dark: #121212;
  --text-color-dark: #FFFFFF;
  --chat-background-light: #FFFFFF;
  --chat-text-light: #000000;
  --chat-background-dark: #222222;
  --chat-text-dark: #FFFFFF;
  --profile-content-background: white;
  --profile-content-text: #333;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--background-color-light);
  color: var(--text-color-light);
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

h1 {
  font-size: 24px;
  margin: 0;
}

button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 20px;
  cursor: pointer;
}


body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Arial, sans-serif;
}

.intro-container {
  text-align: center;
    z-index: 1000;
}

.difficulty-container {
  display: flex;
  justify-content: space-around;
  margin-top: 20px;
}

.difficulty-option {
  cursor: pointer;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 10px;
  width: 25%;
  transition: transform 0.3s;
}

.difficulty-option:hover {
  transform: scale(1.1);
}

.difficulty-option img {
  width: 100%;
  height: auto;
  border-radius: 6px;
}

body.fade-out {
  animation: fadeOut 2s;
}

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

/* Intro Page */

.intropage {
  background-color: rgba (0,0,0,0.2);
  border-radius: 4px;
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  padding-bottom: 2em;
  padding-top: 2em;
  color: white;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

/* Dazzling animation */

.background-grid {
  width: 100%;
  height: 100%;
  position: fixed; /* Ensures the background covers the entire screen */
  top: 0;
  left: 0;
  background-image: url("images/placeholder1.jpg"); /* Path to your pre-assembled tiled image */
  background-repeat: repeat; /* Only repeat horizontally */
  background-position: 0 0;
  background-size: contain; /* Adjusts the size to fit the height of the viewport */
  animation: slideBackground 100s linear infinite; /* Adjust duration to control speed */
}

@keyframes slideBackground {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 10000px -10000px; /* This value might need to be adjusted based on actual image width */
  }
}

/* Modal */

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.4);
}

.modal-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 450px;
  text-align: center;
}

#customAlert {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
    z-index: 1000; /* Sit on top */
}

#customAlertContent {
    background-color: #fefefe;
    margin: 15% auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Could be more or less, depending on screen size */
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}
