:root {
    --BACK_COLOR: #f5f5f5;
    --PUT_COLOR: #0f0f0f;
    --TEXT_COLOR: #0f0f0f;
    --MAIN_WIDTH: 90%;
    --MAX_WIDTH: 960px;
}

* {
    margin: 0;
    padding: 0;
    font-family: sans-serif;
    word-break: break-all;
    box-sizing: border-box;
}

body {
    min-width: 200px;
    min-height: 100vh;
}

header {
    background-color: var(--PUT_COLOR);
    padding: 8px 0;
}

header .header_content {
    width: var(--MAIN_WIDTH);
    max-width: var(--MAX_WIDTH);
    margin: 0 auto;
}

header .header_content a {
    color: var(--BACK_COLOR);
    text-decoration: none;
}

footer {
    position: sticky;
    top: 100vh;
    background-color: var(--PUT_COLOR);
    width: 100%;
    margin: 64px auto 0 auto;
    padding: 4px 0;
}

footer .footer_content {
    color: var(--BACK_COLOR);
    width: var(--MAIN_WIDTH);
    max-width: var(--MAX_WIDTH);
    margin: 0 auto;
}

h2 {
    padding-left: 4px;
    border-left: solid 6px var(--PUT_COLOR);
}

#main {
    width: var(--MAIN_WIDTH);
    max-width: var(--MAX_WIDTH);
    margin: 0 auto;  
}

#desc {
    margin: 32px 0;
}

#desc .desc_title {
    padding-left: 4px;
    border-left: solid 6px var(--PUT_COLOR);
}

#desc .desc_text {
    margin: 8px 0;
    padding: 8px;
    border: solid 2px var(--PUT_COLOR);
    border-radius: 4px;
    font-size: 18px;
}

.tools {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    margin: 16px auto;
}

.tools .tool {
    display: flex;
    gap: 8px;
    border:solid 2px var(--TEXT_COLOR);
    padding: 8px;
    border-radius: 4px;
    text-decoration: none;
}

.tool .tool_icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #000;
    height: 2em;
    aspect-ratio: 1/1;
}

.tool .tool_icon img {
    display: block;
    height: 100%;
    background-color: #fff;
    aspect-ratio: 1/1;
}

.tool .tool_name {
    color: var(--TEXT_COLOR);
    font-size: 24px;
    font-weight: bold;
}

button {
    margin: 4px 0;
    user-select: none;
    border: solid 2px var(--TEXT_COLOR);
    font-size: 18px;
}

button:hover {
    opacity: 0.6;
    outline: 2px solid transparent;
}

button.line_button {
    background-color: rgba(0, 0, 0, 0);
    border: solid 2px var(--PUT_COLOR);
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
}

button.fill_button {
    background-color: var(--PUT_COLOR);
    color: var(--BACK_COLOR);
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
}

button.flip_button {
    background-color: rgba(0, 0, 0, 0);
    border: none;
    outline: none;
}

button.flip_button span {
    padding: 0 4px;
    font-weight: bold;
    user-select: none;
}

div.right_text_box {
    text-align: right;
}

div.width_ratio_base {
    display: flex;
    justify-content: center;
}

span.width_ratio_text {
    display: inline;
    font-weight: bold;
    white-space: nowrap;
}

input[type="text"], input[type="number"] {
    min-width: 240px;
    padding: 4px 8px;
    border: solid 2px var(--PUT_COLOR);
    border-radius: 4px;
}

textarea {
    display: block;
    width: 100%;
    min-height: 240px;
    margin: 4px 0;
    border: solid 2px var(--PUT_COLOR);
    border-radius: 4px;
    resize: vertical;
}