body {
  font-family: monospace, sans-serif;
  text-align: center;
  padding: 20px;
  background-image: url("Images/blkred.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: center;
  color: white;
}

section,
#news,
#my-list,
.game-grid {
  max-width: 1350px;
}

img, video {
  margin-top: 20px;
  border-radius: 8px;
  max-width: 95%;
}

button {
  display: inline-block;
  margin: 20px 2px;
  padding: 10px 20px;
  font-size: 1.2em;
  border-radius: 8px;
  background-color: #ff3333;
  color: white;
  border: none;
  cursor: pointer;
}

button:hover {
  background-color: #cc0000;
}

.home-button {
  position: absolute;
  top: 20px;
  left: 20px;
  margin: 0;
  display: inline-block;
  padding: 8px 16px;
  font-size: 1em;
  border-radius: 6px;
  background-color: #444;
  color: white;
  border: none;
  cursor: pointer;
}

.home-button:hover {
  background-color: #222;
}

section {
  margin: 40px auto;
  padding: 25px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 12px;
}

h2 {
  margin-bottom: 15px;
  color: #ff3333;
  font-family: monospace, sans-serif;
}

#news {
  padding: 30px;
  border-radius: 12px;
  margin: 25px auto;
}

#news h2 {
  text-align: center;
  margin-bottom: 20px;
}

#news .news-content {
  display: flex;
  justify-content: center;   
  align-items: center;
  gap: 110px;
  max-width: 900px;          
  margin: 0 auto;            
}


#news img {
  width: 380px;
  height: 230px;
  object-fit: cover;
  border-radius: 10px;
}

#news .news-text {
  flex: 1;
  text-align: left;
}

#news ul {
  list-style-type: square;
  padding-left: 20px;
  margin: 0;
}

#reviews {
  text-align: left;
}

#reviews h2 {
  text-align: center;
}

#reviews article {
  text-align: left;
  margin-bottom: 25px;
}

.video-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}

.video-grid video {
  width: 100%;
  border-radius: 8px;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin: 40px auto;
}

.game-item img {
  width: 100%;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.game-item img:hover {
  transform: scale(1.05);
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
}

.modal-content {
  background: #111;
  color: white;
  margin: 10% auto;
  padding: 20px;
  border-radius: 10px;
  width: 400px;
  text-align: center;
  position: relative;
}

.close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
  color: white;
}

#my-list {
  background: rgba(0, 0, 0, 0.75);
  padding: 25px;
  border-radius: 12px;
}

#listContainer {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.game-card {
  background: rgba(20, 20, 20, 0.9);
  border: 1px solid rgba(255, 50, 50, 0.4);
  padding: 20px;
  border-radius: 10px;
  color: white;
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.15);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.game-card:hover {
  transform: scale(1.015);
  box-shadow: 0 0 14px rgba(255, 0, 0, 0.45);
}

.game-title {
  font-size: 1.35em;
  font-weight: bold;
  color: #ff3333;
  margin-bottom: 8px;
}

.game-status {
  font-size: 1em;
  margin-bottom: 15px;
  color: #dddddd;
}

.card-buttons {
  display: flex;
  gap: 12px;
}

.card-buttons button {
  flex: 1;
  padding: 10px 12px;
  font-size: 1em;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  background-color: #ff3333;
  color: white;
}

.card-buttons button:hover {
  background-color: #cc0000;
}

.auth-button {
  position: absolute;
  top: 20px;
  right: 20px;
  margin-left: 10px;
  background-color: #444;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1em;
}

.auth-button.signup {
  right: 95px;
}

.auth-button:hover {
  background-color: #222;
}

#site-logo {
    width: 800px;  
    max-width: 90%;
    height: auto;
    display: block;
    margin: 90px auto 10px auto;
}

#gamelist-logo {
    width: 500px;  
    max-width: 90%;
    height: auto;
    display: block;
    margin: 90px auto 10px auto;
}

#auth-wrapper {
    position: absolute;
    top: 20px;
    right: 20px;
    width: auto;
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px; 
    z-index: 9999;
}

#userStatus {
    white-space: nowrap; 
    font-size: 0.9em;
    color: white;
}

@media (max-width: 768px) {

  #news .news-content {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 5px !important;         
    margin-top: -10px !important; 
  }

  #news img {
    width: 90% !important;
    height: auto !important;
    margin-bottom: 5px !important;
  }

  #news .news-text {
    text-align: left !important;
    width: 90% !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  .game-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
  }

  .game-item img {
    width: 100% !important;
    max-width: 180px !important; 
    margin: 0 auto !important;
  }

  .video-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
}

@media (max-width: 500px) {

  .modal-content {
    width: 90% !important;
    margin: 30% auto !important;
  }

  .close {
    top: 8px !important;
    right: 10px !important;
    font-size: 28px !important;
  }
}

