* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Roboto, sans-serif;
  font-size: 100%;
  background-color: #f4f4f4;
  color: #333;
  line-height: 1.6;
  padding-top: 120px;
}

header {
  position: fixed;
  background-color: #222;
  color: white;
  padding: 1rem 0;
  top: 0;
  width: 100%;
  z-index: 100;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

header h1 {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  flex-wrap: wrap;
}

nav li {
  margin: 0 1rem;
}

nav a {
  text-decoration: none;
  font-weight: bold;
  color: #fff;
  padding: 0.5rem;
  transition: background-color 0.3s;
}

nav a:hover {
  background-color: #555;
  border-radius: 5px;
}

nav a:focus {
  outline: 2px dashed #ffcc00;
  background-color: #444;
  border-radius: 5px;
}

button,
.btn {
  display: block;
  margin: 0.5rem auto 0;
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  background-color: #004b8a;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-align: center;
}

button:hover,
.btn:hover {
  background-color: #003f73;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #000;
  color: #000000;
  padding: 8px;
  z-index: 100;
}

.skip-link:focus {
  top: 0;
  left: 0;
  background: #ffcc00;
  color: #ffffff;
  font-weight: bold;
}

main {
  max-width: 900px;
  margin: auto;
  padding: 2rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #222;
}

p, li {
  font-size: 1rem;
  margin-bottom: 1rem;
  text-align: left;
}

ul {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.image-placeholder {
  margin: 1rem 0;
  text-align: center;
}

.image-placeholder img {
  max-width: 100%;
  height: 100px;
  border-radius: 5px;
}

.thumbnail {
  width: 200px;
  border: 2px solid #aaa;
  border-radius: 5px;
  transition: transform 0.2s ease;
}

.thumbnail:hover {
  transform: scale(1.05);
}

.aside-box {
  background-image: url('images/rpg-background.jpg');
  background-size: cover;
  background-position: center;
  padding: 1rem;
  border-radius: 8px;
  color: white;
  margin-top: 1rem;
}

a:link {
  color: #0066cc;
  text-decoration: underline;
}

a:visited {
  color: #888;
  text-decoration: underline;
}

a:hover,
a:focus {
  color: #ff6600;
}

a:active {
  color: #cc0000;
}


video {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

form {
  margin-top: 2rem;
  background-color: #f9f9f9;
  padding: 1rem;
  border-radius: 8px;
}

.form-group {
  margin-bottom: 1rem;
}

label {
  display: block;
  font-weight: bold;
  margin-bottom: 0.3rem;
}

input[type="text"],
input[type="email"],
select,
textarea {
  width: 100%;
  padding: 0.5em;
  font-family: inherit;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #0077cc;
  background-color: #eef;
}

details {
  margin-top: 1rem;
  background-color: #eef;
  padding: 0.5rem 1rem;
  border-left: 4px solid #88c;
  border-radius: 4px;
}

summary {
  font-weight: bold;
  cursor: pointer;
}

figure {
  margin: 0;
}

figcaption {
  font-size: 0.9rem;
  text-align: center;
  margin-top: 0.5rem;
  color: #111;
}


table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
  font-size: 1.05rem;
}

table th,
table td {
  border: 1px solid #888;
  padding: 0.75rem 1rem;
  text-align: left;
}

table th {
  background-color: #ddd;
  color: #222;
}

table caption {
  font-weight: bold;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  text-align: left;
}

@media (max-width: 1023px) {
  .responsive-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .responsive-grid > article,
  .responsive-grid > aside,
  .responsive-grid > figure {
    width: 100%;
  }

  img,
  video,
  table {
    max-width: 100%;
    width: 100%;
    height: auto;
  }

  form {
    width: 100%;
  }

  input,
  textarea,
  select {
    width: 100%;
    font-size: 1rem;
  }

  table th,
  table td {
    font-size: 0.95rem;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
  }

  nav li {
    margin: 0.5rem 0;
  }

  button,
  .btn {
    width: 100%;
    max-width: 300px;
  }
}

nav a[aria-current="page"] {
  background-color: #007acc;
  color: #fff;
  border-radius: 5px;
}
figure {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  margin: 1.5rem auto;
}

figure img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
}
.thumbnail {
  max-width: 100%;
  width: 200px;
  height: auto;
  border: 2px solid #aaa;
  border-radius: 5px;
  transition: transform 0.2s ease;
  display: block;
  margin: 0 auto;
}


