/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Disable pinch-to-zoom and double-tap zoom */
html, body {
    touch-action: none; /* Prevent pinch zooming */
    -ms-touch-action: none; /* For IE */
    overflow: hidden; /* Hide scrollbars */
}

/* Body Styling */
body {
    background-image: url('/Images/BG_Flikster.png');
    background-size: cover;
    background-position: center;
    height: 100vh;
    overflow: hidden;
}

/* Container for Flexbox */
.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* Start from the top instead of centering */
    width: 100%;
    height: 100vh; /* Ensure full screen height */
}

/* Logo Container */
.logo-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 25%; /* Adjust this value to control logo vertical position */
    flex-shrink: 0; /* Prevent shrinking */
}

/* Logo */
.logo {
    max-width: 80%; /* Default size for index.html */
    height: auto;
}

/* Options Container for Buttons */
.options-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 60%;
    position: absolute;
    top: 57%;
    transform: translateY(-50%);
    flex-shrink: 0; /* Prevent shrinking */
}

/* Button Styling */
.btn {
    background-color: white;
    color: black;
    border: none;
    border-radius: 50px;
    padding: 15px 15px;
    font-size: 18px;
    cursor: pointer;
    margin: 20px 0;
    width: 100%;
    max-width: 250px;
    font-family: 'Arial', sans-serif;
    text-align: center; /* Center text inside the button */
    position: relative; /* For neon effect */
    box-shadow: 0 0 5px #00ff00, 0 0 10px #00ff00, 0 0 20px #00ff00, 0 0 40px #00ff00; /* Neon effect */
}

#gameModeSelection {
    font-family: 'Arial', sans-serif;
    color: white;
    text-shadow: 0 0 5px #00ff00, 0 0 10px #00ff00, 0 0 20px #00ff00, 0 0 40px #00ff00; /* Neon effect */
    margin-top: 10%;
}

#mode-icon {
    text-shadow: none;
    box-shadow: none;
}

/* Action Container for Buttons */
.game-action-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: absolute;
    height: 100%;
    width: 60%;
    flex-shrink: 0;
}

#gameActionHeader {
    position: absolute;
    font-family: 'Arial', sans-serif;
    color: white;
    text-shadow: 0 0 5px #00ff00, 0 0 10px #00ff00, 0 0 20px #00ff00, 0 0 40px #00ff00; /* Neon effect */
    top: 16%;
    margin-top: 10%;
    padding-bottom: 5%;
}

#trackInfo {
    background-color: white;
    color: black;
    border-radius: 10px;
    border: 2px solid black;
    padding: 10px;
    width: 80vw;
    margin-top: 20px;
    margin-bottom: 20px;
    aspect-ratio: 1/1;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center elements vertically */
    align-items: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: relative;
    font-family: 'Arial', sans-serif;
}

#trackType {
    position: absolute;
    top: 12px;
    right: 15px;
    font-size: 24px;
}

#trackName {
    font-size: 18px;
    font-weight: normal;
    position: absolute;
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
}

#trackYear {
    font-size: 40px;
    font-weight: bold;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#trackArtist {
    font-size: 18px;
    font-style: italic;
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
}

.playpause {
    display: flex;
    background: none;
    box-sizing: border-box;
    border: 2px solid white;
    border-radius: 50%;
    padding: 15px;
    font-size: 24px;
    aspect-ratio: 1 / 1;
    color: white;
    margin: 10px;
    box-shadow: 0 0 5px #00ff00, 0 0 10px #00ff00, 0 0 20px #00ff00, 0 0 40px #00ff00; /* Neon effect */
}

/* Smaller Logo on Game Page */
.game-logo-container .logo {
    max-width: 50%; /* Smaller logo for game.html */
    height: auto;
}

.game-logo-container {
    display: flex;
    justify-content: center;
    width: 100%;
    flex-shrink: 0;
    margin-top: 10%;
    margin-bottom: 5%;
}

#return-button {
    position: absolute;
    bottom: 5%;
    left: 7%;
    background-color: transparent;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: white;
    font-family: 'Arial', sans-serif;
}

#playlist-button {
    position: absolute;
    bottom: 5%;
    right: 7%;
    background-color: transparent;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: white;
    font-family: 'Arial', sans-serif;
}

#other-gamemode-button {
    position: absolute;
    bottom: 4.5%;
    right: 7%;
    background-color: transparent;
    border: 5px solid white;
    border-radius: 50px;
    padding: 10px;
    cursor: pointer;
    color: white;
    font-family: 'Arial', sans-serif;
    font-size: 18px;
}

/* Custom NonActiveDeviceAlert Box Styling */
#RestrictedDeviceAlert {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    background-color: rgba(0, 0, 0, 0.9); /* Semi-transparent background */
    color: white;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    z-index: 1000; /* Ensure it appears above other elements */
    display: none;
    font-family: 'Arial', sans-serif;
}

