
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600&display=swap');

body {
    margin: 0;
    min-height: 100vh;
    font-family: Arial, sans-serif;
    background: linear-gradient(
    to bottom,
    #a99bdd 0%,
    #c8c0f2 75%,
    #ddd6f3 88%,
    #f8f4ef 100%
);
}

header {
    background: transparent;
    color: #3d3436;
    text-align: center;
    padding: 55px 20px 15px;
}

h1 {
    margin: 0;
    font-family: "Cormorant Garamond", serif;
    font-size: 56px;
    font-weight: 600;
    letter-spacing: 1px;
}

h2 {
    color: #3d3436;
    font-family: "Cormorant Garamond", serif;
    font-weight: 600;
}


p {
    font-size: 20px;
}

main {
    width: 82%;
    max-width: 520px;
    margin: 50px auto 40px;
    padding: 0;
}

section {
    background: #fdfcf8;
    padding: 20px;
    border-radius: 12px;
}

input {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    margin-top: 5px;
    box-sizing: border-box;
}

button {
    background: #8a79cb;
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 18px;
    border-radius: 8px;
    cursor: pointer;
}

button:hover {
    background: #2d527f;
}

#result {
    margin-top: 30px;
    padding: 20px;
    background: #eef4fb;
    border-radius: 10px;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    display: none;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.box {
    width: 120px;
    background: white;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.box span {
    display: block;
    font-size: 72px;
    font-weight: 300;
    color: #1e3a5f;
    line-height: 1;
}

.box p {
    margin-top: 8px;
    font-size: 13px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #5f6f86;
}

.box {
    background: transparent;
    box-shadow: none;
    width: 85px;
    padding: 5px;
}

.box span {
    font-size: 64px;
    font-weight: 700;
    color: white;
}

.box p {
    margin-top: 0;
    font-size: 16px;
    color: white;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: nowrap;
}

/* ===== Countdown Boxes ===== */

.countdown {
    display: flex;
    justify-content: center;
    gap: 55px;
    flex-wrap: wrap;
    margin-top: 50px;
}


.time-box {
    background: transparent;
    box-shadow: none;
    width: auto;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 18px;
}


.time-box:hover {
    transform: translateY(-6px);
}

.time-box span:first-child {
    font-family: "Cormorant Garamond", serif;
    font-size: 82px;
    font-weight: 600;
    color: #1f3557;
    line-height: 1;
}


.time-box p {
    margin-top: 8px;
    font-size: 14px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #5a5a5a;
}

/* ===========================
   Mobile optimization
=========================== */

@media (max-width: 768px) {

    header {
        padding: 40px 20px 20px;
    }

    h1 {
        font-size: 46px;
    }

    p {
        font-size: 17px;
        padding: 0 18px;
    }

}
