@import url('https://fonts.googleapis.com/css2?family=Ropa+Sans:ital@0;1&display=swap');
@import url('./themes/colors.css');

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

section,
div[id] {
    scroll-margin-top: 70px;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    width: 100%;
    min-height: 100vh;
    max-width: 100vw;
    margin: 0;
    padding: 0;
    background-color: var(--body-bg-color, #FFFFFF);
    font-family: "Ropa Sans", sans-serif;
    font-optical-sizing: auto;
}

#header-placeholder {
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
}

#back-to-top-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    bottom: 60px;
    right: 30px;
    z-index: 99;
    width: 30px;
    height: 30px;
    border: none;
    outline: none;
    background: var(--gradient-main-45-color, #DA2BA0);
    color: var(--white-icon-color);
    cursor: pointer;
    padding: 0;
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.2s ease;
}

#back-to-top-btn:hover {
    filter: brightness(1.1);
}

#back-to-top-btn:active {
    transform: scale(0.9);
}

#back-to-top-btn.show {
    opacity: 1;
    visibility: visible;
}

#back-to-top-btn svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

@media (max-width: 992px) and (orientation: landscape) {
    #back-to-top-btn {
        bottom: 50px;
    }
}

@media (max-width: 768px) {
    #back-to-top-btn {
        bottom: 50px;
    }
}