/* Base Styles */
body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    font-family: Arial, sans-serif;
    background-color: #121212;
    color: #e0e0e0; 
    font-size: 16px;
}

.container {
    width: 90%;
    max-width: 400px;
    margin: 0 auto;
    text-align: center;
    background: #1e1e1e;
    padding: 20px 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

#urlCount sup {
    font-size: 0.4em;
    margin-left: 5px;
    color: #ffab00;
}

.input-container {
    display: grid;
    grid-template-columns: 1fr auto;
    column-gap: 10px;
    align-items: center;
    margin-top: 10px;
}

input[type="text"] {
    padding: 10px;
    border: 1px solid #555;
    border-radius: 5px;
    background-color: #333;
    color: #fff;
    font-size: 16px;
}

button {
    padding: 12px 20px; 
    background: #6200ea;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

button:hover {
    background: #3700b3;
}

.result {
    margin-top: 20px;
    font-size: 16px;
    color: #e0e0e0;
    word-break: break-word;
}

.result a {
    color: #bb86fc;
    text-decoration: none;
    cursor: pointer;
}

.result a:hover {
    text-decoration: underline;
}

.result span.url {
    font-style: italic;
    color: #b0b0b0; 
    word-break: break-all; 
}

.result span.button {
    cursor: pointer; 
    margin-left: 10px;
    display: inline-block;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.result span.button:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#snackbar {
    visibility: hidden;
    min-width: 250px;
    margin-left: -125px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 2px;
    padding: 16px;
    position: fixed;
    z-index: 1;
    left: 50%;
    bottom: 30px;
    font-size: 17px;
}

#snackbar.show {
    visibility: visible;
    -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
    animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

@-webkit-keyframes fadein {
    from {bottom: 0; opacity: 0;} 
    to {bottom: 30px; opacity: 1;}
}

@keyframes fadein {
    from {bottom: 0; opacity: 0;}
    to {bottom: 30px; opacity: 1;}
}

@-webkit-keyframes fadeout {
    from {bottom: 30px; opacity: 1;} 
    to {bottom: 0; opacity: 0;}
}

@keyframes fadeout {
    from {bottom: 30px; opacity: 1;}
    to {bottom: 0; opacity: 0;}
}

/* Mobile Styles */
@media (max-width: 768px) {
    .container {
        width: 95%;
        padding: 15px;
        margin: 0 10px;
        border-radius: 8px;
    }

    .input-container {
        grid-template-columns: 1fr;
        row-gap: 10px;
    }

    input[type="text"] {
        font-size: 14px;
        padding: 8px; 
    }

    button {
        font-size: 14px;
        padding: 10px;
    }

    h2 {
        font-size: 1.2em; 
    }

    .result {
        font-size: 14px;
    }
}


