.center {
    display: grid;
    /* place-items: center; */
    justify-content: center;
    min-height: 90vh;
    /* justify-content: center; */
    /* align-items: center; */
}

main {
    padding: 2rem 8rem;
    line-height: 1.5;
    max-width: 1200px;
    margin: auto;
}

section *:not(span) {
    margin-top: 0.5em;
}

.ft-heading-1 {
    font-size: 4rem;
    margin-bottom: 2rem;
}

.ft-heading-2 {
    font-size: 3rem;
}

a {
    color: var(--l-accent-color);
    transition: all 0.2s ease-in-out;
}

a:hover {
    color: var(--l-secondary-color);
}

.button {
    display: inline-flex;
    align-items: center;
    gap: 2rem;
    padding: 0.5rem 2rem;
    border: 2px solid var(--l-secondary-color);
    color: var(--l-secondary-color);
    width: fit-content;
    box-sizing: border-box;
    text-align: center;
    text-decoration: none;
    background: transparent;
    transition: all 0.2s ease-in-out;
}

.button:hover {
    background: var(--l-accent-color);
    border: 2px solid var(--l-accent-color);
    color: var(--l-secondary-color);
}

.button.btn-long {
    width: 100%;
}

.button + .content {
    margin-top: 0rem;
    border: 2px solid var(--l-secondary-color);
    border-top: 0;
    padding: 1rem;
    margin-bottom: 1rem;
}

.button.btn-long:hover {
    background: transparent;
    border: 2px solid var(--l-secondary-color);
    color: var(--l-secondary-color);
}

.button + .content * {
    margin: 0;
    /* list-style: none; */
    margin-left: 1em;
}

hr {
    border: 2px solid var(--l-accent-color);
}

object {
    width: 50%;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.form-success a {
    margin-top: 1rem;
}

.form-success h1 {
    margin-bottom: 1rem;
}

ul {
    list-style: outside;
    margin-left: 1rem;
}

#calc *:has(.input) {
    margin-top: 0;
}

#calc .input {
    display: flex;
    /* gap: 0.5rem; */
    /* padding: 0.5rem; */
    border: 2px solid var(--l-secondary-color);
    background-color: var(--l-primary-color);
    color: var(--l-secondary-color);
    transition: all 0.2s ease-in-out;
    align-items: center;
    margin-bottom: 1.5rem;
}

#calc .input > span {
    padding: 1rem;
}

#calc .input > input {
    border: none;
    background-color: var(--l-primary-color);
    color: var(--l-secondary-color);
    padding: 0.5rem;
    width: 100%;
    font-size: 1rem;
    margin: 0;
    font-size: 2rem;
    line-height: 1;
}

#calc-table {
    margin-top: 1rem;
    border-collapse: collapse;
    width: 100%;
    overflow: auto;
    display: block;
    white-space: nowrap;
}

#calc-table th,
#calc-table td {
    border: 2px solid var(--l-secondary-color);
    padding: 0.5rem;
    text-align: center;
    width: 100%;
}

#calc-table th {
    background-color: var(--l-secondary-color);
    color: var(--l-primary-color);
}

#calc-table tr:has(td) :nth-child(-n + 3) {
    color: transparent;
    text-shadow: 0 0 10px #fff;
    user-select: none;
}

menu {
    position: fixed;
    top: 50%;
    left: 2rem;
    transform: translateY(-50%);
    border: 1px solid var(--l-secondary-color);
    padding: 2rem;
}

menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

menu ul li {
    font-family: var(--standard-font);
}

.full-version-popup {
    padding: 1rem;
    border: 2px solid var(--l-accent-color);
    border-radius: 10px;
}

.full-version-popup p {
    margin: 0;
}

.full-version-popup p:first-child {
    margin-bottom: 1rem;
    color: var(--l-secondary-color);
}

@media screen and (max-width: calc(1200px + 20rem)) {
    menu {
        position: relative;
        top: 0;
        left: 0;
        transform: none;
        max-width: calc(1200px - 20rem);
        margin: auto;
        border: none;
    }

    menu ul {
        flex-direction: row;
        justify-content: space-between;
    }
}

@media screen and (max-width: 768px) {
    main {
        padding: 2rem 1rem;
        hyphens: auto;
    }
    object {
        width: 100%;
    }
    .ft-heading-1 {
        font-size: 2.5rem;
    }
    .ft-heading-2 {
        font-size: 1.5rem;
    }
    p {
        font-size: 1.2rem;
    }
    .button {
        width: 100%;
    }
    menu ul {
        flex-direction: column;
    }

    #akm-calc .grid-2 {
        grid-template-columns: 1fr;
        gap: 0;
    }
}
