body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

.container {
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1000px;
    flex: 1 0 auto;
    width: 90%;
}

.leftAlignment {
    text-align: left;
}

.logo {
    margin-top: 50px;
    margin-bottom: 30px;
    width: 300px;
    height: 61px;
    background: url("/web-images/shortUrlDotBot_300.png") no-repeat;
    background-size: 300px 61px;
}

h1,
h2,
h3 {
    color: #333;
    margin-top: 0;
}

h1 {
    text-align: center;
}

p {
    color: #000;
}

.big-emoji {
    font-size: 1.5em;
}

.super-big-emoji {
    font-size: 15em;
}

button {
    flex-grow: 0;
    flex-shrink: 0;
    background-color: #4b4c4e;
    color: white;
    padding: 14px 20px;
    margin: 8px 0;
    margin-top: 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    align-self: flex-end;
    max-width: 200px;
    width: 100%;
}

button:hover {
    background-color: #357ae8;
}

.fullScreen {
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: right;
    flex: 1 0 auto;
    width: 100%;
    box-sizing: border-box;
    /* 100vh minus the header height */
    height: calc(100vh - 46px);
}

.input-container {
    display: flex;
    flex-direction: column;
    align-items: start;
    position: relative;
    width: 100%;
    margin-right: 10px;
}

#result {
    display: flex;
    flex-direction: column;
    align-items: start;
    width: 100%;
    margin-top: 10px;
}

.shortenUrlContainer {
    display: flex;
    flex-direction: column;
    align-items: start;
    background-color: rgb(228, 229, 230);
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
    margin-top: 10px;
    border-radius: 5px;
}

.shortenUrl {
    display: flex;
    align-items: left;
    width: 100%;
}

.urlInfo {
    display: flex;
    align-items: center;

    font-weight: bold;
    width: fit-content;
}

.urlInfo p,
.urlInfo a {
    margin-right: 10px;
}

.urlBtn button,
.panel button {
    cursor: pointer;
    margin-top: 10px;
    margin-bottom: 15px;
    margin-right: 10px;
    width: fit-content;
    min-width: 120px;
    height: 30px;
    padding-top: 4px;
    padding-bottom: 4px;
    padding-left: 8px;
    padding-right: 8px;
}

.alert {
    color: red;
    font-size: 15px;
    margin-top: 5px;
    align-self: flex-start;
}

.popup {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgb(0, 0, 0);
    color: rgb(255, 255, 255);
    padding: 10px;
    border-radius: 5px;
}

.right-align {
    margin-left: auto;
}

.left-align {
    margin-right: auto;
}

.btn-close {
    padding: 0.5rem 0.5rem;
    background: #000;
    border-radius: 50%;
}

.cta {
    margin-top: 70px;
    text-align: center;
    background-color: #4b4c4e;
    color: white;
    padding: 50px 20px;
    border-radius: 8px;
}

.cta h2 {
    color: white;
}

.cta p {
    color: white;
    font-size: 20px;
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    margin: 16px 0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.3s ease;
}

.btn-primary {
    background-color: #4b4c4e;
    color: white;
}

.btn-primary:hover {
    background-color: #357ae8;
}

.btn-secondary {
    background-color: #357ae8;
    color: white;
}

.btn-secondary:hover {
    background-color: #2a5db0;
}

@media (min-width: 769px) {
    h1 {
        font-size: 36px;
    }

    h2 {
        font-size: 26px;
    }

    h3 {
        font-size: 20px;
    }

    p {
        font-size: 16px;
        line-height: 1.5;
    }

    .alert {
        font-size: 16px;
        line-height: 1.5;
    }

    .benefits-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .button-container {
        flex-direction: row;
    }

    .button-container a {
        font-size: 1em;
    }

    .modal {
        width: 450px;
    }

    .btn-close {
        transform: translate(10px, -20px);
    }

    .panel {
        display: flex;
    }

    .shortenUrl {
        flex-direction: row;
    }

    .btn {
        font-size: 18px;
        padding: 14px 28px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 20px;
    }

    h2 {
        font-size: 18px;
    }

    h3 {
        font-size: 16px;
    }

    p {
        font-size: 14px;
        line-height: 1.5;
    }

    .alert {
        font-size: 14px;
        line-height: 1.5;
    }

    .benefits-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }

    .button-container {
        flex-direction: row;
    }

    .button-container a {
        font-size: 1em;
        margin-bottom: 10px;
    }

    .modal {
        width: 300px;
    }

    .btn-close {
        transform: translate(10px, -55px);
    }

    .panel {
        display: none;
    }

    .shortenUrl {
        flex-direction: column;
    }

    .urlBtn button {
        width: fit-content;
        min-width: calc(70vw / 3);
        height: fit-content;
        min-height: 30px;
        font-size: 0.8em;
        margin-top: 0px;
    }

    .btn {
        font-size: 16px;
        padding: 12px 24px;
    }
}

.loadingCover {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1;
    overflow: hidden;
}

.loadingSpinner {
    position: absolute;
    transform: translate(-50%, -50%);
    border: 16px solid #f3f3f3;
    border-top: 16px solid #3498db;
    border-radius: 50%;
    width: 120px;
    height: 120px;
    top: calc(50% - 60px);
    left: calc(50% - 60px);
    animation: spin 2s linear infinite;
}

.loadingLogo {
    position: absolute;
    top: calc(50% - 15px);
    left: calc(50% - 15px);
    width: 60px;
    height: 60px;
    background: url("/web-images/robot.png") no-repeat;
    background-size: 60px 60px;
    background-position: center;
}

.loadingText {
    position: absolute;
    top: calc(50% + 120px);
    left: calc(50% - 60px);
    color: white;
    font-size: 24px;
    width: 152px;
    display: flex;
    justify-content: center;
    align-items: center;
}