:root {
    --primary: #2f3e46;
    --secondary: #ffffff;
    --accent: #2a9d8f;
    --complement: #81b29a;
    --text: #212529
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif
}

body,
html {
    height: 100%;
    background-color: var(--secondary);
    color: var(--text);
    display: flex;
    flex-direction: column;
    overflow: hidden
}

header {
    padding: .5rem;
    background: linear-gradient(90deg, var(--accent), var(--primary) 20%, #282828 50%, var(--primary) 80%, var(--accent) 100%);
    text-align: center;
    box-shadow: 0 2px 10px rgb(0 0 0 / .2)
}

.logo {
    height: 60px;
    max-width: 80%
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: .8rem .8rem;
    overflow: hidden
}

.search-container {
    width: 100%;
    max-width: 600px;
    margin-bottom: 1rem;
    text-align: center
}

h1 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
    text-align: center
}

h2 {
    font-size: 1rem;
    line-height: 1.3rem;
    margin-bottom: .6rem;
    color: var(--primary);
    text-align: center
}

.search-box {
    position: relative;
    width: 100%
}

.search-input {
    width: 100%;
    padding: .8rem 3rem .8rem 1rem;
    font-size: 1rem;
    border: 2px solid var(--primary);
    border-radius: 30px;
    outline: none
}

.search-input:focus {
    border-color: var(--accent)
}

.search-button {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary);
    font-size: 1.5rem
}

.search-suggestions {
    position: absolute;
    width: 100%;
    background: var(--secondary);
    border: 1px solid var(--complement);
    border-radius: 0 0 10px 10px;
    font-size: 1rem;
    max-height: 150px;
    overflow-y: auto;
    z-index: 10;
    display: none
}

.suggestion-item {
    padding: .8rem 1rem;
    cursor: pointer;
    text-align: left
}

.suggestion-item:hover {
    background-color: rgb(129 178 154 / .2)
}

.fullscreen-button {
    display: none;
    margin-top: .5rem;
    padding: .8rem 1.5rem;
    background-color: var(--accent);
    color: #fff;
    border: none;
    border-radius: 30px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    padding-right: 3rem
}

.fullscreen-button:hover {
    background-color: var(--complement)
}

.fullscreen-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem
}

.preview-container {
    width: 100%;
    flex: 1;
    overflow: hidden;
    border: 2px solid var(--primary);
    border-radius: 10px;
    background-color: #F0F0F0;
    display: flex;
    align-items: center;
    justify-content: center
}

iframe {
    width: 100%;
    height: 100%;
    border: none
}

.empty-state {
    height: 110vh
}

.not-found-state {
    display: flex;
    flex-direction: column;
    height: 56vh
}

.not-found-message {
    margin: 0rem .5rem
}

.not-found-site-name {
    font-size: 18px;
    font-weight: 700;
    display: inline
}

.not-found-gif {
    margin-top: auto;
    margin-bottom: -1rem;
    height: 90%
}

footer {
    padding: 1rem;
    background-color: var(--primary);
    display: flex;
    justify-content: space-around;
    align-items: center
}

.footer-button {
    padding: .7rem 1.5rem;
    border: none;
    border-radius: 30px;
    background-color: var(--accent);
    color: var(--secondary);
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: .5rem;
    transition: all 0.3s ease
}

.footer-button:hover {
    background-color: var(--complement)
}

.page-404 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: Arial, sans-serif;
    padding: 20px;
    width: 100%;
    min-height: 100vh;
    text-align: center
}

.page-404-logo {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px
}

.page-404-gif-player {
    width: 400px;
    height: 400px;
    max-width: 80%;
    margin-bottom: 20px
}

.page-404-button {
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 30px;
    background-color: var(--accent);
    color: var(--secondary);
    font-weight: 700;
    font-size: 24px;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: .5rem;
    transition: all 0.3s ease
}

.page-404-button:hover {
    background-color: var(--complement)
}

@media (max-width:768px) {
    h1 {
        font-size: 1.2rem
    }

    h2 {
        font-size: .95rem
    }

    .footer-button {
        padding: .5rem 1rem;
        font-size: .9rem
    }

    .fullscreen-button {
        padding: .6rem 1.2rem;
        font-size: .9rem;
        padding-right: 2.5rem
    }
}

@media (max-width:480px) {
    header {
        padding: .4rem
    }

    .logo {
        width: 200px;
        height: 48px
    }

    h1 {
        font-size: 1rem
    }

    h2 {
        font-size: .85rem
    }

    .not-found-gif {
        margin-top: auto;
        margin-bottom: -2rem;
        height: 80%
    }

    .footer-button {
        padding: .4rem .8rem;
        font-size: .8rem
    }

    .fullscreen-button {
        padding: .5rem 1rem;
        font-size: .8rem;
        padding-right: 2.3rem
    }
}