* {
    box-sizing: border-box;
    margin: 0;
}

body {
    font-family: 'Pirata One', serif;
    line-height: 1.5;
    padding: 1rem;
    background-image: url("./assets/images/one-piece-background-6.jpg");
    background-size: cover;
    background-attachment: fixed;
    background-position: center center;
    background-repeat: no-repeat;
    padding: 0;
}

.container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    align-items: center;
    justify-content: space-between;
    animation: fadeIn 0.6s ease-out;
}

#app-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
    align-items: center;
    padding: 2rem;
    background-color: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    width: 100%;
}

#app-header h3 {
    font-size: 2.5rem;
    letter-spacing: 2px;
    color: #f9d342;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

#app-header h3:hover {
    animation: glitch 0.3s ease-in-out;
}

.tagline {
    font-family: inherit;
    font-size: 1rem;
    color: #fff;
}

#quote-box {
    margin-top: 1rem;
    color: #fff;
    font-size: 1rem;
    letter-spacing: 1px;
    text-align: center;
    padding: 0.5rem 1rem;
    border-left: 3px solid #f9d342;
    background-color: rgba(230, 57, 70, 0.3);
    opacity: 0.95;
    animation: slideInQuote 0.6s ease forwards;
}

#main-container {
    display: flex;
    flex: 1;
    flex-direction: column;
    max-width: 500px;
    width: 100%;
    padding: 1rem;
    text-align: center;
    align-items: center;
    justify-content: center;
}

.date-setup {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    align-items: stretch;
    margin: 0 auto;
}

.form-row {
    display: flex;
    padding: 0.25rem;
    justify-content: center;
    width: 100%;
}

input[type="date"] {
    padding: 0.6rem 1rem;
    background-color: rgba(0, 0, 0, 0.3);
    color: #fff;
    font-size: 1.25rem;
    border: none;
    clip-path: polygon(0 0, 85% 0, 100% 15%, 100% 100%, 15% 100%, 0 85%);
    backdrop-filter: blur(5px);
    font-family: inherit;
}

.value {
    font-family: inherit;
    font-size: 1.5rem;
    color: #f9d342;
}

input[type="date"]::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

input[type="date"]:focus {
    outline: none;
    box-shadow: 0 0 5px #e63946;
}


.counter {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.date-setup,
.counter {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.075);
    clip-path: polygon(0 0, 90% 0, 100% 12%, 100% 100%, 12% 100%, 0 90%);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 2rem 2.5rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    min-width: 300px;
}

.date-setup,
.counter {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease, transform 0.4s ease;
    position: relative;
    width: 100%;
}

.hidden {
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    position: absolute;
    visibility: hidden;
    height: 0;
    margin: 0;
}

button {
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
    background-color: #e63946;
    color: #fff;
    border: none;
    cursor: pointer;
    clip-path: polygon(0 0, 85% 0, 100% 15%, 100% 100%, 15% 100%, 0 85%);
    overflow: hidden;
    font-family: inherit;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.4);
    font-variant: small-caps;
    letter-spacing: 1px;
}

button:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 8px rgba(0, 0, 0, 0.4);
}

button:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
}

.reset-msg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}


.reset-msg-box {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
    clip-path: polygon(0 0, 90% 0, 100% 12%, 100% 100%, 12% 100%, 0 90%);
    animation: fadeIn 0.3s ease-out;
}

.reset-msg {
    color: #ffe066;
    font-style: inherit;
    text-align: center;
    letter-spacing: 1px;
}

.reset-buttons {
    display: flex;
    justify-content: center;
    align-self: center;
    gap: 1rem;
}

.cancel-btn {
    background-color: #457b9d;
    color: #fff;
}

.confirm-btn {
    background-color: #e63946;
    color: #fff;
}

#app-footer {
    margin-top: 2rem;
    padding: 1rem;
    text-align: center;
    color: #fff;
    font-size: 0.9rem;
    font-family: inherit;
    letter-spacing: 1px;
    background-color: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    width: 100%;
}

#app-footer a {
    color: #f9d342;
    text-decoration: none;
    font-weight: bold;
}

#app-footer a:hover {
    text-decoration: underline;
    color: #ffe066;
}

@keyframes glitch {
    0% {
        transform: translate(0);
        opacity: 1;
    }

    20% {
        transform: translate(-2px, 2px);
        opacity: 0.85;
    }

    40% {
        transform: translate(2px, -1px);
        opacity: 0.9;
    }

    60% {
        transform: translate(-1px, 1px);
        opacity: 0.75;
    }

    80% {
        transform: translate(1px, -1px);
        opacity: 0.95;
    }

    100% {
        transform: translate(0);
        opacity: 1;
    }
}

.glitch-animate {
    animation: glitch 0.3s ease-in-out;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: scale(0.98);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInQuote {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@media (max-width: 480px) {
    .date-setup {
        flex-direction: column;
        align-items: stretch;
    }

    .date-setup>* {
        width: 100%;
    }
}