/* styles.css */

/* General styles */
body {
    font-family: 'Special Elite', cursive;
    background-image: url('bg.png'); /* Use your background image */
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: #333;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

/* Ensure all text elements inherit the font */
h1, h2, h3, h4, h5, h6, p, a, button, input, label, table, td, th, li, span {
    font-family: inherit;
}

h1 {
    text-align: center;
}

.main-heading {
    margin: 50px 40px;
}

a {
    color: #000;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Remove link style */
.remove-link {
    float: right;
    margin-right: 10px;
    color: #000;
    text-decoration: none;
}

.remove-link:hover {
    text-decoration: underline;
}

/* Index page */
ul {
    list-style-type: none;
    padding-left: 0;
    text-align: center;
}

ul li {
    margin: 10px 0;
}

/* Updated link styles to make them buttons */
ul li a {
    display: block;
    background-color: #ffffff5e;
    width: 100%;
    max-width: 250px;
    margin: 10px auto;
    padding: 12px 20px 10px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 1.2em;
    color: #000;
    border: 1px solid #ccc;
}

/* Increase spacing between buttons on the index page */
.index-page ul li a {
    margin-bottom: 20px; /* 10px more than default */
}

ul li a:hover {
    background-color: #e9e9e9;
    text-decoration: none;
}

/* Form styles */
form {
    text-align: center;
    max-width: 800px;
    margin: 0 auto; /* Center the form */
}

input[type="text"], input[type="password"], input[type="file"] {
    width: 100%;
    max-width: 250px;
    border-radius: 8px;
    border: 1px solid #ccc;
    line-height: 40px;
    background-color: #ffffff5e;
    margin: 10px auto;
    padding: 0 10px;
    font-size: 1em;
    color: #000;
}

label {
    display: block;
    margin-bottom: 5px;
}

/* Specific style for variety input fields */
.variety-input {
    max-width: 200px;
}

/* Updated button styles */
button, input[type="submit"], .back-button a, .delete-button {
    font-size: 1em;
    background-color: #ffffff5e;
    width: 100%;
    max-width: 250px;
    display: block;
    margin: 10px auto;
    padding: 12px 20px 10px;
    border-radius: 10px;
    color: #000;
    text-decoration: none;
    border: 1px solid #ccc;
}

button:hover, input[type="submit"]:hover, .back-button a:hover, .delete-button:hover {
    background-color: #e9e9e9;
    cursor: pointer;
}

/* Table styles */
table {
    margin: 0 auto;
}

th, td {
    text-align: left;
    padding: 5px;
    border-bottom: 2px solid #ff000060; /* #ddd; */
}

table {
    border-collapse: collapse;
    width: 100%;
}

/* Center the 'Poäng' column */
.points-column {
    text-align: center;
}

/* Take Test Page */
#sortable {
    list-style-type: none;
    margin: 0;
    padding: 0;
    width: 100%; /* Adjusted to fit the viewport */
}

#sortable li {
    margin: 5px;
    padding: 10px;
    font-size: 1.2em;
    border: 1px solid #ccc;
    cursor: move;
    background-color: #f9f9f9;
    user-select: none; /* Prevent text selection during drag */
    position: relative;
    display: flex;
    align-items: center;
}

#sortable li .number {
    width: 30px;
    text-align: right;
    margin-right: 10px;
}

#sortable li .drag-handle {
    font-size: 1.5em;
    cursor: move;
    margin-left: auto;
}

/* Exclude inputs inside #sortable from the general input styles */
#sortable input {
    border-radius: 0;
    border: none;
    line-height: normal;
    background-color: transparent;
}

/* Thumbnail images */
.thumbnail {
    width: 50px;
    height: 50px;
    object-fit: cover;
    margin-right: 10px;
    cursor: pointer;
    vertical-align: middle;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
}

.close {
    position: absolute;
    top: 30px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* Results Page */
.results-page body {
    overflow-x: auto; /* Allow horizontal scrolling on results page */
}

.card-container {
    display: flex;
    overflow-x: auto;
    padding: 10px;
}

.card {
    flex: 0 0 auto;
    border: 1px solid #ccc;
    margin: 10px;
    padding: 10px;
    min-width: 200px;
    background-color: rgba(255, 255, 255, 0.8);
}

/* Back to Menu Button */
.back-button {
    display: block;
    margin: 20px auto;
    text-align: center;
}