:root {
    font-family: Poppins, Arial, Helvetica, sans-serif;
    --text: #f3eee9;
    --background: #120d07;
    --primary: #e3bd89;
    --secondary: #905911;
    --third: #1c150e;
    --accent: #fa930b;
}

html {
    color: var(--text);
    background-color: var(--background);
    font-size: 18px;
}

* {
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100vh;
}

header {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    width: 80%;
    max-width: 900px;
    margin: 1rem 0 1rem 0;
    z-index: 1;
}

.profile-picture {
    width: 40px;
    height: 40px;
}

.profile-picture--container {
    width: 40px;
    height: 40px;
    overflow: hidden;
    background-color: var(--text);
    align-items: center;
    justify-content: center;
    border-radius: 40px;
    cursor: pointer;
}

.google-sign-in {
    cursor: pointer;
}

main {
    display: flex;
    flex-direction: column;
    text-align: center;
    justify-content: center;
    transform: translateY(-5rem);
    height: 100%;
    gap: 2rem;
    width: 80%;
    max-width: 900px;
}

.poop--container,
.failed-poop--container {
    background-color: var(--primary);
    color: var(--background);
    padding: 2rem 5rem 2rem 5rem;
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.poop--header,
.failed-poop--header {
    font-size: 2.5rem;
    margin: 0 0 1rem 0;
    font-weight: 700;
}

.poop--counter,
.failed-poop--counter {
    font-size: 4rem;
    font-weight: 800;
    margin: 0 0 1rem 0;
}

.poop-sub--button,
.failed-poop-sub--button {
    font-weight: 900;
}

.poop-add--button,
.failed-poop-add--button {
    font-weight: 700;
}

.poop-add--button,
.poop-sub--button,
.failed-poop-add--button,
.failed-poop-sub--button {
    background-color: var(--accent);
    color: var(--background);
    font-size: 60px;
    line-height: 1;
    padding: 0.3rem 0.7rem;
    border-radius: 0.5rem;
    cursor: pointer;
    user-select: none;
}

.error--container {
    background-color: var(--secondary);
    border-radius: 1rem;
    width: 600px;
    align-self: center;
    padding: 1rem 0;
    display: flex;
    justify-content: space-between;
    z-index: 3;
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    text-align: center;
    visibility: hidden;
}

.error--left-spacing {
    width: 3rem;
}

.error--close {
    cursor: pointer;
    margin: 0 1rem;
    width: 1rem;
    font-size: 1.4rem;
    transform: translateY(-10px);
}

.error--blur {
    background-color: black;
    height: 100%;
    width: 100%;
    position: fixed;
    z-index: 2;
    opacity: 0.6;
    visibility: hidden;
}

.logout--container {
    width: 10rem;
    box-sizing: border-box;
    padding: 0.5rem 1rem;
    position: absolute;
    margin-top: 55px;
    background-color: var(--secondary);
    border-radius: 0.3rem;
    display: none;
    flex-direction: column;
}

.logout--close {
    cursor: pointer;
    align-self: flex-end;
    font-weight: 700;
    font-size: 0.9rem;
    line-height: 1;
}

.logout--button-container {
    cursor: pointer;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.logout--button {
    font-weight: 500;
    font-size: 0.9rem;
}

@media screen and (max-width: 900px) {
    html {
        font-size: 14px;
    }

    .poop-add--button,
    .poop-sub--button,
    .failed-poop-add--button,
    .failed-poop-sub--button {
        font-size: 40px;
        padding: 0.3rem 0.7rem;
    }

    .poop-sub--button,
    .failed-poop-sub--button {
        font-weight: 700;
    }

    .poop-add--button,
    .failed-poop-add--button {
        font-weight: 600;
    }

    .error--container {
        width: 450px;
    }

    .logout--icon {
        height: 20px;
        width: 20px;
    }
}

@media screen and (max-width: 550px) {
    html {
        font-size: 12px;
    }

    .poop-add--button,
    .poop-sub--button,
    .failed-poop-add--button,
    .failed-poop-sub--button {
        font-size: 35px;
        padding: 0.3rem 0.7rem;
    }

    .poop-sub--button,
    .failed-poop-sub--button {
        font-weight: 600;
    }

    .poop-add--button,
    .failed-poop-add--button {
        font-weight: 500;
    }

    .error--container {
        width: 300px;
    }

    .logout--icon {
        height: 16px;
        width: 16px;
    }
}

@media screen and (max-height: 1000px) {
    main {
        transform: translateY(0);
        height: auto;
    }

    body {
        height: auto;
        margin: 0 0 5rem 0;
    }
}

/* GOOGLE ICON https://developers.google.com/identity/branding-guidelines */
.gsi-material-button {
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    -webkit-appearance: none;
    background-color: #131314;
    background-image: none;
    border: 1px solid #747775;
    -webkit-border-radius: 4px;
    border-radius: 4px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    color: #e3e3e3;
    cursor: pointer;
    font-family: "Roboto", arial, sans-serif;
    font-size: 14px;
    height: 40px;
    letter-spacing: 0.25px;
    outline: none;
    overflow: hidden;
    padding: 0 12px;
    position: relative;
    text-align: center;
    -webkit-transition:
        background-color 0.218s,
        border-color 0.218s,
        box-shadow 0.218s;
    transition:
        background-color 0.218s,
        border-color 0.218s,
        box-shadow 0.218s;
    vertical-align: middle;
    white-space: nowrap;
    width: auto;
    max-width: 400px;
    min-width: min-content;
    border-color: #8e918f;
}

.gsi-material-button .gsi-material-button-icon {
    height: 20px;
    margin-right: 12px;
    min-width: 20px;
    width: 20px;
}

.gsi-material-button .gsi-material-button-content-wrapper {
    -webkit-align-items: center;
    align-items: center;
    display: flex;
    -webkit-flex-direction: row;
    flex-direction: row;
    -webkit-flex-wrap: nowrap;
    flex-wrap: nowrap;
    height: 100%;
    justify-content: space-between;
    position: relative;
    width: 100%;
}

.gsi-material-button .gsi-material-button-contents {
    -webkit-flex-grow: 1;
    flex-grow: 1;
    font-family: "Roboto", arial, sans-serif;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: top;
}

.gsi-material-button .gsi-material-button-state {
    -webkit-transition: opacity 0.218s;
    transition: opacity 0.218s;
    bottom: 0;
    left: 0;
    opacity: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.gsi-material-button:disabled {
    cursor: default;
    background-color: #13131461;
    border-color: #8e918f1f;
}

.gsi-material-button:disabled .gsi-material-button-state {
    background-color: #e3e3e31f;
}

.gsi-material-button:disabled .gsi-material-button-contents {
    opacity: 38%;
}

.gsi-material-button:disabled .gsi-material-button-icon {
    opacity: 38%;
}

.gsi-material-button:not(:disabled):active .gsi-material-button-state,
.gsi-material-button:not(:disabled):focus .gsi-material-button-state {
    background-color: white;
    opacity: 12%;
}

.gsi-material-button:not(:disabled):hover {
    -webkit-box-shadow:
        0 1px 2px 0 rgba(60, 64, 67, 0.3),
        0 1px 3px 1px rgba(60, 64, 67, 0.15);
    box-shadow:
        0 1px 2px 0 rgba(60, 64, 67, 0.3),
        0 1px 3px 1px rgba(60, 64, 67, 0.15);
}

.gsi-material-button:not(:disabled):hover .gsi-material-button-state {
    background-color: white;
    opacity: 8%;
}
