:root {
    --prim-col: #07689F;
    --sec-col: #A2D5F2;
    --light-col: #FAFAFA;
    --lightdark-col: #ccc;
    --acc-col: #FF7E67;
    --dark-col: #2C3333;
}
* {
    margin: 0;
    box-sizing: border-box;
}
html {
    font-size: 12px;
}
body {
    background-color: var(--light-col);
    color: var(--dark-col);
    font-family: 'Noto Sans';
}

h1, h2, h3 {
    font-family: 'Crete Round';
    font-weight: normal;
}
h1 {
    font-size: 2rem;
    line-height: 1em;
    display: inline-block;
}
h2 {
    font-size: 1.4rem;
}
h3 {
    text-align: center;
    margin-top: 1rem;
}
a {
    color: inherit;
    text-decoration: inherit;
}
header {
    background-color: var(--prim-col);
    color: var(--light-col);
    padding: 1rem 1.5rem;
    /* padding-right: 0; */
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    /* height: 6rem; */
}
header h2 {
    /* Margin to match margin of main element */
    /* margin-right: clamp(50% - 350px, 15%, 50% - 175px); */
    
    font-style: italic;
    /* margin-right: ; */
    display: inline-block;
}
main.index {
    margin-top: 3.5rem;
    margin-left: auto;
    margin-right: auto;
    width: 90%;
}
main.index div.container {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    flex-wrap: wrap;
} 
div.card {
    width: 250px;
    border-radius: 0.3rem;
    padding: 1rem;
}
div.card:hover {
    background-color: rgba(0,0,0,0.1);
    text-decoration: underline;
}
div.card svg {
    display: block;
    margin: auto;
}
main.map-game {
    /* margin: auto; */
    margin-top: 0;
    margin-bottom: 1rem;

    position: relative;

     display: flex;
     flex-wrap: wrap;
     justify-content: center;
    /*
    gap: 3rem;
    justify-content: center; */
}
object {
    padding: 0 1rem;
}
section {
    width: 100%;
    display: flex;
    row-gap: 1.5rem;
    column-gap: 1.5rem;
    align-items: center;
    justify-content: flex-end;
    padding: 1rem 2rem;
}
div#question {
    font-size: 1.7rem;
}
div#question span {
    color: var(--prim-col);
    font-weight: bold;
    line-height: 1.1em;
}
button {
    background-color: var(--prim-col);
    color: var(--light-col);
    border-style: none;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    font-size: 1rem;
    cursor: pointer;
}
button:hover {
    filter: brightness(110%);
}
button:active {
    filter: brightness(120%);
}
table.scores {
    white-space: nowrap;
    font-size: 0.85rem;
    border-collapse: separate;
    border-spacing: 0.6rem 0;
}
table.scores td {
    padding: 0;
}
table.scores td:first-child {
    text-align: right;
}
table.scores td:last-child {
    font-family: 'Crete Round';
    font-size: 1.1rem;
}
#highscore-elem span:last-child {
    display: inline-block;
    margin-left: 0.3rem;
    --rotation: 0;
    transition: transform 0.5s linear;
    cursor: pointer;
    line-height: 100%;
    font-size: 1.25rem;
    vertical-align: text-top;
}
div.overlay {
    position: absolute;
    color: var(--light-col);
    transition: opacity 1s;
    opacity: 1;
    background-color: rgba(0,0,0,0.55);
    padding: 0.375rem 1rem;
    border-radius: 0.375rem;
    transform: translateY(-100%) translateX(-50%);
    pointer-events: none;
}
div.fireworks {
    position: absolute;
    border-radius: 50%;
    background-color: white;
    height: 3px;
    width: 3px;
    transition: all 0.5s linear;
    transform: translateY(-100%) translateX(-50%);
    pointer-events: none;
}
div.dialog {
    display: none;
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    padding: 1rem 1.5rem;
    border-radius: 0.375rem;
    background-color: var(--sec-col);
    text-align: center;
}
footer {
    display: none;
    background-color: var(--lightdark-col);
    height: 5rem;
}

.cookie_consent {
    display: flex;
    justify-content: center;
    gap: 2rem;
    align-items: center;
    background-color: #2C3333;
    color: var(--light-col);
    position: fixed;
    width: 100%;
    max-height: 0;
    bottom: 0;
    transition: max-height .5s ease-in;
    overflow: hidden;
}
 .cookie_consent > * {
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}
.cookie_consent.show {
    max-height: 50vh;
    transition: max-height 2s ease-out;
}
.cookie_consent a {
    color: var(--prim-col);
}
.cookie_consent a:hover {
    text-decoration: underline;
}

/* LAYOUT WHEN LARGE SCREEN */
@media screen and (min-width: 770px) {
    html {
        font-size: 16px;
    }
    header h2 {
        margin-right: calc(50% - 140px);
    }
    main.index {
        width: 70%;
    }
    main.map-game {
        margin-top: 1.5rem;
    }
    section {
        flex-direction: column;
        width: 200px;
        margin-top: 0;
        justify-content: flex-start;
        padding: 0;
    }
    div#question {
        height: 5em;
        text-align: center;
    }
    div#question span {
        display: block;
    }
    object {
        padding: 0;
        min-height: 500px;
        height: calc(100vh - 6.5rem);
        max-height: 700px;
    }
}

/*
p {
    margin-bottom: 1rem;
}
a {
    color: var(--prim-col);
    text-decoration: none;
  }
a:visited {
    color: inherit;
}
a:hover {
    color: var(--acc-col);
    text-decoration: underline;
}
*/
