* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
    user-select: none;
    scrollbar-width: none;
    -webkit-tap-highlight-color: transparent;
    font-family: 'Courier New', Courier, monospace;
}

body {
    min-height: 100vh;
    width: 100%;
    background-color: #f8fafb;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

header {
    width: 100%;
    padding: 10px 25px 0;
    color: #77aaff;
}

main {
    flex: 1;
    width: 100%;
    height: 100%;
    padding: 25px;
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.display-container {
    position: relative;
    width: 70%;
    background-color: white;
    box-shadow: 0 0 4px rgb(195, 192, 193);
    border: 1px ridge rgb(205, 205, 205);
    font-size: clamp(0em, 15vw, 6em);
    border-radius: 15px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-container {
    width: 30%;
    padding-left: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.increment-btn {
    width: 100%;
    height: 100%;
    background-color: rgb(224, 245, 224);
    border: 1px ridge rgb(155, 240, 157);
    border-radius: 30px 30px 0 0;
    font-size: clamp(0em, 10vw, 6em);
    color: rgb(72, 191, 83);
}

.decrement-btn {
    width: 100%;
    height: 100%;
    background-color: rgb(252, 230, 228);
    border: 1px ridge rgb(255, 185, 185);
    border-radius: 0 0 30px 30px;
    font-size: clamp(0em, 10vw, 6em);
    color: rgb(254, 87, 87);
}

.reset-btn {
    position: absolute;
    top: 5px;
    left: 8px;
    background-color: transparent;
    border: none;
    font-size: 30px;
    color: gray;
}

button {
    cursor: pointer;
}

button:active {
    opacity: 0.8;
}

button:disabled {
    cursor: not-allowed;
}

button:disabled:active {
    opacity: 1;
}

footer {
    padding: 0.7em 1em;
    font-size: 0.85em;
    text-align: center;
}

@media (max-width: 600px) {
    header {
        text-align: center;
    }

    main {
        padding: 15px;
        flex-direction: column;
        align-items: center;
    }

    .display-container {
        flex-grow: 1;
        width: 100%;
        min-height: 100px;
        margin: 0;
    }

    .btn-container {
        width: 100%;
        padding-left: 0;
        padding-top: 15px;
        flex-direction: row-reverse;
        align-items: center;
        justify-content: center;
    }

    .increment-btn {
        height: 100px;
        border-radius: 0 20px 20px 0;
    }

    .decrement-btn {
        height: 100px;
        border-radius: 20px 0 0 20px;
    }

    .reset-btn {
        left: auto;
        right: 8px;
    }
}