:root {
    --ff-body: "Montserrat", sans-serif;
    --ff-heading: "Oswald", sans-serif;
    --ff-pre: 'Source Code Pro', monospace;
    --ff-figCap: 'Padauk', sans-serif;

    --fs-xl: clamp(1rem, 3vw + 1rem, 8rem);
    --fs-600: 1.25rem;
    --fs-400: 1rem;
    --fs-pre: 0.8rem;

    --fig-bg: #dee2e6;
    --emphasized-text: #e03131;
}

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

body {
    font-family: var(--ff-body);
    font-size: var(--fs-400);
    line-height: 1.4;
    font-weight: 400;
}

div.ulkokeha {
    display: flex;
    flex-direction: column;
}

section {
    display: flex;
    flex-direction: row;
}


/* L E I P Ä T E K S T I */
DIV.leipateksti {
    order: 2;
    flex-grow: 2;
    border-left: 1px dotted var(--fig-bg);
    padding-left: 5px;
}

h1 {
    font-family: var(--ff-heading);
    font-weight: 900;
    font-size: var(--fs-xl);
    line-height: 1;
    text-transform: uppercase;
}

h2 {
    font-family: var(--ff-heading);
    font-weight: 900;
    font-size: var(--fs-600);
    line-height: 1;
}

p.lead {
    font-size: var(--fs-600);
    line-height: 1.3;
}


figure {
    max-width:90%;
    border-bottom: 1px solid var(--fig-bg);
    /* background-color: var(--fig-bg); */
    padding: 5px;
}

figcaption {
    font-family: var(--ff-figCap);
}

.leipateksti img{

  max-width: 100%;
  height: auto;
}


SPAN.ml {
    margin-left: 5px;
}

SPAN.emphasizedText {
    color: var(--emphasized-text);
}

pre {
    font-family: var(--ff-pre);
    margin: 0;
    font-size: var(--fs-pre);
}

.marginaali, .hideFromSmallScreens {}

/* 
 * M U I S T I I N P A N O T
 */
 DIV.marginaali {
    order: 1;
    min-width: 250px;
}

DIV.notes {
    border: 1px dotted gray;
    margin: 10px;
    padding: 0px;
}

.notes P {
    margin: 0px 0px 5px 0px;
    padding: 2px;
    background-color: black;
    color: white;
    font-weight: bold;
}

.notes ul {
    list-style-type: none; /* Remove bullets */
    padding: 0; /* Remove padding */
    margin: 0; /* Remove margins */    
}

.notes li {
    padding-left: 2px;
}

.memoLabel{
    font-weight: bold;
    margin-right: 5px;
}


/* Medium screens */
/* @media all and (max-width: 700px) { */
@media (max-width: 60em){

    DIV.marginaali, section.hideFromSmallScreens, SPAN.katsoMuistiinpanot {
        display: none;
    }

}

@media (max-width: 60em){
    :root {
        --fs-600: 1.5rem;
        --fs-400: 1.125rem;
    }
}

@media (max-width: 45em){
    :root {
        --fs-pre: 0.65rem;
    }
}
