body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

.preline {
  white-space: pre-line;
}

.justify_txt {
    text-align: justify !important;
    width: 100%;  /* Ensures the container takes full width */
    display: block; /* Makes sure it's a block-level element */
}

header {
    background-color: #333;
    color: #fff;
    padding: 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo img {
    height: 50px;
    margin-left: 20px;
}

.main-nav {
    display: flex;
    align-items: center;
}

.menu {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    position: relative;
}

.menu li {
    margin: 0 10px;
    position: relative;
}

.menu a {
    color: #fff;
    text-decoration: none;
    padding: 5px 10px;
}

.account-menu:hover .submenu,
.account-menu:focus-within .submenu {
    display: block;
}

.submenu {
    display: none;
    list-style: none;
    position: absolute;
    background-color: #444;
    padding: 0;
    margin: 0;
    top: 100%;
    left: 0;
    width: 200px;
}

.submenu li {
    margin: 0;
}

.submenu a {
    color: #fff;
    padding: 10px;
    display: block;
    text-decoration: none;
}

.submenu a:hover {
    background-color: #555;
}

.top-right {
    display: flex;
    align-items: center;
}

.language-switcher {
    margin-left: 20px;
}

.language-switcher a {
    color: #fff;
    text-decoration: none;
    margin: 0 5px;
}

.hamburger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    margin-left: 20px;
}

.hamburger-menu span {
    background-color: #fff;
    border-radius: 2px;
    display: block;
    height: 3px;
    margin: 5px 0;
    width: 25px;
}

.user-icons {
    display: flex;
    align-items: center;
}

.user-icons i {
    color: #fff;
    font-size: 1.5em;
    margin-left: 10px;
}

@media (max-width: 768px) {
    .terms {
        display: block;
        margin-top: 5px;
    }
    .menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #333;
        position: absolute;
        top: 60px;
        left: 0;
    }

    .menu.active {
        display: flex;
    }

    .menu li {
        text-align: center;
        margin: 10px 0;
    }

    .submenu {
        position: relative;
        background-color: #333;
        width: 100%;
    }

    .submenu a {
        padding-left: 20px;
    }

    .hamburger-menu {
        display: flex;
    }
}

main {
    padding: 20px;
}

.banner img {
    width: 100%;
    height: auto;
}

section {
    margin: 20px 0;
}

.game {
    display: flex;
    align-items: center;
    margin: 10px 0;
}

.game img {
    width: 150px;
    height: auto;
    margin-right: 10px;
}

footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 10px 0;
    position: fixed;
    width: 100%;
    bottom: 0;
}
.container {
    width: 80%;
    margin: 20px auto;
    text-align:center;
    padding: 20px;
}
@media(max-width: 768px) {
    .container {
        width: 100%;
        margin: 20px auto;
        text-align:center;
        padding: 20px;
    }
}
.game-type {
    background: white;
    padding: 15px;
    border: 1px solid #ddd;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.game-type div {
    flex: 1;
}
.game-type-actions {
    flex: 0 0 50px;
    text-align: right;
}
.game-type-actions a {
    margin-left: 10px;
    color: #007bff;
    text-decoration: none;
    font-size: 1.2em;
}
.game-type-actions a:hover {
    color: #0056b3;
}
@media(max-width: 768px) {
    .game-type {
        flex-direction: column;
        text-align: center;
    }
    .game-type-actions {
        margin-top: 10px;
        text-align: center;
    }
}

/* General Form Styling */
form {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    max-width: 600px;
    margin: 20px auto;
}

/* Form Headings */
form h1,
form h2,
form h3 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.5em;
    color: #333;
}

/* Form Labels */
form label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    font-size: 1em;
    color: #555;
}

/* General Form Inputs */
form input,
form input[type="text"],
form input[type="number"],
form input[type="email"],
form select,
form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 1px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
    box-sizing: border-box; /* Ensure padding is included in the width */
}

/* Form Textarea */
form textarea {
    resize: vertical; /* Allow vertical resizing only */
    min-height: 120px;
    padding: 12px;
}

