/* ===== Reset ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #000;
    color: #ccc;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

/* ===== Header ===== */
header {
    position: relative; /* lets us absolutely position button inside */
    background-color: #000;
    padding: 20px;
    border-bottom: 1px solid #222;
    flex-shrink: 0;
    text-align: center; /* center the logo */
}

header .site-logo {
    max-height: 100px;
    width: auto;
}

/* ===== Navigation ===== */
nav {
    background-color: #111;
    display: flex;
    justify-content: center;
    padding: 12px 0;
    border-bottom: 1px solid #222;
    flex-shrink: 0;
}

nav a {
    color: #ccc;
    text-decoration: none;
    margin: 0 20px;
    font-weight: bold;
    letter-spacing: 0.5px;
    position: relative;
    transition: color 0.3s ease;
}

nav a::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    background: #666;
    left: 0;
    bottom: -4px;
    transition: width 0.3s ease;
}

nav a:hover {
    color: #aaa;
}

nav a:hover::after {
    width: 100%;
}

/* ===== Main (Landing Page Style) ===== */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    background: url('minecraft-bg.jpg') center/cover no-repeat;
    text-align: center;
}

h1, h2 {
    color: #fff;
    margin-bottom: 15px;
}

p {
    max-width: 700px;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

/* ===== Footer ===== */
footer {
    text-align: center;
    padding: 15px;
    background-color: #000;
    border-top: 1px solid #222;
    font-size: 14px;
    color: #777;
    flex-shrink: 0;
}



/* ===== Responsive ===== */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
    }
    nav a {
        margin: 10px 0;
    }
    main {
        padding: 20px;
    }
}

/* Right side container */
.header-right {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* keeps text under button aligned right */
}

/* Server IP under button */
.server-ip {
    font-size: 0.85rem;
    color: #aaa;
    margin-top: 5px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.server-ip:hover {
    color: #fff;
    text-decoration: underline;
}

/* Main home page */
.update-section {
  display: flex;
  gap: 20px;
  margin: 40px auto;
  max-width: 1100px;
}

.update-main {
  flex: 2;
  background-color: #111;
  padding: 20px;
  border: 1px solid #333;
  border-radius: 8px;
  color: #ddd;
}

.update-main h3 {
  margin-bottom: 5px;
}

.update-date {
  font-size: 0.9rem;
  color: #999;
  margin-bottom: 15px;
}

.update-image img {
  width: 100%;
  border-radius: 6px;
  margin-bottom: 15px;
}

.update-main h1 {
  font-size: 2rem;
  color: #fff;
}

.update-main h1 span {
  color: orange;
}

.highlight {
  color: orange;
  font-weight: bold;
}

.highlight-green {
  color: #2ecc71;
  font-weight: bold;
}

/* Sidebar */
.update-sidebar {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cta-box {
  background-color: #000;
  border: 1px solid #333;
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
}

.cta-box img {
  width: 100%;
  display: block;
}

.cta-content {
  padding: 15px;
}

.cta-button {
  display: inline-block;
  background-color: gold;
  color: #000;
  padding: 8px 14px;
  border-radius: 4px;
  font-weight: bold;
  text-decoration: none;
}

.cta-button:hover {
  background-color: #e6c200;
}

/* Social Media */
.social-media {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  background: #111;
  padding: 10px;
  border-radius: 8px;
  justify-content: center;
}

.social-media img {
  width: 36px;
  height: 36px;
}

/* sidebar */

html {
    height: 100%;
    overflow-y: auto; /* enable vertical scroll */
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
}

/* Webkit scrollbar styling */
html::-webkit-scrollbar {
    width: 8px;
    background: transparent;
}

html::-webkit-scrollbar-thumb {
    background-color: transparent;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

html:hover::-webkit-scrollbar-thumb {
    background-color: rgba(50, 50, 50, 0.2);
}

/* Firefox hover effect */
html:hover {
    scrollbar-color: rgba(50, 50, 50, 0.2) transparent;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #000;
    color: #ccc;
    display: flex;
    flex-direction: column;
    min-height: 100%; /* let it grow with content */
    overflow-y: visible; /* let html handle scrolling */
}

.update-details {
    background-color: #111;
    padding: 20px;
    margin-top: 20px;
    border-radius: 8px;
    color: #ccc;
}

.update-details h2, 
.update-details h3 {
    color: #fff;
    margin-bottom: 10px;
}

.update-details ul {
    padding-left: 20px;
}

.update-details li {
    margin-bottom: 8px;
}

/* Only makes images smaller inside .update-section */
.update-section {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.update-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.update-image img {
    width: 100%;
    max-width: 350px;
    height: auto;
    border-radius: 8px;
}

.update-summary {
    margin-top: 15px;
}

.update-details {
    flex: 1.5;
    background-color: #111;
    padding: 20px;
    border-radius: 8px;
    color: #ccc;
}

.update-details h2,
.update-details h3 {
    color: #fff;
}

.update-details ul {
    padding-left: 20px;
}

.update-details li {
    margin-bottom: 8px;
}