/* Base styles for all screen sizes */
body {
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    margin: 0;
    padding: 0;
}

#top-bar h1, #content h2 {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 10px 0;
    margin: 0;
}

h1 {
    font-size: 2em;
}

h2 {
    font-size: 1.5em;
}

/* Style for the navigation bar */
nav {
    background-color: #333;
    overflow: hidden;
    margin-bottom: 10px;
}

nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: space-around;
}

nav li {
    flex: auto;
    text-align: center;
}

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

nav a:hover {
    background-color: #555;
}

/* Index */
.flex-container {
    display: flex;
    flex-direction: row;
}

#bar-chart-container, #bar-chart {
    flex: 1;
}

#bar-chart {
    width: 100%;
}

.table-container {
    flex: 1;
    margin-left: 10px;
}

#stats-table {
    width: 100%;
}

div#week-buttons {
    text-align: center;
}

/* Add some basic styling to the buttons */
div#week-buttons button {
    padding: 10px 20px;
    margin: 5px;
    background-color: #3498db;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* Style on hover */
div#week-buttons button:hover {
    background-color: #45a7e0;
}

/* Style when the button is active (clicked) */
div#week-buttons button:active {
    background-color: #2e82c2;
}

/* dl */
ul#statistics {
    list-style-type: none;
    padding: 0;
}

ul#statistics li {
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px;
    margin: 5px 0;
    list-style-type: none;
}

ul#statistics li:hover {
    background-color: #f0f0f0;
}

ul#statistics ul {
    padding-left: 20px;
}

ul#statistics ul ul {
    padding-left: 40px;
}

ul#statistics li.event-study {
    background-color: lightblue;
}

ul#statistics li.event-lecture {
    background-color: lightgreen;
}

ul#statistics li.event-traveling {
    background-color: lightcoral;
}

/* Style the table */
table {
    border-collapse: collapse;
    width: 100%;
}

/* Style table headers */
th {
    background-color: #f2f2f2;
    color: #333;
    padding: 10px;
    text-align: left;
    border: 1px solid #ddd;
}

/* Style table cells */
td {
    padding: 8px;
    text-align: left;
    border: 1px solid #ddd;
}

/* Add hover effect on table rows */
tr:hover {
    background-color: #f5f5f5;
}

/* Media Query for mobile devices */
@media only screen and (max-width: 1300px) {
    /* For mobile phones: */
    /*[class*="col-"] {
        width: 100%;
    }*/

    .swal2-container.swal2-bottom-right.swal2-backdrop-show {
        width: 100%;
    }

    #swal2-title {
        font-size: 2.2em;
    }

    #swal2-html-container {
        font-size: 1.8em;
    }

    body {
        font-size: 2em;
    }

    /* Increase font size for better readability on smaller screens */
    h1 {
        font-size: 2em;
    }

    h2 {
        font-size: 2em;
    }

    /* Stack .bar-chart-container and .table-container elements */
    .flex-container {
        flex-direction: column;
    }

    #bar-chart-container, .table-container {
        width: 100%;
        margin-left: 0;
    }

    /* Increase button and link text size */
    div#week-buttons button {
        font-size: 1.2em;
    }

    nav a {
        font-size: 2em;
    }


}