/* === Global Reset and Base Styling === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Times New Roman", Times, serif;
    font-size: 18px;
    background-color: #fcf5ce;
    background-image: url("StripedBorder.png");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    color: #1b100b;
    line-height: 1.6;       /* slightly less line-height for tighter text */
    min-height: 100vh;
    padding-bottom: 20px;   /* small bottom padding */
}

/* === Logo Above Header === */
.logo-container {
    text-align: center;
    padding: 0px 0;        /* cut in half */
}

#logoImage {
    width: 50%;
    max-width: 600px;  /* optional upper limit */
    height: auto;      /* preserve aspect ratio */
    display: inline-block;
}

/* === Header === */
.site-header {
    background-color: #1b100b;
    padding: 10px 0;        /* reduced vertical padding */
    margin-bottom: 20px;    /* tighter below */
}

.site-header .wrapper {
    width: 90%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* === Site Title Button === */
.site-title {
    background-color: #7b3f00;
    color: #fcf5ce;
    padding: 6px 18px;      /* smaller button */
    border-radius: 20px;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.site-title:hover {
    background-color: #552800;
}

/* === Main Content Wrapper === */
.page-content .wrapper {
    width: 90%;
    max-width: 900px;
    margin: 0 auto;
    padding-bottom: 10px;   /* small bottom padding */
}

.home {
    margin-left: 30px;      /* less shift */
}

/* === Headings === */
.home h1 {
    font-size: 42px;
    font-weight: 900;
    color: #7b3f00;
    border-bottom: 2px solid #7b3f00;
    padding-bottom: 4px;    /* tighter underline */
    margin: 15px 0 8px;     /* [top right/bottom] reduced */
}

.home h2 {
    font-size: 30px;
    font-weight: 700;
    color: #7b3f00;
    margin: 20px 0 8px;     /* reduced */
}

.home h3 {
    font-size: 24px;
    font-weight: 500;
    color: #7b3f00;
    margin: 15px 0 6px;     /* reduced */
}

/* === Paragraphs and Lists === */
p {
    margin-bottom: 12px;    /* reduced space */
}
ul {
    padding-left: 20px;
    margin-bottom: 12px;    /* reduced */
}

/* === Images & Videos === */
.home img,
.home video {
    display: block;
    margin-left: 30px;      /* match home shift */
    border: 2px solid #1b100b;
    border-radius: 10px;
    max-width: calc(100% - 30px);
    margin-bottom: 12px;    /* spacing below media */
}

/* === Download Links with Uniform Width === */
ul li a[download] {
    background-color: #7b3f00;
    color: #fcf5ce;
    padding: 8px 14px;
    border-radius: 20px;
    text-decoration: none;
    display: inline-block;
    width: 200px;         /* fixed width */
    text-align: center;   /* center the label */
    margin: 4px 0;
    font-size: 16px;
    box-sizing: border-box;
}

ul li a[download]:hover {
    background-color: #552800;
}


/* === Responsive Tweaks === */
@media (max-width: 600px) {
    body { font-size: 16px; }
    .home { margin-left: 10px; }
    .home img,
    .home video {
        margin-left: 0;
        max-width: 100%;
    }
    .logo-container { padding: 10px 0; }
    .site-header { padding: 8px 0; margin-bottom: 15px; }
    .site-title { font-size: 16px; padding: 6px 12px; }
    #logoImage { width: 200px; }
    .home h1 { font-size: 32px; margin: 12px 0 6px; }
    .home h2 { font-size: 26px; margin: 16px 0 6px; }
    .home h3 { font-size: 20px; margin: 12px 0 4px; }
}

/* === Prevent wrap & widen only the “Manual How to Play Wizard…” button === */
ul li a[download][href="Manual_How to Play Wizard in Java.pdf"] {
    display: inline-block;     /* ensure width & white-space apply */
    white-space: nowrap;       /* no wrapping */
    min-width: 260px;          /* tweak until text fits on one line */
    text-align: center;        /* keep label centered */
}

