/*****************   Header   ********************/
.header-line {
    display: flex;
    justify-content: center;
    align-items: center;
}
img.logo {
    width: 90px;
    height: auto;
}
/*****************   Homepage   ********************/
body {
    font-family: Arial, sans-serif;
    /*background: linear-gradient(to bottom, #ffffff, #e9ecef); !* Light-to-medium gray gradient *!*/
    background-color: #e9ecef;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background-image: url('../img/background2.png'); /* Replace with the image path */
    background-size: cover;
    background-position: center;
    z-index: -1; /* Ensures the background stays behind other elements */
    position: relative; /* Required for z-index to work */
}


/* Apply Roboto font to headings, buttons, and other text elements */
h1, h2, h3, h4, h5, h6, button, input, textarea, label, p, span, div {
    font-family: 'Roboto', Arial, sans-serif;
    font-weight: 400; /* Regular weight for most text */
}
header {
    position: absolute;
    top: 10px;
    left: 10px;
}
header button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
}
main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-align: center;
}
.centered {
    text-align: center;
}

/*****************   New Button   ********************/
button {
    /*background: linear-gradient(to bottom left, #28a745, #218838);*/
    background: linear-gradient(to bottom left, #4cb674, #35b263);
    color: white;
    border: none;
    padding: 10px 20px;
    margin: 10px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2), 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

button:hover {
    /*background: linear-gradient(to bottom left, #218838, #1e7e34);*/
    background: linear-gradient(to bottom left, #439662, #26934e);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.3), 0 2px 5px rgba(0, 0, 0, 0.2);
    transform: scale(1.05);
}

button:active {
    transform: scale(1);
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2), 0 1px 2px rgba(0, 0, 0, 0.1);
}

.or {
    margin: 10px 0;
}

/*****************   Signup Page & Login Page   ********************/
form {
    display: flex;
    flex-direction: column;
    align-items: center;
}
label, input {
    margin-bottom: 10px;
    font-size: 1rem;
}
input {
    padding: 8px;
    width: 100%;
    max-width: 300px;
}

button[type="submit"], .back-to-home {
    /*background: linear-gradient(to bottom left, #28a745, #218838); !* Gradient background *!*/
    background: linear-gradient(to bottom left, #4cb674, #35b263);
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    margin-top: 20px;
    margin-bottom: 10px; /* Additional margin for spacing */
    font-size: 1rem;
    font-weight: bold;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2), 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease; /* Smooth transition for hover and active states */
}

button[type="submit"]:hover, .back-to-home:hover {
    /*background: linear-gradient(to bottom left, #218838, #1e7e34); !* Darker gradient on hover *!*/
    background: linear-gradient(to bottom left, #439662, #26934e);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.3), 0 2px 5px rgba(0, 0, 0, 0.2); /* Elevated shadow */
    transform: scale(1.05); /* Slightly larger on hover */
}

button[type="submit"]:active, .back-to-home:active {
    transform: scale(1); /* Reset scaling for pressed effect */
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2), 0 1px 2px rgba(0, 0, 0, 0.1); /* Reduced shadow */
}

.error-message {
    color: red;
    font-size: 1rem;
    display: none;
}
.signup-success {
    text-align: center;
}

/*****************   User Page & Play Page   ********************/
.button-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.button-container button {
    margin-bottom: 10px;
}
.button-row {
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin-bottom: 20px;
}
.button-row button {
    margin: 0 10px;
}
.play-buttons-el, .play-buttons-en {
    display: flex;
}

.button-line-1, .button-line-2 {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}
.button-line-1 {
    padding-top: 30px;
}
.button-line-2 {
    padding-top: 30px;
}
.button-line-3 {
    padding-bottom: 30px;
}
.level-container {
    border: 2px solid #4cb674;
    border-radius: 10px;
    padding: 5px;
}

.level {
    text-align: center;
}
.play-buttons-title {
    text-align: center;
}

/*****************   Scores   ********************/
/* Headings */
h1, h2 {
    font-family: 'Roboto', Arial, sans-serif;
    color: #212529; /* Darker color for headings */
    text-align: center;
}

/* Table styling */
table {
    width: 90%;
    margin: 20px auto;
    border-collapse: collapse;
    font-family: 'Roboto', Arial, sans-serif;
    background-color: #f8f9fa; /* Match background color */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Add shadow for modern look */
    border-radius: 10px; /* Rounded corners */
    overflow: hidden; /* Ensure content respects border radius */
}

/* Table headers */
table th {
    background-color: #4cb674; /* Green accent color for headers */
    color: white;
    padding: 10px;
    text-transform: uppercase;
    font-size: 14px;
}

/* Table rows */
table td {
    padding: 10px;
    border: 1px solid #ddd; /* Light border between rows */
    text-align: center;
    font-size: 14px;
}

/* Alternate row background */
table tr:nth-child(odd) {
    background-color: #e9ecef; /* Slightly darker background for odd rows */
}

table tr:nth-child(even) {
    background-color: #ffffff; /* White background for even rows */
}

/* Highlight the top 3 rows */
.score-table tr:nth-child(2) {
    background-color: #8fd19e; /* Light green for 1st place */
    font-weight: bold; /* Make text bold for emphasis */
}

.score-table tr:nth-child(3) {
    background-color: #a3e4b1; /* Slightly lighter green for 2nd place */
    font-weight: bold;
}

.score-table tr:nth-child(4) {
    background-color: #b8eec3; /* Even lighter green for 3rd place */
    font-weight: bold;
}

/* Hover effect on rows */
table tr:hover {
    background-color: #f1f1f1; /* Highlight row on hover */
    cursor: pointer;
}
.scores-el, .scores-en {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}
.table-left {
    margin-right: 10px;
}
.table-right {
    margin-left: 10px;
}

/*****************   Info   ********************/
.info {
    margin-left: 10px;
    margin-right: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.7);
}

#tutorial-button-el, #tutorial-button-en {
    background: #d49726;
}
.red {
    background: #d45226;
}