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

/* General Body */
body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #181818;
  color: #f2f2f2;
  min-height: 100vh;
  line-height: 1.6;
}

/* Links */
a {
  color: #7aaaff;
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}
a:hover,
a:focus {
  color: #2884ff;
  outline: none;
}

/* Header */
header {
  background: #111;
  padding: 24px 0 10px;
  border-bottom: 2px solid #2884ff;
}
header h1 {
  font-size: 2.5rem;
  letter-spacing: 3px;
  text-align: center;
  margin-bottom: 12px;
  color: #fff;
}

nav ul {
  display: flex;
  justify-content: center;
  gap: 32px;
  list-style: none;
  padding: 0;
}

nav li a {
  font-size: 1.07rem;
  font-weight: 500;
  letter-spacing: 1px;
  padding: 5px 10px;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}
nav li a:hover,
nav li a:focus {
  background: #222;
  color: #fff;
  outline: none;
}

/* Login Container */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background: linear-gradient(135deg, #1f1f1f, #444);
  font-family: 'Segoe UI', sans-serif;
  padding: 20px;
}

.login-box {
  background-color: #2e2e2e;
  padding: 40px 30px;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0,0,0,0.6);
  text-align: center;
  max-width: 400px;
  width: 100%;
  color: #fff;
}

.login-box h2 {
  margin-bottom: 20px;
  font-size: 28px;
  font-weight: 600;
}

/* Email form */
.input-label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  text-align: left;
}

.input-field {
  width: 100%;
  padding: 10px;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  margin-bottom: 10px;
  outline: none;
}

.input-field:focus {
  box-shadow: 0 0 4px #2884ff;
}

.btn {
  width: 100%;
  padding: 12px;
  font-size: 1.1rem;
  background-color: #2884ff;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn:hover,
.btn:focus {
  background-color: #1f60d8;
  outline: none;
}

/* Error messages */
.error-message {
  margin-top: 6px;
  color: #ff7070;
  font-weight: 600;
  min-height: 1.3em;
}

/* Divider */
.divider {
  margin: 20px 0;
  color: #999;
  font-weight: 600;
  letter-spacing: 3px;
}

/* Main page hero */
#hero {
  background: linear-gradient(90deg, #262d53 0%, #232b3b 100%);
  border-radius: 16px;
  padding: 2rem 1.5rem 1.5rem;
  text-align: center;
  margin: 40px auto;
  max-width: 1100px;
  box-shadow: 0 8px 28px rgba(40, 90, 200, 0.12);
}
#hero h2 {
  font-size: 2rem;
  margin-bottom: 0.7rem;
  color: #79aaff;
}

/* Section Titles */
section h3 {
  margin-bottom: 18px;
  font-size: 1.5rem;
  color: #78adff;
  border-left: 6px solid #2884ff;
  padding-left: 12px;
}

/* Game Grid */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 28px;
  margin: 20px auto 40px auto;
  max-width: 1100px;
}

/* Game Card */
.game-card {
  background: #23283e;
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(61, 114, 255, 0.07);
  overflow: hidden;
  transition: transform 0.18s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: default;
}
.game-card:hover,
.game-card:focus-within {
  transform: translateY(-5px) scale(1.035);
  box-shadow: 0 10px 32px rgba(89, 159, 255, 0.15);
}

.game-card img {
  width: 100%;
  height: 155px;
  object-fit: cover;
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
}

.game-card h4 {
  color: #66aaff;
  font-size: 1.16rem;
  margin: 16px 0 10px;
  letter-spacing: 1px;
}

.game-card p {
  color: #d3e3fd;
  font-size: 0.95rem;
  padding: 0 16px 20px;
  text-align: center;
}

/* News Section */
#news article {
  background: #202846;
  border-left: 4px solid #2884ff;
  border-radius: 7px;
  margin-bottom: 20px;
  padding: 1rem 1.5rem;
  box-shadow: 0 1px 6px rgba(44, 100, 255, 0.07);
}

#news h4 {
  color: #90bbff;
  margin-bottom: 7px;
}
#news p {
  color: #bfd9fa;
  font-size: 1rem;
}

/* Footer */
footer {
  background: #10142a;
  color: #79aaff;
  text-align: center;
  padding: 22px 0;
  width: 100%;
  margin-top: 40px;
  font-size: 1rem;
  letter-spacing: 1px;
  border-top: 1.5px solid #203c57;
}

/* Responsive */
@media (max-width: 700px) {
  header h1 {
    font-size: 2rem;
  }
  nav ul {
    gap: 17px;
    flex-wrap: wrap;
  }
  .game-grid {
    grid-template-columns: 1fr;
  }
  main {
    padding: 0 6px;
  }
}
