/* base.html*/
body { /* styles for the entire body of the website, to ensure that it looks similar */
    font-family: sans-serif;
    width: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #d6d6d6;
    padding-top: 5%;
    padding-bottom: 5%;
    margin-top:10%;
    margin-left: 25%;
    margin-right:25%;
    color: #121111;
}
.dark-mode-icon { /* styles for the icon of the darkmode, in particular position, width and height */
    position: absolute;
    top: 10px;
    right: 50px;
    width: 30px;
    height: 30px;
    cursor: pointer;
}

html.dark-mode body { /* background and font color of the darkmode*/
    background-color: #222;
    color: white;
}

html.dark-mode nav { /* backgroundcolor of the navbar in the darkmode */
    background-color: #333;
}

html.dark-mode button, .dark-mode-icon { /**/
    filter: invert(1);
}

html.dark-mode a{
    color:crimson;
}

html.dark-mode table, html.dark-mode th, html.dark-mode td {
    border: 1px solid rgb(202, 202, 202);
  }

nav { /* styles for the navbar, in particular backgroundcolor, size and position */
    background-color: #1c1a1a;
    padding: 15px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 10%;
    z-index: 10;

}

nav img:not(.dark-mode-icon) {
    height: 100px;
    width: auto;
}

nav ul { /* styles for the list used for the links in the navbar */
    list-style-type: none;
    padding: 0;
    margin: 0;
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

}

nav ul li { /* styles for the list elemets, like Home and Top*/
    display: inline;
    margin: 0 15px;
}

nav ul li a { /* style of the links in the list, liked to the different pages */
    text-decoration: none;
    font-weight: bold;
    font-size: 25px;
    color: rgb(234, 250, 236);
}

h1 {
    font-weight: bold;
    font-size: 40px;
}

h2 {
    font-weight: bold;
    font-size: 35px;
}

h3 {
    font-weight: bold;
    font-size: 30px;
}

h4 {
    font-weight: bold;
    font-size: 27px;
}

h5 {
    font-weight: bold;
    font-size: 23px;
}

a {
    color:darkred;
}

footer {
    text-align: center;
}

/* index.html*/

table, th, td {
    border: 1px solid black; 
  }
table{
    border-collapse: collapse;
}
th, td {
    padding: 10px;
    text-align: left;
  }

/* Cookie Banner */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #1c1a1a;
    color: rgb(234, 250, 236);
    padding: 15px 25px;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    box-sizing: border-box;
}

#cookie-banner p {
    margin: 0;
    font-size: 14px;
}

#cookie-banner a {
    color: crimson;
}

.cookie-banner-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-banner-buttons button {
    padding: 8px 18px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    border-radius: 4px;
}

#cookie-accept {
    background-color: crimson;
    color: white;
}

#cookie-decline {
    background-color: #555;
    color: white;
}

/* Error Handler */

.error-handler{
    text-align: center;
}

.error-handler h1{
    font-size: 7em;
}