*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}


:root {
    color-scheme: light dark;
    --main-color: rgb(210, 221, 141);
    --up-color: red;
    --down-color: green;
    --background-color-light: rgb(255, 255, 255);
    --background-color-dark: rgb(20, 20, 20);
   
}

* {
    font-family: sans-serif;
}

body {
    margin:  20px;
    background-color: light-dark(var(--background-color-light),var(--background-color-dark))
}

h1 {
    margin:0;
}

h2 {
    font-size: 1.3rem;
    margin: 0;
}


p {
    font-size: 1em;
}

a:link {
    color: inherit;
    text-decoration: none;
}

a:visited {
    color: inherit;
}

sup {
    font-size: .75em;
}


footer {
    font-size: .7em;
}

.container {
    display: flex;
    overflow: auto; 
    gap: 30px;
    margin: 5vh 0;
}

.panel {
    flex: none;
    width: 100%;
}

.linkcardcontainer {
    display: flex;
    justify-items: stretch;
    overflow: auto;
    gap: 20px;
    margin-bottom: 5vh;
}

.linkcard {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 80vw;
    height: 100%;
    padding: 20px 20px;
    border: solid 3px;
    border-radius: 24px;
    
}


.linkdetails{
    display: flex;
    flex-wrap: wrap;

}

.linkcard h2 {
    font-size: 2em;
    margin: 0 0 15px 0;
    width: 100%;
}

.linkdetails p {
    width: 40%;
    margin: 0;
}

.linkdetails p:last-child {
    width: 100%;
    margin-top: 15px;
    text-align: justify;
}

.linkaction {
    text-align: right;
    margin: 30px 0 0 0;
    
}
.up {
    color: var(--up-color);
}

.down {
    color: var(--down-color);
}


#prices {
    width: 100%;
}

#prices caption {
    caption-side: bottom;
    font-size: .7em;
    margin: 10px;
    text-align: left;
}

th {
    padding: 10px 5px;
    text-align: left;
    text-transform: uppercase;
}

td {
    padding: 5px;
    border-bottom: solid 1px;
}

#publicholidays {
    width: 100%;
}

#sources {
    display: flex;
    flex-direction: column;
    border-top: solid 1px;
    padding: 10px 0;

}

#endnote {
    text-align: center;
    border-top: solid 1px;
   
}



@media screen and (min-width: 700px) {

    .panel {
        width: 500px;
    }

   
    .linkcard {
        width: 400px;
    }
}

