/* Global Styles */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    color: #333;
    margin: 0;
    padding: 0;
}

.container {
    width: 95%;
    margin: auto;
    overflow: hidden;
    text-align: center;
}

/* Header */
header {
    background: #333;
    color: #fff;
    padding: 10px 20px;
    min-height: 70px;
    border-bottom: #77ab59 3px solid;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    margin: 0;
}

header .logout-container {
    margin: 0;
}

header .logout-container button {
    background: #f44336;
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
}

header .logout-container button:hover {
    background: #e53935;
}

/* Navbar */
.navbar {
    background: #444;
    overflow: hidden;
    display: flex;
    justify-content: center;
}

.navbar a {
    float: none;
    display: inline-block;
    color: #fff;
    text-align: center;
    padding: 14px 20px;
    text-decoration: none;
    font-size: 17px;
}

.navbar a:hover {
    background: #ddd;
    color: black;
}

/* Form Styles */
form {
    display: inline-block;
    background: #fff;
    padding: 20px;
    margin-top: 20px;
    border: #ccc 1px solid;
    border-radius: 5px;
    width: 95%;
}

input[type="text"], input[type="number"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

input[type="submit"] {
    width: 100%;
    background: #77ab59;
    color: #fff;
    border: 0;
    padding: 30px;
    font-size: 32px;
	font-weight: bold;
    cursor: pointer;
    border-radius: 5px;
}

input[type="submit"]:hover {
    background: #6a9b50;
}

.table {
    width: 100%;
    margin: 20px 0;
    border-collapse: collapse;
}

.table th, .table td {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: left;
}

.table th {
    background: #333;
    color: #fff;
}

.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: #f44336;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 150%; /* Position the tooltip above the text */
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip input.error + .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* Success and Error Messages */
.success, .error {
    color: #fff;
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 5px;
}

.success {
    background: #4caf50;
}

.error {
    background: #f44336;
}

.clearfix::after {
    content: "";
    clear: both;
    display: table;
}

/* Results Display */
.results-display {
    margin: 20px 0;
    font-size: 72px;
    font-weight: bold;
}

.results-display img {
    vertical-align: middle;
    width: 256px;
    height: auto;
}

.current-game-box {
    background: #fff;
    border: 1px solid #ccc;
    padding: 20px;
    display: inline-block;
    border-radius: 5px;
}

.table-border{
    width: 80%;
    background: #fff;
    border: 1px solid #ccc;
    padding: 20px;
    display: inline-block;
    border-radius: 5px;    
}

/* Aktiver Navigationslink */
.navbar a.active {
    background: #333; /* Dunkler als der Standard-Hintergrund */
    color: #fff;
}

.rules {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 60%;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.rules h3 {
    color: #333;
}

.rules p, .rules ul {
    color: #555;
    line-height: 1.6;
}

.rules ul {
    list-style-type: none;
    padding-left: 0;
}

.rules ul li {
    /*background-color: #77ab59;*/
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 4px;
}

.user-info {
    float: center;
    margin-top: 0px;
    color: #333;
    font-weight: bold;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.username {
    color: #77ab59;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}


.form-inline select, .form-inline input[type="number"], .form-inline input[type="text"], .form-inline input[type="submit"] {
    margin-right: 10px;
    margin-bottom: 10px;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.form-inline input[type="submit"] {
    background-color: #77ab59;
    color: white;
    border: none;
    cursor: pointer;
}

.form-inline input[type="submit"]:hover {
    background-color: #0056b3;
}

select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding: 5px;
    border-radius: 4px;
    border: 1px solid #ccc;
}
