:root {
    --text-color: rgb(74, 77, 82);
    --bg-accent: #0077B0;
    --bg-primary: white;
    --bg-shadow: rgba(0, 0, 0, 0.5);
}

html,
body {
    margin: 0px;
    padding: 0px;
    scroll-behavior: smooth;
    position: relative;
    /* background-attachment: fixed; */
    font-family: "Cormorant Garamond", serif;
    font-weight: 400;
    font-style: normal;
    color: var(--text-color);
}

#popup {
    position: fixed;
    height: 100vh;
    width: 100vw;
    background-color: rgba(0, 0, 0, 0.2);
    z-index: 1000;
    top: 0;
    left: 0;
}
#popup.disabled{
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

#popup-container {
    display: flex;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 75%;
    max-height: 75%;
    position: relative;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.5);

}
#popup-panel {
    position: relative;
    width: 100%;
    max-height: 100%;
    background-color: white;
    padding: 20px;
    font-size: 1.5em;
    display: flex;
    flex-direction: column;
    overflow: auto;
}
.popup-title{
    font-family: "Antonio", sans-serif;
}
.popup-text{
    padding: 10px;
}
#popup-close-mark{
    font-size: 5em;
    padding: 5px;
    position: absolute;
    top: 0;
    right: 0;
    line-height: 0em;
    cursor: pointer;
    z-index: 1;
}

#popup.active {
    position: absolute;
    height: 100%;
    width: 100%;
    background-color: white;
    display: flex;
}



.bg-png {
    background-image: url('images/bg.png');
    background-repeat: no-repeat;
    background-size: contain;
}

.bg-png-alpha {
    background-image: url('images/bg-alpha.png');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;

}

.bg-png.attach {
    background-size: contain;
}

.home {
    height: 90vh;
    height: 90dvh;
    position: relative;
}

.home>.main {
    padding-top: 10%;

    display: flex;
    flex-direction: column;
    text-align: center;

    font-family: "Antonio", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    color: var(--text-color);
}

#home-bg {
    position: absolute;
    z-index: 0;
    width: 100%;
    bottom: 10%;
}

#mainTitle {
    font-size: 4rem;
    /* margin: 5px; */
    font-weight: 600;
    transition: transform 0.2s;
}

#mainSubTitle {
    font-size: 2rem;
    font-weight: 600;
    font-style: italic;
    transition: transform 0.2s;
    font-family: "Cormorant Garamond", serif;
}

#mainTitle:hover,
#mainSubTitle:hover {
    transform: scale(1.02);
    transition: transform 0.5s;
}

.content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bg-accent {
    background-color: var(--bg-accent);
    color: white;
}

.bg-accent * {
    color: white;
}

.bg-accent a {
    color: white;
}

h1 {
    font-family: "Antonio", sans-serif;
    font-size: 2.2rem;
    padding: 20px;
}

h2 {
    font-family: "Antonio", sans-serif;
    font-size: 1.8rem;
    padding: 10px;
}

h3 {
    font-family: "Antonio", sans-serif;
    font-size: 1.5rem;
    padding: 10px;
}

#menu {
    position: sticky;
    width: 100%;
    height: 10dvh;
    min-height: 50px;
    top: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    /* flex-wrap: wrap; */
    background-color: white;
    z-index: 1000;
    box-shadow: 0px 5px 20px -5px rgba(0, 0, 0, 0.1);
    font-family: "Antonio", sans-serif;
}

#menu>.item {
    margin: 0px 20px;
    width: 100%;
    text-align: center;
    font-size: 1.3rem;
    cursor: pointer;
    font-weight: 500;
    text-decoration: none;
    color: var(--text-color);
}

#menu>.item:hover {
    font-weight: 600;
}

.panel {
    height: fit-content;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.anchor {
    position: absolute;
    top: -50px;
}

button.button{
    background-color: var(--bg-accent);
    padding: 5px;
    font-family: "Antonio", sans-serif;
    font-size: 1.2em;
    border: none;
    color: white;
    cursor: pointer;
    border-radius: 10px;
    width: 100%;
    margin: 3px;
}
button.button>a{
    text-decoration: none;
    color: inherit;
}
.img-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    z-index: 10;
    background-color: var(--bg-accent);
    padding: 10px 20px;
    font-size: 2rem;
    font-family: "Antonio", sans-serif;
    border-radius: 15px;
    cursor: pointer;
    box-shadow: 0px 0px 15px var(--bg-shadow);
    transition: transform 0.2s;
    text-decoration: none;
    color: white;
}

.img-button:hover {
    transition: transform 0.2s;
    transform: translateX(-50%) translateY(-50%) scale(1.1);
}

.panel-intro {
    text-align: left;
    padding: 20px;
    font-size: 1.5rem;
}

.sub-panel {
    min-height: 500px;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    height: 100%;
    background-color: var(--bg-primary);
}

.sub-panel * {
    color: var(--text-color);
}

.sub-panel:hover {
    transition: transform 0.3s;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.4);
    transform: scale(1.01);
}

.sub-panel>.text {
    font-size: 1.3rem;
    flex: 1 1 auto;
    padding: 0px 10px;
    text-align: justify;
}

.sub-panel>img {
    width: 100%;
    max-height: 50%;
    object-fit: cover;
    bottom: 0;
    left: 0;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    padding: 20px 10px;
    gap: 15px;
}

.row-flex {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 100%;
    flex: 1 1 auto;
}

.row-flex>.col {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.row-flex>.col>.text {
    padding: 20px 25px;
    font-size: 1.4rem;
    text-align: justify;
}

.row-flex>.col>img {
    height: 100%;
    max-width: 100%;
    object-fit: cover;
    width: 100%;

}

.carousel {
    display: flex;
    max-width: 100%;
    overflow: hidden;
    position: relative;
    height: 100%;
    cursor: pointer;
}

.carousel-content {
    display: flex;
    flex-direction: row;
    height: 100%;
    width: 100%;
    transition: transform 0.5s ease;
}

.carousel-content>img {
    max-width: 100%;
    width: 100%;
    object-fit: cover;
    flex: 0 0 auto;
}

.quotemark {
    font-size: 2rem;
    padding: 0px 5px;
}

.review-list {
    display: flex;
    flex-direction: column;
    width: 100%;
    justify-content: center;
    align-items: center;
}

.review {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 90%;
    margin-bottom: 20px;
}

.review-text {
    font-size: 1.5rem;
    text-align: justify;
}

.review-check {
    color: var(--text-color);
    font-family: "Antonio", sans-serif;
    padding: 0px 10px;
    flex: 0 0 auto;
}

@media only screen and (max-width: 600px) {
    .grid-2 {
        grid-template-columns: repeat(1, 1fr);
    }

    .sub-panel {
        min-height: unset;
    }

    .row-flex {
        flex-direction: column;
    }

    .home>.main {
        padding-top: 30%;
    }

    #menu {
        flex-wrap: wrap;
    }

    #menu>.item {
        width: unset;
    }
    #popup-container{
        max-height: 90% !important;
    }
    .popup-title{
        font-size: 1em;
    }
    .popup-text{
        font-size: 0.8em;
    }
    button.button{
        font-size: 1em;
    }
}