#RestrictedDeviceAlert .alert-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#RestrictedDeviceAlert p {
    margin-bottom: 20px;
    font-size: 18px;
    text-align: center;
}

#RestrictedDeviceAlert button {
    background-color: white; /* Neon green background */
    color: black;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 0 5px #00ff00, 0 0 10px #00ff00, 0 0 20px #00ff00; /* Neon effect */
}

/* Custom NonActiveUserAlert Box Styling */
#NonActiveUserAlert {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    background-color: rgba(0, 0, 0, 0.9); /* Semi-transparent background */
    color: white;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    z-index: 1000; /* Ensure it appears above other elements */
    display: none;
    font-family: 'Arial', sans-serif;
}

#NonActiveUserAlert .alert-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#NonActiveUserAlert p {
    margin-bottom: 20px;
    font-size: 18px;
    text-align: center;
}

#NonActiveUserAlert button {
    background-color: white; /* Neon green background */
    color: black;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 0 5px #00ff00, 0 0 10px #00ff00, 0 0 20px #00ff00; /* Neon effect */
}

/* Custom NonActiveDeviceAlert Box Styling */
#NonActiveDeviceAlert {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    background-color: rgba(0, 0, 0, 0.9); /* Semi-transparent background */
    color: white;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    z-index: 1000; /* Ensure it appears above other elements */
    display: none;
    font-family: 'Arial', sans-serif;
}

#NonActiveDeviceAlert .alert-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#NonActiveDeviceAlert p {
    margin-bottom: 20px;
    font-size: 18px;
    text-align: center;
}

#NonActiveDeviceAlert button {
    background-color: white; /* Neon green background */
    color: black;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 0 5px #00ff00, 0 0 10px #00ff00, 0 0 20px #00ff00; /* Neon effect */
}

/* Flexbox for Game Page */
#game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    height: 80%;
    padding: 5%;
}

#team-selection {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    width: 100%;
    position: relative;
    font-family: 'Arial', sans-serif;
}

#team-selection p {
    font-weight: bold;
    color: #333;
    font-size: 24px;
    margin-bottom: 5%;
}

/* Mobile-first team setup form */
#team-setup {
    display: flex;
    background-color: #ffffff;
    padding: 5%;
    border-radius: 12px;
    width: 100%;
    max-width: 600px; /* Wider form on larger screens */
    margin: 0 auto;
    text-align: center;
    vertical-align: top;
    box-shadow: 0 0 5px #00ff00, 0 0 10px #00ff00, 0 0 20px #00ff00, 0 0 40px #00ff00; /* Neon effect */
}

#team-setup h2 {
    font-family: 'Arial', sans-serif;
    color: #333;
    font-size: 24px;
    margin-bottom: 5%;
}

#teams-list {
    margin-bottom: 5%;
    font-family: 'Arial', sans-serif;
}

#teams-list div {
    margin-bottom: 2.5%;
}

#teams-list label {
    font-size: 16px; /* Slightly larger font for readability */
    font-weight: bold;
    color: #444;
    display: block;
    margin-bottom: 8px;
}

#teams-list input {
    width: 100%;
    padding: 15px;
    border-radius: 8px;
    border: 2px solid #ccc;
    background-color: #f9f9f9; /* Light gray background for inputs */
    font-size: 18px;
    color: #333;
    transition: border-color 0.3s ease;
}

#start-btn {
    margin: 0;
    background-color: #00ff00;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1); /* Soft shadow */
}

/* <-- Timeline game styles: -> */
#board-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    height: 80%;
    padding: 5%;
}

#board-container h1 {
    font-family: 'Arial', sans-serif;
    color: #333;
    font-size: 24px;
    margin-bottom: 5%;
}

.track-info {
    background-color: white;
    color: black;
    border-radius: 10px;
    border: 2px solid black;
    padding: 10px;
    width: 80vw;
    margin-bottom: 20px;
    aspect-ratio: 1/1;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center elements vertically */
    align-items: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: relative;
    font-family: 'Arial', sans-serif;
}
  
  .track-info p {
    margin: 5px 0;
  }
  
  .track-info strong {
    font-weight: bold;
    color: #4CAF50; /* Green color for the labels */
  }

  #playlistURLForm {
    flex-direction: column;
    display: flex;
    width: 80%;
    align-items: center;
  }

  .playlistForm {
    margin: 10px;
    height: 30px;
    width: 100%;
    border: 2px solid black;
    border-radius: 50px;
    padding-left: 2%;
    display: flex;
    align-items: center;
    justify-content: center; /* Center elements vertically */
  }