@font-face {
    font-family: "Roboto";
    src: url("fonts/Roboto-VariableFont_wdth,wght.ttf") format("truetype");
    font-style: normal;
}
@font-face {
    font-family: "Roboto";
    src: url("fonts/Roboto-Italic-VariableFont_wdth,wght.ttf") format("truetype");
    font-style: italic;
}
@font-face {
    font-family: "Roboto Slab";
    src: url("fonts/RobotoSlab-Regular.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: "Roboto Slab";
    src: url("fonts/RobotoSlab-Bold.ttf") format("truetype");
    font-weight: bold;
    font-style: normal;
}
html {
    margin: 0px;
}
header {
    display: flex;
    height: fit-content;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background-color: white;
    padding: 0.5rem 0rem;
}
header div {
    margin: 0rem 0.5rem;
}
header img {
    max-height: 36px;
    max-width: 120px;
}
#open-press-logo {
    float: right;
}
body {
    width: auto;
    margin: 0px;
    background-color: #f6f8fb;
    color: #333333;
    font-family: "Roboto", Verdana, Arial, sans-serif;
}
.activity_flex {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    row-gap: 4rem;
    column-gap: 2rem;
    padding: 5rem 0rem;
}
.line-dot-activity {
    position: relative;
    width: fit-content;
    height: fit-content;
    box-shadow: 4px 4px 10px 5px #eeeeee;
    background-color: white;
    max-width: 100vw;
}
#preview-canvas {
    position: absolute;
    top: 0;
    left: 0;
    touch-action: none;
}
.activity-footer {
    width: 400px;
    height: fit-content;
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 1rem;
    padding-bottom: 2rem;
}
p.indented {
    font-style: italic;
    margin-left: 2rem;
}
p.hanging {
    margin-left: 2rem;
    text-indent: -2rem;
}
.activity-explanation {
    max-width: 50rem;
}
button.collapsible-header {
    box-sizing: border-box;
    background-color: #003143;
    font-family: "Roboto", Verdana, Arial, sans-serif;
    font-weight: bold;
    color: white;
    border: none;
    outline: none;
    width: 100%;
    cursor: pointer;
    padding: 1.2rem 1.2rem;
    transition: background-color 0.2s;
    text-align: left;
    font-size: large;
    position: relative;
}
button.collapsible-header:hover {
    background-color: #005464;
}
button.collapsible-header:focus {
    background-color: white;
    color: #003143;
    outline: 3px solid #003143;
    z-index: 100;
}
button.collapsible-header:focus::after {
    color: #003143
}
button.collapsible-header::after {
    color: white;
    content: "+";
    float: right;
    font-weight: bold;
}
button.collapsible-header-active::after {
    content: "\2212"; /* Minus symbol */
}
.collapsible-content {
    max-height: 0px;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
    padding: 0rem 1.2rem; /* Vertical padding is not used here because it creates space between the headings */
}
.collapsible-content img {
    display: block;
    margin: auto;
}
#clear-button {
    color: white;
    padding: 14px 40px;
    background-color: #007788;
    border-radius: 50px;
    border: 0px;
    outline: 2px solid #007788;
    font-family: "Roboto", Verdana, Arial, sans-serif;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: bold;
    font-size: medium;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
}
#clear-button:hover, #clear-button:focus {
    color: #003143;
    background-color: white;
    box-shadow: 4px 4px 10px 5px #eeeeee;
    outline: 3px solid #003143;
}
h1 {
    font-family: "Roboto Slab", Verdana, Arial, sans-serif;
    font-size: xxx-large;
    margin-top: 6rem;
    color: #003143;
}
h2 {
    font-family: "Roboto Slab", Verdana, Arial, sans-serif;
    color: #003143;
}
header h2 {
    font-size: medium;
    padding-left: 0rem;
    padding-right: 0rem;
}
body > h1, h2 {
    max-width: calc(1200px + 2rem);
    margin-left: auto;
    margin-right: auto;
    padding-left: 2rem;
    padding-right: 2rem;
}
h3 {
    font-family: "Roboto", Verdana, Arial, sans-serif;
    color: #003143;
}
h4 {
    font-family: "Roboto", Verdana, Arial, sans-serif;
    color: #003143;
}

/* Large mobile and desktop screens */
@media screen and (min-width: 938px) {
    header {
        padding: 1rem 0rem;
    }
    header div {
        margin: 0rem 1rem;
    }
    header img {
        max-height: 72px;
        max-width: 240px;
    }
    header h2 {
        font-size: large;
    }
    .activity_flex {
        flex-direction: row;
        align-items: normal;
        padding: 5rem 2rem;
    }
    .line-dot-activity {
        position: sticky;
        top: 2rem;
    }
}

/* Small mobile screens */
@media screen and (max-width: 430px) {
    header h2 {
        font-size: small
    }
    .line-dot-activity {
        overflow: scroll;
    }
}