@import url("../../root.css");

html {
    height: 700vh;
}

@media (max-width: 720px) {
    html {
        height: 900vh;
    }
}

body {
    background-color: var(--primary-color);
    height: 100%;
    top: 0;
}

div.main a {
    text-decoration: underline;
    color: var(--text-color);
}

div.main div.links a {
    text-decoration: none;
}

/* links */
div.links svg.github {
    width: 20px;
    height: 20px;
}

div.links svg.github path {
    fill: var(--text-color);
    transition: fill 0.2s ease;
}

div.links a:hover svg.github path {
    scale: 1.02;
    transform-origin: 10px 10px;
}

div.links a {
    display: flex;
    justify-content: center;
    align-items: center;
}

div.links span {
    margin: 0.5rem;
}

div.links {
    margin: 0.2rem 0 2rem 0;
    font-size: 0.8rem;
}

/* general main */
div.main a:hover {
    font-weight: 700;
}

div.main a.ref-number {
    text-decoration: none;
}


body, html {
    pointer-events: auto;
}

.container {
    pointer-events: auto;
}

.main {
    padding-top: 5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main h1, h2, span {
    display: inline-block;
    margin: 1rem 20vw 1rem;
}

button {
    background-color: transparent;
    border: 1px solid var(--text-color);
    color: var(--text-color);
    border-radius: 5px;
}

button:hover {
    transition: 0.5s font-weight;
    font-weight: 700;
}

@media (max-width: 1280px) {
    .main h1, h2, span {
        margin: 1rem 5vw 1rem;
    }
}

body div.tooltip {
    opacity: 0;
    position: absolute;
    background-color: var(--text-color);
    color: var(--primary-color);
    padding: 8px;
    border-radius: 4px;
    font-size: 1rem;
    pointer-events: none;
    z-index: 1;
}


div.map-container {
    display: flex;
    flex-direction: row;
    gap: 5vw;
    width: 90vw;
    align-items: center;
    justify-content: center;
}

div.map {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

div.map > span {
    flex-grow: 0;
    height: 2rem;
    font-size: clamp(6px, 1rem, 12px);
    white-space: nowrap;
    margin: 0;
    padding: 0;
}

svg:not(.github) {
    min-height: 600px;
    min-width: 370px;
    /* width: 90%; */
}

div.radio {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 10vh;
    right: clamp(1rem, 5vw, 3rem);
    gap: 0.3rem;
    color: black;
}

div.radio > span {
    margin: 0.5rem 0;
}

div.radio div.option {
    display: flex;
    flex-direction: row;
    font-size: clamp(5px, 0.8rem, 12px);
    white-space: nowrap;
}

input[type="radio"] {
    appearance: none;
    background-color: #fff;
    margin: 0;
    margin-right: 0.2rem;
    font: inherit;
    color: currentColor;
    width: 1em;
    height: 1em;
    border: 0.1em solid currentColor;
    border-radius: 50%;
    transform: translateY(0.25em);
}

input[type="radio"]::before {
    display: inline-block;
    content: "";
    width: 0.7em;
    height: 0.7em;
    border-radius: 50%;
    transform: scale(0);
    transition: 120ms transform ease-in-out;
    box-shadow: inset 1em 1em darkslategray;
}

input[type="radio"]:checked::before {
    transform: scale(1) translateY(-0.225em) translateX(0.07em);
}

.bottom-line {
    width: 30vw;
    border: 0.5px solid var(--text-color);
    margin: 4rem 0;
}

div.references {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

div.references > span {
    margin-top: 0;
}


svg.histogram {
    /* min-width: 370px; */
    width: 70vw;
}

svg.bm {
    width: 90vw;
    /* min-width: 370px; */
}

svg.b6 {
    /* min-width: 370px; */
    width: 60wv;
}

div.curtailment-and-extra-plots {
    display: flex;
    flex-direction: row;
    gap: 1vw;
}

@media (max-width: 720px) {
    div.map-container {
        flex-direction: column;
    }

    div.curtailment-and-extra-plots {
        flex-direction: column;
    }

}

