/* --- Base Styles --- */

/*Scroll Bar Compensation*/
html {
  overflow-y: scroll;
}

body {
  font-family: Arial, sans-serif;
  text-align: center;
  background-color: #222;
  color: #fff;
  margin: 0;
  padding: 0;
}

header {
  padding: 40px 20px;
  background-color: #333;
}

/* --- Buttons and Form Inputs --- */
.button, input[type="submit"] {
  background-color: #ff9933;
  color: white;
  padding: 12px 20px;
  text-decoration: none;
  display: inline-block;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

form {
  margin-top: 20px;
}

input[type="text"], select {
  padding: 10px;
  margin: 10px 0;
  width: 250px;
  border-radius: 5px;
  border: none;
  font-size: 16px;
  height: 42px;
  box-sizing: border-box;
  background-color: #ff9933;
  color: white;
}

/* --- Hyperlinks --- */
a:link {
  color: #ffa74f;
}

a:visited {
  color: #d6a3ff;
}

/* --- Dropdown Option Styles --- */
select option {
  background-color: white;
  color: black;
}


/* --- Home Page Specific Styles --- */

/* --- Section Boxes --- */
.section {
  background-color: #333;
  padding: 1.5rem;
  border-radius: 10px;
  margin-bottom: 2rem;
}

/* --- Remove bullets from server specs list --- */
.section ul {
  list-style: none;
  padding-left: 0;
}

.section ul li {
  padding: 0.25rem 0;
}

/* --- Image Carousel with Arrows --- */
.carousel-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #222;
  padding: 1rem;
  border-radius: 10px;
}

.carousel-container img {
  width: 100%;
  max-width: 800px;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  object-fit: cover;
}

.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 153, 51, 0.8);
  border: none;
  padding: 0.5rem 1rem;
  font-size: 2rem;
  color: white;
  cursor: pointer;
  border-radius: 5px;
  z-index: 1;
  transition: background-color 0.2s;
}

.carousel-button:hover {
  background-color: rgba(255, 153, 51, 1);
}

.carousel-button.left {
  left: 10px;
}

.carousel-button.right {
  right: 10px;
}


/* --- News Post Container --- */
.news-post {
  background-color: #333;
  padding: 1rem 1.5rem 1.5rem 1.5rem;
  border-radius: 10px;
  margin-bottom: 2rem;
  text-align: left;
  position: relative;
}

/* --- Game Tag Styling and Positioning --- */
.game-tag {
  position: absolute;
  top: 2rem;
  right: 2rem;
  color: #ff9933;
  font-weight: bold;
}

/* --- News Post Title --- */
.news-post h2 {
  margin-top: 0.2rem;  /* reduce top margin to move title up */
  margin-bottom: 0.5rem;
}

/* --- News Post Images --- */
.news-post img {
  max-width: 100%;
  border-radius: 8px;
  margin: 1rem 0;
}



/* --- Game Tiles --- */
.game-tile img {
  width: 100%;
  height: 180px; /* fixed height */
  object-fit: cover; /* crop or scale image to fill */
  border-radius: 8px;
  display: block;
  margin-bottom: 12px;
}

