body {
    padding-bottom: 0;
}

main {
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: start;
    padding-top: 50px;
    padding-bottom: 30px;
    font-family: var(--font-body);
    width: 100%;
    max-width: 800px;
    height: calc(100vh - 80px);
}

main h1 {
    font-family: var(--font-body);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

main h1:after {
    content: "";
    display: block;
    width: 300%;
    align-self: center;
    height: var(--height);
    background: rgba(var(--text), 0.2);
    margin: 20px 0;
    animation: length ease-in-out 1s;
}

@keyframes length {
    0% {
        width: 0%;
    }

    100% {
        width: 300%;
    }
}

.resume-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border: 1px solid rgba(var(--text), 0.3);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    color: rgb(var(--text));
    transition: border-color 0.2s ease, background 0.2s ease;
}

.download-btn:hover {
    border-color: rgba(var(--text), 0.8);
    background: rgba(var(--text), 0.05);
}

.download-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.pdf-container {
    width: 100%;
    flex: 1;
    min-height: 500px;
    border: 1px solid rgba(var(--text), 0.2);
}

.pdf-container object {
    width: 100%;
    height: 100%;
    display: block;
}

.pdf-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 300px;
    gap: 20px;
}

.pdf-fallback p {
    color: rgba(var(--text), 0.5);
    font-family: var(--font-body);
}

@media (max-width: 600px) {
    .pdf-container {
        min-height: 400px;
    }

    .download-btn {
        font-size: 0.8rem;
        padding: 8px 16px;
    }
}