/* base stuff */
:root {
    --white: #f4f5f6;
    --black: #312d2e;
    --light-green: #57af62;
    --mid-green: #3B8F5B;
    --dark-green: #16793c;
    --dark-purple: #772a83;
    --light-purple: #9970ac;
    --dark-grey: #424242;
    --light-grey: #757575;
    --alert_main: #fcefb4;
    --alert_border: #fae588;
}

* {
    border: 0;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    margin: 0;
    display: grid;
    grid-template-rows: auto 1fr auto;
}

.page-header {
    position: relative;
    z-index: 2;
    background-color: var(--black);
    align-content: center;
    color: var(--white);
    width: 100%;
    font-family: "Lexend";
    height: 70px;
    font-size: 50px;
    font-weight: 700;
    text-align: center;
}

.page-footer {
    position: relative;
    bottom: 0px;
    color: var(--light-grey);
    margin: 0px 0px 10px 10px;
    font-family: "Lexend";
    font-size: 12px;
    font-weight: 300;
}

a {
    color: var(--light-grey);
    font-family: "Lexend";
    font-size: 12px;
    font-weight: 300;
}

.page-content {
    display: flex;
    flex-direction: column;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

textarea:focus{
    outline: none;
}

/* ctrlcmd+f __alerts__ */

.alert-body {
    position: fixed;
    opacity: 0;
    top: 15px;
    top: 15px;
    left: 20%;
    right: 20%;
    z-index: 3;
    background-color: var(--alert_main);
    border: 2px solid var(--alert_border);
    border-radius: 16px;
    padding: 15px;
    margin-top: 30px;
}

.alert-text {
    text-align: center;
    color: var(--black);
    font-family: "Lexend";
    font-size: 25px;
    font-weight: 300;
}

.alert-popup {
    animation-name: fade-in-out;
    animation-duration: 4s;
}

@keyframes fade-in-out {
    0% {
        opacity: 0%;
    }

    5% {
        opacity: 100%;
    }

    70% {
        opacity: 100%;
    }

    100% {
        opacity: 0%;
    }
}

/* ctrl/cmd+f __pages__ */

.prompt-page {
    z-index: 1;
    display: flex;
    flex-direction: column;
    padding-left: 30px;
    padding-right: 30px;
    padding-top: 30px;
}

.response-page {
    display: none;
    flex-direction: column;
    padding-left: 30px;
    padding-right: 30px;
    padding-top: 30px;
}

.code-section {
    align-items: flex-start;
}

.title-textbox {
    display: flex;
    align-items: flex-start;
    font-family: "Lexend";
    font-size: 24px;
    font-weight: 300;
    margin-bottom: 20px;
}

b {
    font-weight: 500;
}

i {
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    line-height: 0px;
}

.code-card {
    background-color: var(--dark-green);
    height: fit-content;
    padding: 10px;
    width: 100%;
    border-radius: 16px;
}

.code-body {
    display: flex;
    align-items: center;
    background-color: var(--light-green);
    padding: 5px;
    padding-left: 15px;
    border-radius: 6px;
    color: var(--white);
    font-family: "Lexend";
    font-size: 25px;
    font-weight: 500;
}

.code-box {
    display: flex;
    flex-direction: row;
    justify-content: stretch;
    height: fit-content;
    margin-bottom: 30px;
}

.checker {
    display: inline;
    background-color: var(--dark-green);
    width: fit-content;
    padding: 10px;
    padding-left: 15px;
    padding-right: 15px;
    margin-left: 5px;
    height: 100%;
    border-radius: 16px;
    color: var(--white);
    font-family: "t26-carbon";
    font-style: italic;
    font-size: 25px;
    font-weight: 500;
}

.new-code {
    display: none;
    background-color: var(--dark-green);
    width: 135px;
    padding: 10px;
    padding-left: 15px;
    padding-right: 15px;
    margin-left: 5px;
    height: 100%;
    border-radius: 16px;
    color: var(--white);
    font-family: "t26-carbon";
    font-style: italic;
    font-size: 25px;
    font-weight: 500;
}

.checker:active {
    background-color: var(--mid-green);
}

.new-code:active {
    background-color: var(--mid-green);
}

.code-input {
    background-color: transparent;
    resize: none;
    width: 100%;
    height: 32.5px;
    margin-left: 10px;
    color: var(--white);
    font-family: "Lexend";
    font-size: 25px;
    font-weight: 500;
}

.code-input::placeholder {
    background-color: transparent;
    resize: none;
    width: 100%;
    height: fit-content;
    color: var(--white);
    opacity: 60%;
    font-family: "Lexend";
    font-size: 25px;
    font-weight: 500;
}

.prompt-card {
    background-color: var(--dark-green);
    height: fit-content;
    padding: 10px;
    border-radius: 16px;
    margin-bottom: 30px;
}

.card-caption {
    text-align: center;
    color: var(--white);
    font-family: "t26-carbon", monospace, serif;
    font-size: 25px;
    font-style: italic;
    margin-bottom: 10px;
}

.prompt-body {
    display: flex;
    align-items: center;
    background-color: var(--light-green);
    padding: 5px;
    padding-left: 10px;
    padding-right: 10px;
    border-radius: 6px;
    color: var(--white);
    font-family: "Lexend";
    font-size: 25px;
    font-weight: 500;
    height: fit-content;
}

.placeholder {
    background-color: var(--light-green);
    color: var(--white);
    opacity: 60%;
}


.modifier-card {
    background-color: var(--dark-purple);
    height: fit-content;
    padding: 10px;
    border-radius: 16px;
    margin-bottom: 30px;
}

.modifier-body {
    display: flex;
    align-items: center;
    background-color: var(--light-purple);
    padding: 5px;
    padding-left: 10px;
    padding-right: 10px;
    border-radius: 6px;
    color: var(--white);
    font-family: "Lexend";
    font-size: 25px;
    font-weight: 500;
    height: fit-content;
}

.modifier-input {
    background-color: transparent;
    resize: none;
    width: 100%;
    height: 32.5px;
    color: var(--white);
    font-family: "Lexend";
    font-size: 25px;
    font-weight: 500;
}

.modifier-input::placeholder {
    background-color: transparent;
    resize: none;
    width: 100%;
    color: var(--white);
    opacity: 60%;
    font-family: "Lexend";
    font-size: 25px;
    font-weight: 500;
}

.response-card {
    background-color: var(--dark-grey);
    height: fit-content;
    padding: 10px;
    border-radius: 16px;
    margin-bottom: 30px;
}

.response-body {
    display: flex;
    align-items: center;
    background-color: var(--light-grey);
    padding: 5px;
    padding-left: 15px;
    border-radius: 6px;
    color: var(--white);
    font-family: "Lexend";
    font-size: 25px;
    font-weight: 500;
    height: fit-content;
}

/* ctrl/cmd+f __buttons__ */

.button-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.response-button {
    position: relative;
    background-color: var(--black);
    padding: 10px 20px;
    border-radius: 20px;
}

.response-button:active {
    background-color: var(--dark-grey);
}

.button-text {
    color: var(--white);
    font-family: "Lexend";
    font-size: 30px;
    font-weight: 600;
    transition: all 0s;
}

.loader {
    display: none;
}

.loader-visible {
    display: flex;
    animation: button-loading-spinner 1s infinite;
    margin: 4px;
    margin-left: 86.99px;
    margin-right: 86.99px;
}

.button-loading .button-text {
    display: none;
}

@keyframes button-loading-spinner {
    from {
        transform: rotate(0turn);
    }

    to {
        transform: rotate(1turn);
    }
}

.prompt-button {
    display: none;
    background-color: var(--black);
    padding: 10px 20px;
    border-radius: 20px;
}

.prompt-button:active {
    background-color: var(--dark-grey);
}

@media screen and (max-width: 350px) {
    .code-body{
        padding-left: 10px;
    }
    
    .code-input{
        margin-left: 5px;
    }
    
}