/* Global Styles */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
}

header {
    text-align: center;
    padding: 20px;
    background-color: #4caf50;
    color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

header h1 {
    margin: 0;
    font-size: 2rem;
}

header p {
    margin: 5px 0 15px;
    font-size: 1.2rem;
}

/* Main Content */
main {
    margin: 20px auto;
    width: 90%;
    max-width: 1200px;
    padding: 20px;
    background-color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

h2 {
    color: #4caf50;
    border-bottom: 2px solid #4caf50;
    padding-bottom: 5px;
    margin-bottom: 15px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    margin: 10px 5px;
    background-color: #4caf50;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    text-align: center;
    transition: background-color 0.3s;
    font-size: 1rem;
}

.btn:hover {
    background-color: #45a049;
}

.btn:active {
    background-color: #3e8e41;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background-color: white;
}

th, td {
    padding: 10px;
    text-align: left;
    border: 1px solid #ddd;
}

th {
    background-color: #4caf50;
    color: white;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

tr:hover {
    background-color: #f1f1f1;
}

/* Notifications Section */
.notifications {
    padding: 10px;
    background-color: #fff9c4;
    border: 1px solid #ffeb3b;
    color: #333;
    border-radius: 5px;
    margin: 20px 0;
}

.notifications p {
    margin: 0;
}

/* Footer */
footer {
    text-align: center;
    padding: 15px 0;
    background-color: #333;
    color: white;
    font-size: 0.9rem;
}

footer a {
    color: #4caf50;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Media Queries */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.5rem;
    }

    header p {
        font-size: 1rem;
    }

    main {
        padding: 15px;
    }

    .btn {
        font-size: 0.9rem;
        padding: 8px 15px;
    }
    /* Notifications */
.notification {
    padding: 10px 15px;
    margin: 10px 0;
    border-radius: 5px;
    font-size: 0.9rem;
    animation: fadeIn 0.3s;
}

.notification.info {
    background-color: #d9edf7;
    color: #31708f;
}

.notification.success {
    background-color: #dff0d8;
    color: #3c763d;
}

.notification.error {
    background-color: #f2dede;
    color: #a94442;
}

/* Tooltips */
.tooltip {
    position: absolute;
    background-color: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    z-index: 1000;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0.9;
}
#battlefield {
    position: relative;
    background-color: #e9f5ff;
    border-radius: 10px;
    overflow: hidden;
}

img {
    transition: transform 0.2s ease;
}

.damage-indicator {
    position: absolute;
    font-size: 16px;
    font-weight: bold;
    color: red;
    animation: rise 1s ease-out forwards;
}

@keyframes rise {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-30px);
    }
}
.resources ul {
    list-style-type: none;
    padding: 0;
}

.resources li {
    font-size: 1.2rem;
    margin: 10px 0;
}

.resources li strong {
    color: #4caf50;
}

}#notifications-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    pointer-events: none; /* Prevent interaction */
}

.notification {
    pointer-events: all; /* Allow interaction within notifications */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: left;
    cursor: pointer;
    opacity: 1;
    animation: fadeIn 0.3s ease-out;
}

.notification:hover {
    opacity: 0.9; /* Slightly dim on hover */
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.login-form {
    max-width: 400px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

.error-message {
    color: #f44336;
    margin-bottom: 15px;
    font-weight: bold;
    text-align: center;
}
.register-form {
    max-width: 400px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

.error-message {
    color: #f44336;
    margin-bottom: 15px;
    font-weight: bold;
    text-align: center;
}

