body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f2f2f2;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background-color: #333;
    color: white;
    padding: 15px;
    text-align: center;
    font-size: 24px;
}

main {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.shortener {
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 25px;
    max-width: 600px;
    width: 100%;
    text-align: center;
    margin-bottom: 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.shortener input[type="url"] {
    width: 60%;
    padding: 10px;
    margin-right: 10px;
    border-radius: 4px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

.shortener button {
    padding: 10px 15px;
    border: none;
    background-color: #333;
    color: white;
    cursor: pointer;
    border-radius: 4px;
}

.shortener button:hover {
    background-color: #555;
}

.short-url-container {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.short-url {
    font-weight: bold;
    color: #333;
    word-break: break-all;
}

.copy-btn {
    padding: 5px 10px;
    background-color: #333;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 14px;
    border-radius: 4px;
}

.copy-btn:hover {
    background-color: #555;
}

.tools-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    width: 100%;
}

.tool-card {
    background-color: #fff;
    border-radius: 10px;
    width: calc(25% - 15px);
    min-width: 180px;
    text-align: center;
    padding: 20px 15px;
    box-sizing: border-box;
    text-decoration: none;
    color: #333;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.tool-card .icon {
    font-size: 40px;
    margin-bottom: 10px;
    display: block;
}

.tool-card .tooltip {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 10;
}

.tool-card:hover .tooltip {
    display: block;
}

.tool-card h3 {
    margin: 10px 0 5px 0;
    font-size: 18px;
}

@media(max-width: 1200px) { .tool-card { width: calc(33.33% - 15px); } }
@media(max-width: 800px) { .tool-card { width: calc(50% - 15px); } }
@media(max-width: 500px) { .tool-card { width: 100%; } }

 /* Footer */
.footer {
    background-color: #333;
    color: white;
    padding: 40px 20px 20px 20px;
    font-size: 14px;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-column {
    flex: 1;
    min-width: 200px;
}

.footer-column h4 {
    margin-bottom: 10px;
    font-size: 16px;
    color: #fff;
}

.footer-column p {
    margin: 5px 0;
}

/* Vertical menu */
.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column; /* make vertical */
    gap: 10px; /* spacing between items */
}

.footer-menu li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-menu li a:hover {
    color: #ddd;
}

.footer-bottom {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    border-top: 1px solid #555;
    padding-top: 10px;
}
