@font-face {
    font-family: 'MinecraftRegular';
    src: url('/fonts/MinecraftRegular.otf') format('opentype'); 
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: 'MinecraftRegular', Arial, sans-serif;
    margin: 0;
    background-color: #1a1a1a; 
    color: #e0e0e0; 
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden; 
    overflow-y: auto;
}

.container {
    flex-grow: 1; 
    max-width: 900px; 
    width: 95%; 
    margin: 20px auto; 
    padding: 20px;
    background-color: #2a2a2a; 
    box-shadow: 0 0 20px rgba(0,0,0,0.4); 
    border-radius: 8px;
    box-sizing: border-box; 
    display: flex;
    flex-direction: column; 
}

.introduction-text {
    background-color: #3a3a3a; 
    border: 1px solid #444; 
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    color: #e0e0e0; 
    line-height: 1.5; 
    text-align: justify; 
}

.introduction-text p {
    margin-top: 0;
    margin-bottom: 10px; 
}

.introduction-text p:last-child {
    margin-bottom: 0; 
}

.introduction-text strong {
    color: #ffd700; 
}

.error-message, .no-data {
    text-align: center;
    padding: 20px;
    font-style: italic;
    color: #ff9999; 
    background-color: #4a2d2d; 
    border: 1px solid #773333; 
    border-radius: 5px;
    margin-top: 20px;
    font-family: 'MinecraftRegular', Arial, sans-serif;
}
.no-data {
    color: #bbbbbb; 
    background-color: #3a3a3a; 
    border-color: #555; 
}

.house-columns-container {
    display: flex; 
    justify-content: center; 
    align-items: stretch; 
    flex-wrap: wrap; 
    gap: 30px; 
    padding: 40px 20px; 
    flex-grow: 1; 
    
    width: 100%; 
    margin-left: 0;
    margin-right: 0;
    max-width: none; 
}

.house-column {
    
    background-color: rgba(42, 42, 42, 0.7); 
    border: 1px solid #444;
    border-radius: 10px;
    padding: 30px 25px;
    text-align: center;
    box-shadow: 0 6px 15px rgba(0,0,0,0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    
    flex: 1 1 0; 
    min-width: 300px; 
    
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between; 

    
    background-size: cover; 
    background-position: center; 
    background-repeat: no-repeat; 
    position: relative; 
    z-index: 1; 
    overflow: hidden; 
}

.house-column::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1; 
    border-radius: 10px;
    
    
}

.house-column:hover {
    transform: translateY(-8px); 
    box-shadow: 0 10px 25px rgba(0,0,0,0.6);
}

.blue-column::before {
    background-color: rgba(63, 81, 181, 0.5); 
    border-color: #536dfe; 
}
.blue-column:hover {
    box-shadow: 0 10px 25px rgba(63, 81, 181, 0.6); 
}

.yellow-column::before {
    background-color: rgba(255, 193, 7, 0.5); 
    border-color: #ffd740; 
}
.yellow-column:hover {
    box-shadow: 0 10px 25px rgba(255, 193, 7, 0.6); 
}

.red-column::before {
    background-color: rgba(244, 67, 54, 0.5); 
    border-color: #ff5252; 
}
.red-column:hover {
    box-shadow: 0 10px 25px rgba(244, 67, 54, 0.6); 
}

.default-column::before {
    background-color: rgba(42, 42, 42, 0.7); 
    border-color: #444;
}
.default-column:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.6);
}

.house-logo {
    width: 150px; 
    height: 150px;
    object-fit: contain; 
    margin-bottom: 25px;
    position: relative; 
    z-index: 2; 
}

.house-name,
.house-description,
.house-motto,
.house-members {
    position: relative; 
    z-index: 2; 
    
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

.house-name {
    font-size: 2.2em;
    margin-bottom: 15px;
    
}

.house-description {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 10px;
    max-width: 90%; 
    word-wrap: break-word; 
}

.house-motto {
    font-size: 1.05em; 
    font-style: italic; 
    margin-top: 10px; 
    margin-bottom: 15px; 
    color: inherit; 
    max-width: 90%;
    word-wrap: break-word; 
    
}

.house-members {
    font-size: 1.2em;
    font-weight: bold;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.2); 
    width: 100%; 
}

.no-data {
    text-align: center;
    padding: 50px;
    font-size: 1.5em;
    color: #aaa;
}

@media (max-width: 1024px) {
    .house-columns-container {
        gap: 20px; 
        padding: 30px 15px; 
    }
    .house-column {
        flex: 1 1 45%; 
        max-width: 48%; 
    }
    .container { 
        padding: 15px;
    }
    .introduction-text { 
        padding: 15px;
        font-size: 1em;
    }
}

@media (max-width: 768px) {
    .house-columns-container {
        padding: 20px 10px; 
        gap: 15px; 
    }
    .house-column {
        flex: 1 1 100%; 
        max-width: 100%; 
        padding: 25px 20px;
    }
    .house-logo {
        width: 120px;
        height: 120px;
        margin-bottom: 20px;
    }
    .house-name {
        font-size: 1.8em;
        margin-bottom: 10px;
    }
    .house-description {
        font-size: 1em;
        margin-bottom: 8px;
    }
    .house-motto { 
        font-size: 0.95em;
        margin-top: 8px;
        margin-bottom: 10px;
    }
    .house-members {
        font-size: 1.1em;
        margin-top: 10px;
        padding-top: 10px;
    }
    .container { 
        padding: 10px;
    }
    .introduction-text { 
        padding: 10px;
        font-size: 0.95em;
    }
}

@media (max-width: 480px) {
    .house-columns-container {
        padding: 15px 5px; 
        gap: 10px; 
    }
    .house-column {
        padding: 20px 15px;
    }
    .house-logo {
        width: 100px;
        height: 100px;
        margin-bottom: 15px;
    }
    .house-name {
        font-size: 1.6em;
    }
    .house-description {
        font-size: 0.9em;
    }
    .house-motto { 
        font-size: 0.9em;
    }
    .house-members {
        font-size: 1em;
    }
    .container { 
        padding: 8px;
    }
    .introduction-text { 
        padding: 10px;
        font-size: 0.9em;
    }
}