* {
font-family: "mgothic-210", sans-serif;
font-weight: 400;
font-style: normal;
    box-sizing: border-box;
}

body {
    display: flex;
    justify-content: center;
    flex-direction: row;
    height: 100vh;
    margin: 0;
    background: rgb(238, 248, 255);
    background: linear-gradient(0deg, rgba(238, 248, 255, 0.702140231092437) 0%, rgba(255, 255, 255, 1) 50%, rgba(242, 255, 228, 0.7413559173669468) 100%);
}

.container {
    min-height: 100dvh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

input[type="number"] {
    width: 3rem;
    text-align: center;
    font-size: 1rem;
}

.settings {
    font-size: 1rem;
    margin-bottom: 12px;
}

.alert {
    font-weight: 400;
    color: #ff0000;
}

.explain {
    position: fixed;
    left: 16px;
    top: 16px;

    width: clamp(180px, 22vw, 300px);
    max-height: calc(100dvh - 32px);
    overflow-y: auto;

    background-color: #b7ffaf;
    padding: 8px;
    font-size: 12px;
    z-index: 20;
    text-align: center;
}

#fontSelect,
#decreaseFontSize,
#increaseFontSize {
    margin-left: 5px;
    margin-right: 5px;
    background-color: transparent;
    border: 1px black solid;
    cursor: pointer;
}

#timerInput {
    text-align: center;
    background-color: transparent;
    border: none;
    border-bottom: solid black 1px;
}

.write {
    width: 45vw;
}

.writeTool {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 1.2rem;
}

#autoClearInput {
    width: 100%;
    height: 80vh;
    margin-top: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    resize: none;
    font-weight: 400;
    padding: 10px;
    border: 1px solid #6e6e6e;
    display: block;
}

#autoClearInput:focus {
    outline: none;
}

#alertBox {
    background-color: lightgreen;
    border-radius: 50%;
    height: 2rem;
    width: 2rem;
    text-align: center;
    line-height: 2rem;
    font-size: 1rem;
}

#copyButton {
    background-color: transparent;
    padding: 2px 4px;
    border: 1px solid black;
    cursor: pointer;
}


/* media */

@media (max-width: 840px) {
    body {
        min-height: 100dvh;

    }

    .container {
        min-height: 100dvh;
        margin: 1.25rem;
        align-items: center;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }

    .write {
        width: 100%;
        min-width: 0;
        max-width: none;
        margin-top: 1.25rem;
    }

    #autoClearInput {
        height: 70dvh;
        font-size: 16px;
    }

    .writeTool {
        font-size: 14px;
    }

    .alert {
        font-size: 15px;
        margin-bottom: 0;
    }

    .explain {
        top: 8px;
        position: initial;
        width: calc(100% - 16px);
        /* width: fit-content; */
        overflow-y: auto;
        padding: 8px;
        font-size: 14px;
        opacity: 0.92;

    }

    .explain h3 {
        font-size: 12px;
        line-height: 1.3;
        margin-bottom: 8px;
    }

    .settings {
        font-size: 1rem;
        margin-bottom: 6px;
    }

    #fontSelect,
    #decreaseFontSize,
    #increaseFontSize,
    #copyButton {
        font-size: 14px;
    }

    .settings2 {
        display: none;
    }
}