@import url('https://fonts.googleapis.com/css2?family=MedievalSharp&display=swap');

body {
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: url('background-image.jpg') no-repeat center center fixed;
    background-size: cover;
    font-family: 'MedievalSharp', cursive;
    color: white;
}

.game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 90%;
    max-width: 800px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    padding: 20px;
    text-align: center;
    animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.header {
    margin-bottom: 20px;
    animation: slideDown 1s ease-in-out;
}

@keyframes slideDown {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.character-info {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 20px;
}

.portrait img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 2px solid #444;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.stats, .inventory {
    background: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    padding: 15px;
    width: 45%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    animation: fadeIn 1.5s ease-in-out;
}

.inventory ul {
    list-style-type: none;
    padding: 0;
}

.game-output {
    width: 100%;
    height: 300px;
    background-color: #1c1e22;
    border-radius: 10px;
    border: 2px solid #444;
    padding: 15px;
    overflow-y: auto;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
    margin-bottom: 20px;
    animation: fadeIn 2s ease-in-out;
}

.game-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    animation: fadeIn 2.5s ease-in-out;
}

.game-controls button, .game-controls input {
    padding: 10px 20px;
    font-size: 1rem;
    cursor: pointer;
    background-color: #5a6268;
    border: none;
    border-radius: 5px;
    color: white;
    transition: background-color 0.3s, transform 0.2s;
}

.game-controls button:hover {
    background-color: #343a40;
    transform: scale(1.1);
}

.game-controls input {
    background-color: #343a40;
    color: white;
    margin-right: 10px;
}