/* Form Buttons */
form button,
form button[type="submit"],
form button[type="button"] {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

form button[type="submit"]:hover,
form button[type="button"]:hover {
    background-color: #0056b3;
}

/* Form Error and Success Messages */
.alert {
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-weight: bold;
    color: #333;
}

.alert.success {
    background-color: #d4edda;
    color: #155724;
}

.alert.error {
    background-color: #f8d7da;
    color: #721c24;
}

/* Responsive Design */
@media (max-width: 768px) {
    form {
        padding: 15px;
        max-width: 100%;
    }

    form input[type="text"],
    form input[type="number"],
    form input[type="email"],
    form select,
    form textarea {
        font-size: 0.9em;
    }

    form button[type="submit"],
    form button[type="button"] {
        padding: 10px 20px;
        font-size: 0.9em;
    }
}

/* User Item Styling */
users-list {
    width:100%;
}
.user-item {
    width:100%;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 10px;
    padding: 10px;
    background-color: #fff;
    transition: background-color 0.3s ease;
}

.user-item:hover {
    background-color: #f1f1f1;
}

/* Header with Toggle Button */
.user-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.user-header h2 {
    margin: 0;
    font-size: 1.2em;
}

.toggle-btn {
    background-color: #007bff;
    color: #fff;
    padding: 5px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
}

.toggle-btn:hover {
    background-color: #0056b3;
}

/* User Details */
.user-details {
    margin-top: 10px;
    padding: 10px;
    border-top: 1px solid #ddd;
    display: none;
}

/* Edit and Delete Buttons */
.edit-btn,
.delete-btn {
    display: inline-block;
    margin-top: 10px;
    margin-right: 10px;
    padding: 8px 12px;
    text-decoration: none;
    color: #fff;
    border-radius: 4px;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
}

.edit-btn {
    background-color: #28a745;
}

.edit-btn:hover {
    background-color: #218838;
}

.delete-btn {
    background-color: #dc3545;
}

.delete-btn:hover {
    background-color: #c82333;
}

/* Responsive Design */
@media (max-width: 768px) {
    .user-header h2 {
        margin: 0 5px 0 0;
        font-size: 1em;
    }
    h1 {
        font-size: 1.5rem !important; /* Smaller font size for mobile */
    }

    h2 {
        font-size: 1.5rem !important; /* Smaller font size for mobile */
    }

    .toggle-btn {
        font-size: 0.8em;
        padding: 5px;
    }
}
/* Game List Styling */
.game-list {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
}

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

.game-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.game-info h3 {
    margin: 0;
    font-size: 1.2em;
}

.game-info p {
    margin: 5px 0 0;
}

.game-actions a {
    color: #333;
    margin-left: 10px;
    font-size: 1.5em;
    transition: color 0.3s;
    text-decoration: none;
}

.game-actions a:hover {
    color: #007bff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .game-list li {
        flex-direction: column;
        align-items: flex-start;
    }

    .game-actions a {
        font-size: 1.2em;
    }
}

* {
    box-sizing: border-box;
}

.boxcontainer {
    margin-top: 20px; /* Spacing above the box container */
}

.box {
    background-color: #fff; /* Green background */
    color: #000;
    padding: 20px; /* Padding for content */
    text-align: center;
    border-radius: 8px; /* Rounded corners */
    transition: transform 0.3s; /* Animation for hover effect */
}

.box:hover {
    transform: scale(1.05); /* Slightly enlarge on hover */
}

/* Adjust for mobile screens */
@media (max-width: 768px) {
    .box {
        width: 100%; /* Full width for mobile */
    }
}

.game-list ul {
    padding: 0;
    margin: 0;
}

.game-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f8f9fa;
}

.game-info {
    flex: 1;
}

.game-actions .btn {
    margin-left: 10px;
}


/* Ensure the table takes 100% width on all screens */
table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed; /* Ensures cells are equally distributed if content is long */
}
.first_row_class {
    background-color: #f4f4f4 !important;
}

thead th, tbody td {
    padding: 12px;
    text-align: left;
    border: 1px solid #ddd;
}

/* Make the table scrollable on small screens */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Stack table cells vertically on small screens */
@media (max-width: 768px) {
    /* Ensure the table is 100% wide */
    table {
        width: 100%;
        border: none; /* Remove border to avoid conflicts with td borders */
    }

    thead {
        display: none; /* Hide the header in mobile view */
    }

    tbody tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid #ddd;
    }

    tbody td {
        display: block;
        width: 100%; /* Ensure td takes full width */
        padding: 10px 12px;
        text-align: center;
        border-bottom: 1px solid #ddd;
    }

    /* Add label before the content */
    tbody td:before {
        content: attr(data-label); /* Get the label */
        font-weight: bold;
        text-transform: capitalize;
        display: block; /* Make it appear on a new line */
        margin-bottom: 5px; /* Add some space after the label */
    }

    tbody td:after {
        content: "\A"; /* Line break */
        white-space: pre-line; /* Ensure the line break is respected */
    }

    tbody td:last-child {
        border-bottom: 0;
    }
}

.contact-list {
    margin-top: 20px;
}

.contact-list ul {
    list-style: none; /* Removes bullets */
    padding: 0; /* Removes default padding */
    margin: 0 auto; /* Centers the list horizontally */
    text-align: center; /* Centers inline content (like text and icons) */
}

.contact-list li {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 18px;
    color: #333;
}

.contact-list i {
    font-size: 24px;
    margin-right: 10px;
    color: #555; /* Icon color */
}

.contact-list a {
    text-decoration: none;
    color: #007bff; /* Link color */
    transition: color 0.3s;
}

.contact-list a:hover {
    color: #0056b3; /* Link color on hover */
}
