/* ===== WIZARD'S TOWER - COBBLESTONE & WOOD THEME ===== */

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

body {
    /* Pixelated cobblestone background */
    background-color: #5a5a5a;
    background-image: 
        repeating-linear-gradient(
            90deg,
            #4a4a4a 0px, #4a4a4a 2px,
            transparent 2px, transparent 4px
        ),
        repeating-linear-gradient(
            0deg,
            #4a4a4a 0px, #4a4a4a 2px,
            transparent 2px, transparent 4px
        ),
        linear-gradient(
            135deg,
            #666 0%, #5a5a5a 50%, #4a4a4a 100%
        );
    background-size: 8px 8px, 8px 8px, 100% 100%;
    
    color: #2a2a2a;
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.6;
    padding: 20px;
}

.tower-container {
    max-width: 1000px;
    margin: 0 auto;
    background-color: rgba(240, 235, 220, 0.95);
    padding: 30px;
    border: 12px solid #3d2817;
    border-image: repeating-linear-gradient(
        90deg,
        #3d2817 0px, #3d2817 20px,
        #4a3422 20px, #4a3422 40px
    ) 12;
    box-shadow: 
        inset 0 0 20px rgba(0,0,0,0.2),
        0 8px 16px rgba(0,0,0,0.5);
}

/* Headers */
h1 {
    color: #3d2817;
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    font-family: 'Papyrus', 'Georgia', serif;
    margin-bottom: 10px;
}

h2 {
    color: #4a3422;
    font-size: 1.5rem;
    margin-bottom: 8px;
}

h3 {
    color: #5a4332;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.subtitle {
    color: #6a5a4a;
    font-style: italic;
    font-size: 1.1rem;
}

/* Dividers */
.divider {
    border: none;
    height: 3px;
    background: linear-gradient(to right, 
        transparent, 
        #8b7355 20%, 
        #8b7355 80%, 
        transparent
    );
    margin: 20px 0;
}

/* Welcome Frame - Wooden accent box */
.welcome-frame {
    background-color: #f5f0e8;
    border: 8px solid #6b4423;
    border-image: repeating-linear-gradient(
        45deg,
        #6b4423 0px, #6b4423 10px,
        #7d5a3a 10px, #7d5a3a 20px
    ) 8;
    padding: 20px;
    margin: 20px auto;
    max-width: 700px;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.1);
}

.intro-text {
    color: #3d2817;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Room Grid - Door Layout */
.room-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.room-door {
    perspective: 1000px;
}

/* Door Frame - Styled like wooden doorways */
.door-frame {
    background: linear-gradient(to bottom, #8b7355, #6b5843);
    border: 6px solid #4a3422;
    border-radius: 8px 8px 0 0;
    padding: 25px 20px;
    text-align: center;
    box-shadow: 
        0 4px 8px rgba(0,0,0,0.3),
        inset 0 2px 4px rgba(255,255,255,0.1);
    transition: all 0.3s ease;
    position: relative;
}

.door-frame::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 2px solid rgba(139, 115, 85, 0.3);
    border-radius: 4px;
    pointer-events: none;
}

.door-frame:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 8px 16px rgba(0,0,0,0.4),
        inset 0 2px 4px rgba(255,255,255,0.2);
}

.room-desc {
    color: #e8dcc8;
    font-size: 0.9rem;
    margin: 10px 0 15px 0;
    font-style: italic;
}

/* Enter Button - Styled like a door handle/knocker */
.enter-button {
    display: inline-block;
    background: linear-gradient(to bottom, #c9a961, #a88a4f);
    color: #2a2a2a;
    padding: 10px 25px;
    text-decoration: none;
    border: 3px solid #8b7355;
    border-radius: 4px;
    font-weight: bold;
    font-size: 1.1rem;
    box-shadow: 
        0 2px 4px rgba(0,0,0,0.3),
        inset 0 1px 2px rgba(255,255,255,0.3);
    transition: all 0.2s ease;
}

.enter-button:hover {
    background: linear-gradient(to bottom, #d4b66a, #b89558);
    transform: scale(1.05);
    box-shadow: 
        0 4px 8px rgba(0,0,0,0.4),
        inset 0 1px 2px rgba(255,255,255,0.5);
}

.enter-button:active {
    transform: scale(0.98);
}

/* Updates Box */
.updates-box {
    background-color: #f5f0e8;
    border: 6px solid #6b4423;
    padding: 20px;
    margin: 30px auto;
    max-width: 600px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.update-list {
    list-style: none;
    text-align: left;
    padding: 0;
}

.update-list li {
    padding: 8px 0;
    border-bottom: 1px solid #d4c4a8;
    color: #3d2817;
}

.update-list li:last-child {
    border-bottom: none;
}

.date {
    color: #8b7355;
    font-weight: bold;
    margin-right: 10px;
}

/* Navigation Links - Standard text links with door-like color */
a {
    color: #6b4423;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s ease;
}

a:hover {
    color: #a88a4f;
    text-decoration: underline;
}

a:visited {
    color: #5a3a22;
}

/* Navigation Bar */
.nav-bar {
    background: linear-gradient(to bottom, #8b7355, #6b5843);
    border: 4px solid #4a3422;
    padding: 15px;
    text-align: center;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.nav-bar a {
    color: #f5f0e8;
    margin: 0 15px;
    text-decoration: none;
    font-size: 1.1rem;
}

.nav-bar a:hover {
    color: #c9a961;
}

/* Info/Content Boxes */
.info-box, .scroll-box {
    background-color: #f5f0e8;
    border: 6px solid #6b4423;
    padding: 20px;
    margin: 20px 0;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.1);
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: #f5f0e8;
}

th, td {
    padding: 12px;
    text-align: left;
    border: 2px solid #8b7355;
}

th {
    background: linear-gradient(to bottom, #8b7355, #6b5843);
    color: #f5f0e8;
    font-weight: bold;
}

tr:nth-child(even) {
    background-color: #ebe6d8;
}

/* Lists */
ul {
    list-style-type: none;
    padding-left: 0;
}

ul li::before {
    content: "→ ";
    color: #8b7355;
    font-weight: bold;
    margin-right: 8px;
}

/* Footer Text */
.footer-text {
    color: #6a5a4a;
    font-size: 0.9rem;
    margin-top: 20px;
}

.footer-text small {
    font-size: 0.8rem;
    color: #8a7a6a;
}

/* Images */
img {
    border: 2px solid #8b7355;
    vertical-align: middle;
}

/* Horizontal Rules */
hr {
    border: none;
    height: 2px;
    background: linear-gradient(to right, 
        transparent, 
        #8b7355 20%, 
        #8b7355 80%, 
        transparent
    );
    margin: 20px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tower-container {
        padding: 20px;
        border-width: 8px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .room-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .nav-bar a {
        display: block;
        margin: 10px 0;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}