@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@100..900&display=swap');

:root {
    --bg: #202040;
    --text-head: #FFF3CF;
    --box-color: #fff;
    --box-text: #202040;
    --url-color: #86A7FC;
    --footer: #4B5D67;
    --focus-color: #FFCF4F;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    line-height: 1.5;
    transition: all 0.3s ease-in-out;
    font-family: 'Montserrat', sans-serif;
}

body {
    background-color: var(--bg);
    margin: 0;
    overflow-x: hidden;
}

.main-head {
    text-align: center;
    padding: 30px 0;
    font-size: 40px;
    font-weight: bolder;
    color: var(--text-head);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.main-shortner {
    background-color: var(--box-color);
    text-align: center;
    max-width: 750px;
    margin: 30px auto;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.shorted-url {
    background-color: var(--box-color);
    text-align: center;
    max-width: 700px;
    margin: 20px auto;
    border-radius: 20px;
    padding: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.shorted-url h2, .main-shortner h2 {
    margin: 16px 0;
    color: var(--box-text);
    font-size: 30px;
}

.box-text {
    font-size: 16px;
    text-align: center;
    padding: 0 40px;
}

.short {
    font-weight: bold;
    background-color: var(--box-text);
    color: var(--box-color);
    font-size: 16px;
    padding: 13px 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    min-width: 150px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.short:hover {
    background-color: var(--footer);
    transform: translateY(-2px);
}

.shortIn {
    width: 450px;
    font-size: 16px;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: inset 1px 1px 4px #eee;
}

.shortner-details {
    padding: 40px 0;
    max-width: 750px;
    margin: auto;
    color: var(--text-head);
}

.shortner-details a {
    text-decoration: none;
    color: var(--url-color);
    font-weight: bold;
}

.hightlights {
    padding: 20px 0;
    max-width: 750px;
    margin: auto;
    color: var(--text-head);
}

.hightlights ul {
    display: flex;
    justify-content: space-evenly;
    padding-left: 0;
    list-style: none;
}

.hightlights ul li {
    width: 50%;
    text-align: center;
}

.hightlights li i {
    font-size: 55px;
    transition: color 0.3s ease;
}

.hightlights li i:hover {
    color: #0D9276;
}

.footer {
    background-color: var(--footer);
    padding: 20px 0;
    width: 100%;
    border-top: 4px solid var(--url-color);
    text-align: center;
}

.footer p {
    color: var(--text-head);
}

.footer ul {
    display: flex;
    justify-content: space-evenly;
    padding-left: 0;
    list-style: none;
}

.footer ul li a {
    color: var(--url-color);
    transition: color 0.3s ease;
}

.footer ul li a:hover {
    color: var(--focus-color);
}

a {
    text-decoration: none;
}

.another {
    background-color: var(--bg);
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 18px;
    border-radius: 10px;
    cursor: pointer;
}

.another:hover {
    color: var(--focus-color);
    background-color: var(--footer);
}

::-webkit-scrollbar {
    background: linear-gradient(#014379, rgb(25, 25, 55));
    width: 10px;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: white;
    border-radius: 10px;
}

:focus {
    outline: 2px dashed var(--focus-color);
    outline-offset: 2px;
}

/* Improved Responsiveness */
@media only screen and (max-width: 900px) {
    .main-shortner, .shorted-url, .shortner-details, .hightlights {
        width: 95%;
        padding: 20px;
    }

    .shortIn {
        width: 100%;
    }
}

@media only screen and (max-width: 600px) {
    .box-text {
        padding: 8px;
    }

    .short {
        width: 100%;
        margin-top: 10px;
        border-radius: 20px;
    }

    .main-shortner h2 {
        font-size: 20px;
    }

    .hightlights ul {
        display: block;
    }

    .hightlights ul li {
        width: 100%;
        margin-bottom: 10px;
    }
}
