:root {
    --black-color: #333333;
    --white-color: #f5f5f5;
    --purple-color: #6C63FF;

    --primary-font: "Roboto", sans-serif;
    --tertiary-font: "Kalam", cursive;
    --time-font: "Orbitron", sans-serif;
}

/* index page */

.hero-page {
    background: linear-gradient(300deg, #6c63ff, #000000);
    background-size: 120% 120%;
    animation: gradient-animation 12s ease infinite;
}

.hero-contents {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.head-text {
    font-size: 64px;
    letter-spacing: 2px;
    text-transform: capitalize;
    color: var(--white-color);
    margin: 0;
    font-family: var(--time-font);
    font-weight: 900;
    padding-bottom: 20px;
}

.head-content {
    font-size: 18px;
    font-weight: 500;
    font-family: var(--tertiary-font);
    color: var(--white-color);
    margin: 0;
    padding-bottom: 20px;
}

.convert-btn {
    padding: 10px 60px;
    background-color: var(--purple-color);
    color: var(--white-color);
    text-align: center;
    text-transform: capitalize;
    font-family: var(--primary-font);
    letter-spacing: 2px;
    outline: none;
    border-radius: 12px;
    transition-duration: 0.4s ease;
    border: 1px solid var(--purple-color);
    text-decoration: none;
    list-style-type: none;
    box-shadow: rgba(0, 0, 0, 0.15) 0px 5px 15px 0px;
    margin-bottom: 20px;
}

.convert-btn:hover {
    background: none;
    color: var(--purple-color);
    border: 1px solid var(--purple-color);
}

.timer-container {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-img {
    width: 600px;
    height: auto;
}

.clocks {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.to {
    margin: 0;
    font-size: 36px;
    text-align: center;
    font-family: var(--tertiary-font);
    font-weight: 700;
    color: var(--white-color);
}

.clock {
    margin: 0;
    color: var(--white-color);
    font-weight: 900;
    font-family: var(--time-font);
    font-size: 48px;
    letter-spacing: 10px;
}

.clock2 {
    margin: 0;
    color: var(--white-color);
    font-weight: 900;
    font-family: var(--time-font);
    font-size: 48px;
    letter-spacing: 10px;
}

.time-convert {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
}

/* time convert page */
.timeconvert-page {
    background: linear-gradient(300deg, #6c63ff, #000000);
    background-size: 120% 120%;
    animation: gradient-animation 12s ease infinite;
}

.timeconvert-contents {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.timeconvert-head {
    font-size: 24px;
    letter-spacing: 2px;
    text-transform: capitalize;
    color: var(--white-color);
    margin: 0;
    font-family: var(--time-font);
    font-weight: 900;
    padding-bottom: 20px;
}

input[type=text] {
    border-radius: 20px;
    border: 1px solid var(--black-color);
    color: var(--purple-color);
    width: 350px;
    height: 40px;
    padding-left: 10px;
    font-family: var(--time-font);
    font-weight: 700;
}

input[type=text]:focus {
    outline: none;
    border: 1px solid var(--black-color);
    color: var(--purple-color);
    font-family: var(--time-font);
    font-weight: 700;
}

.timeconvert-btn {
    width: 80px;
    height: 40px;
    background-color: var(--purple-color);
    color: var(--white-color);
    text-align: center;
    text-transform: capitalize;
    font-family: var(--primary-font);
    outline: none;
    border-radius: 12px;
    transition-duration: 0.4s ease;
    border: 1px solid var(--purple-color);
    text-decoration: none;
    list-style-type: none;
    box-shadow: rgba(0, 0, 0, 0.15) 0px 5px 15px 0px;
    margin-right: 40px;
    margin-left: 40px;
    margin-top: 10px;
}

.timeconvert-btn:hover {
    background: none;
    color: var(--purple-color);
    border: 1px solid var(--purple-color);
}

.btn-div{
    margin-top: 20px;
    margin-bottom: 20px;
}
.time-convert{
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.converted-result {
    font-family: var(--time-font);
    font-weight: 700;
    font-size: 18px;
    color: var(--white-color);
}

/* Background animation */
@keyframes gradient-animation {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Custom Media Query */
/* small devices */
@media (max-width: 320px) {
    .hero-contents {
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .head-text {
        font-size: 30px;
    }

    .head-content {
        font-size: 12px;
    }

    .convert-btn {
        padding: 4px 8px;
    }

    .hero-img {
        margin-top: 20px;
        width: 100px;
        height: auto;
    }

    .time-convert {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .timeconvert-head {
        text-align: center;
        font-size: 18px;
    }

    input[type=text] {
        width: 300px;
        height: 40px;
    }

    .timeconvert-btn {
        width: 100px;
        height: 40px;
        margin-top: 20px;
    }

    .clocks {
        margin-bottom: 40px;
    }

    .clock {
        letter-spacing: 1px;
    }

    .clock2 {
        letter-spacing: 1px;
    }
}

@media (max-width: 576px) {
    .hero-contents {
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .head-text {
        font-size: 32px;
    }

    .head-content {
        font-size: 12px;
    }

    .convert-btn {
        padding: 5px 10px;
    }

    .hero-img {
        display: none;
    }

    .time-convert {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .clocks {
        margin-bottom: 40px;
    }

    .clock {
        letter-spacing: 1px;
    }

    .clock2 {
        letter-spacing: 1px;
    }

    .timeconvert-btn {
        width: 100px;
        height: 40px;
        margin-top: 20px;
    }
}

/* medium devices */
@media (max-width: 768px) {
    .hero-contents {
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .head-text {
        font-size: 38px;
    }

    .head-content {
        font-size: 18px;
    }

    .convert-btn {
        padding: 8px 16px;
    }

    .hero-img {
        margin-top: 20px;
        width: 400px;
        height: auto;
    }

    .time-convert {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .clocks {
        margin-bottom: 40px;
    }

    .clock {
        font-size: 36px;
    }

    .clock2 {
        font-size: 36px;
    }
    .timeconvert-btn {
        width: 100px;
        height: 40px;
    }
}

/* large devices */
@media (max-width: 992px) {
    .hero-img {
        margin-top: 20px;
        width: 500px;
        height: auto;
    }
}

/* extra large devices */
@media (max-width: 1200px) {}