:root {
    --color-primary: #01033b;
    --color-primary-light: #0a0a5b;
    --color-primary-dark: #00001f;

    --color-secondary: #05ca86;
    --color-secondary-light: #0ecf95;
    --color-secondary-dark: #00a56f;

    --color-red: #f04e4e;

    --color-100: #fff;
    --color-200: #f3f4f6;
    --color-300: #d1d5db;
    --color-500: #000;
}

* {
    box-sizing: border-box;
}

body {
    font-size: x-large;
    margin: 0;
    background-color: var(--color-200);
}

header {
    background-color: var(--color-primary);
    height: 5rem;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

header img {
    height: 50px;
    width: 50px;
    margin-right: 1rem;
    margin-left: 1rem;
    font-size: x-small;
    color: white;
}

header h1 {
    color: var(--color-secondary);
    font-size: 2rem;
    margin: 0;
    padding: 1rem;
}

section {
    margin: 5rem auto;
    width: 50vw;
    background-color: var(--color-100);
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 0 #0000, 0 0 #0000, 0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

section h2 {
    padding: 1rem;
}

section div#feedback-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

section div#feedback-container p {
    font-size: 1.2rem;
    margin: 0;
    padding: 0.5rem;
}

section div#feedback-container ion-icon {
    font-size: 2rem;
    margin: 0;
    padding-top: 0.5rem;
}

section form {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

section form * {
    margin: 0.5rem 0;
}

section form label {
    font-size: 1.2rem;
    margin-bottom: 0;
}

section form textarea {
    padding: 0.5rem;
    font-size: 1.2rem;
    border: 1px solid var(--color-300);
    border-radius: 0.5rem;
    resize: none;
}

.radio-tile-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 1.5rem;
    margin-top: 0;
}

.input-container {
    position: relative;
    height: 7rem;
    width: 7rem;
    margin: 0.5rem;
}

.input-container input {
    position: absolute;
    height: 100%;
    width: 100%;
    margin: 0;
    cursor: pointer;
    z-index: 2;
    opacity: 0;
}

.input-container .radio-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    border: 2px solid var(--color-primary);
    border-radius: 8px;
    transition: all 300ms ease;
}

.input-container ion-icon {
    color: var(--color-primary);
    font-size: 3rem;
}

.input-container label {
    color: var(--color-primary);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

input:checked+.radio-tile {
    background-color: var(--color-primary);
    transform: scale(1.1);
}

input:checked+#positive {
    background-color: var(--color-secondary-light);
    transform: scale(1.1);
}

input:checked+#negative {
    background-color: var(--color-red);
    transform: scale(1.1);
}

input:checked+.radio-tile ion-icon,
input:checked+.radio-tile label {
    color: white;
}

section form button[type="submit"] {
    background-color: var(--color-secondary);
    color: var(--color-100);
    border: none;
    border-radius: 0.5rem;
    padding: 1rem;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 300ms ease;
}

section form button[type="submit"]:hover {
    background-color: var(--color-secondary-dark);
}

/* style toast popup */
#feedback-toast {
    background: var(--color-secondary-light);
    color: var(--color-100);
    border-radius: 0.5rem;
    max-width: 450px;
    padding: 1rem;
    display: none;
    flex-direction: row;
    justify-content: space-between;
    transition: all 300ms ease-in-out;
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    gap: 1rem;
}

#feedback-toast span {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
}

#feedback-toast span p {
    margin: 0;
}

#feedback-toast #close-toast {
    cursor: pointer;
}

#feedback-toast[open] {
    display: flex;
}

#feedback-toast[success="true"] {
    background: var(--color-secondary);
}

#feedback-toast[success="false"] {
    background: var(--color-red);
}

@media screen and (max-width: 600px) {
    section {
        width: 90vw;
        margin: 10px auto;
        padding: 1rem;
    }
    body {
        font-size: smaller;
    }
    h1 {
        font-size: 1.3rem;
        padding: 0;
        margin: 0;
    }
    header {
        height: 3rem;
    }
    header h1 {
        font-size: 1.5rem;
    }
    section div#feedback-container ion-icon {
        font-size: 1.5rem;
    }
    section div#feedback-container p {
        font-size: 1rem;
    }
    header img {
        height: 30px;
        width: 30px;
        margin-right: 0.5rem;
        margin-left: 0.5rem;
    }
}