body, html {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, sans-serif;
    color: #F6EEDE;

    display: flex;
    flex-direction: column;
}

main {
    min-height: 100vh;
    background-color: #3E3A3A;
    z-index: 1;
    display: flex;
    flex: 1;    /*takes up the vertical space*/
}

main > aside {
    flex: 0 0 15rem;

    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-around;

    background-color: #3E3A3A;
    overflow-y: scroll;
    height: 100vh;
}

.sticky {
    position: -webkit-sticky;
    position: -moz-sticky;
    position: -ms-sticky;
    position: -o-sticky;
    position: sticky;
    top: 0;
}

article {
    flex: 0 1 auto;
    position: relative;
    height: 100%;

    overflow-x: hidden;
}
  
footer {
    background-color: rgb(43, 40, 40);
    color: #969289;
    font-size: 0.7rem;

    padding: 1rem;
    text-align: center;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;

    flex: 0 0 10rem;
}

.logo-svg {
    width: 6rem;
    height: 6rem;

    flex: 0 0 auto;
}

.logo-text {
    text-align: center;
    font-size: 1.3rem;
    white-space: pre;
    font-weight: bold;
    font-family: 'Roboto Slab', serif;
    margin-top: 1rem;
}

#fci-logo {
    margin: 1rem 3rem 1rem auto;
    width: 11rem;
    height: 5rem;
}

#fci-logo svg {
    height: 5rem;
    width: 5rem;
    margin-right: 0.5rem;
}

nav ul{
    list-style-type: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;

    padding: 0;
}

nav ul li {
    font-weight: normal;
    font-size: 1rem;
    text-align: center;
    border-radius: 0.5rem;
    vertical-align: baseline;
    line-height: 2.5rem;
    position: relative;

    width: 70%;
    height: 2.5rem;
    z-index: 10;

    transition: all 0.3s cubic-bezier(.25,.8,.25,1);
}

nav ul li:hover {
    background-color: rgba(246, 238, 222, 0.1);
    transition: all 0.3s cubic-bezier(.25,.8,.25,1);
}

nav ul li a {
    text-decoration: none;
    display: block;
    color: #F6EEDE;
}

nav ul li.active {
    background-color: #ABA79E;
    display: block;
    top: 0.1rem;
    z-index: 1;
}

nav ul li.active a {
    color: #3E3A3A;
    top: -0.1rem;
    line-height: 2.4rem;
}

nav ul li.active::before {
    content: " ";
    display: block;
    position: absolute;
    top: -0.1rem;
    border-radius: 0.5rem;
    z-index: -1;

    background-color: #F6EEDE;

    width: 100%;
    height: 2.4rem;
}

.lang-selector {
    width: 100%;
    display: flex;
    justify-content: center;
    bottom: 2rem;
}

.lang-selector ul {
    width: 60%;
    list-style-type: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-evenly;

    padding: 0;
}

.lang-selector ul li {
    font-weight: normal;
    font-size: 0.8rem;
    text-align: center;
    border-radius: 0.5rem;
    vertical-align: baseline;
    line-height: 2.5rem;
    position: relative;

    width: 70%;
    height: 2.5rem;
    z-index: 10;

    transition: all 0.3s cubic-bezier(.25,.8,.25,1);
}

.lang-selector ul li:hover {
    background-color: rgba(246, 238, 222, 0.1);
    transition: all 0.3s cubic-bezier(.25,.8,.25,1);
}

.lang-selector ul li a {
    text-decoration: none;
    display: block;
    color: #F6EEDE;
}

.lang-selector ul li.active {
    background-color: #ABA79E;
    display: block;
    top: 0.1rem;
    z-index: 1;
}

.lang-selector ul li.active a {
    color: #3E3A3A;
    top: -0.1rem;
    line-height: 2.4rem;
}

.lang-selector ul li.active::before {
    content: " ";
    display: block;
    position: absolute;
    top: -0.1rem;
    border-radius: 0.5rem;
    z-index: -1;

    background-color: #F6EEDE;

    width: 100%;
    height: 2.4rem;
}

article p {
    font-weight: 200;
    font-size: 1rem;
    line-height: 1.6rem;
    letter-spacing: 0.05rem;
    padding: 0 3rem 3rem 3rem;
    margin: 0;

    height: calc(100% - 10rem);
}

article p strong {
    font-weight: 500;
}

article header {
    background-color: #F6EEDE;
    display: block;
    z-index: 20;
    color: #3E3A3A;
    padding: 1rem 3rem 1rem 3rem;
    border-radius: 0 0 0 0.5rem;
    font-size: 1.1rem;
    font-family: 'Roboto Slab', serif;
    font-weight: 500;
    margin-bottom: 0.2rem;

    width: calc(100vw - 21rem);

    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    scroll-padding: 3rem;
}

main>article>p {
    width: 50rem;
}

main>article>img {
    width: 50rem;
    margin: 1rem 3rem;
    border-radius: 1rem;
}


/* Hide scrollbar for Chrome, Safari and Opera */
article header::-webkit-scrollbar {
    display: none;
}
  
  /* Hide scrollbar for IE, Edge and Firefox */
article header {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

article header h1 {
    margin: 0;
}

article header::before {
    content: " ";
    z-index: -1;
    top: 0.4rem;
    left: 0;
    border-radius: 0 0 0 0.5rem;
    display: block;
    position: absolute;

    background-color: #ABA79E;
    width: 100%;
    height: 4rem;
}

article header ul {
    display: inline-flex;
    flex-direction: row;
    list-style-type: none;
    font-size: 0.8rem;
    padding: 0;
    margin: 0;
}

article header ul li:last-child {
    margin-right: 0;
}

article ul li {
    scroll-snap-align: start;
    margin: 0.5rem 3rem 0.5rem 0;
}

article header ul li a{
    padding: 0.6rem 1.5rem;
    font-family: system-ui, sans-serif;
    transition: all 0.3s cubic-bezier(.25,.8,.25,1);
    border-radius: 0.5rem;
    text-decoration: none;
    color: #3E3A3A
}

article header ul li a:hover {
    background-color: rgba(62, 58, 58, 0.1);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(.25,.8,.25,1);
}

#active-year {
    background-color: #3E3A3A;
    color: #F6EEDE;
}

.news {
    width: calc(100% - 6rem);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    padding-top: 1.5rem;
}

.news-card {
    transform: scale(1);
    cursor: pointer;
    margin-bottom: 2rem;
    margin-right: 1.5rem;
    width: 23%;
    background-color: rgba(246, 238, 222, 0.05);
    border-radius: 1rem;
    border: 0;

    box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    transition: all 1s cubic-bezier(.25,.8,.25,1);
}

.news-card:hover {
    transform: scale(1.01);
    box-shadow: 0 8px 10px rgba(0,0,0,0.15), 0 4px 4px rgba(0,0,0,0.10);

    transition: all 0.3s cubic-bezier(.25,.8,.25,1);
}

.container {
    height: 0;
    overflow: hidden;
    padding-top: 60%;
    position: relative;
    background-color: #3E3A3A;
}

.container img {
    position: absolute;
    display: block;
    top: -1%;
    left: -1%;
    width: 102%;
    height: 102%;

    object-fit: cover;
}

.news-card .body {
    padding: 0rem 2rem 2rem 2rem;
}

.news-card .body h1 {
    letter-spacing: 0.05rem;
    font-weight: 500;
    font-size: 1.2rem;
    margin: 1rem 0;
}

.news-card .body p {
    padding: 0;
    font-size: 0.9rem;
    line-height: 1.45rem;
    letter-spacing: 0.02rem;
}

.news-card.show-full {
    width: 100%;
    transition: all 0.5s cubic-bezier(.25,.8,.25,1);
}

.news-card .full-post {
    display: none;
}

.news-card.show-full .full-post {
    display: block;
}

.news-header {
    margin: 3rem 0 0 3rem;
}

.read-more {
    display: block;
    padding: 0;
    border: none;
    background: none;
    margin: 0;

    margin-top: 1rem;
    color: #9EF1FD;

    font-size: 0.8rem;
    position: relative;
    
    cursor: pointer;
}

.news-card.show-full .read-more {
    display: none;
}

.read-less {
    display: none;
    padding: 0;
    border: none;
    background: none;
    margin: 0;

    margin-top: 1rem;
    color: #9EF1FD;

    font-size: 0.8rem;
    position: relative;
    
    cursor: pointer;
}

.news-card.show-full .read-less {
    display: block;
}


.arrow-right {
    border: 1px solid #9EF1FD;
    border-width: 0 0 0.1rem 0.1rem;
    display: inline-block;
    padding: 2px;

    transform: rotate(-135deg);
    -webkit-transform: rotate(-135deg);
}

.arrow-left {
    border: 2px solid #F6EEDE;
    border-width: 0.15rem 0.15rem 0 0;
    display: inline-block;
    padding: 3px;
    margin-bottom: 2px;


    transform: rotate(-135deg);
    -webkit-transform: rotate(-135deg);
}

.button-back {
    background-color: #3E3A3A;
    color: #F6EEDE;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    margin: 1rem;
    padding: 0.7rem 1.5rem;
    border-radius: 0.5rem;
}

.rounded {
    border-radius: 1rem;
}

.detailed-news {
    width: 80%;
}

.button-back:hover {
    background-color: rgba(246, 238, 222, 0.1);
}

#image-carousel {
    width: 100%;
    margin-bottom: 1rem;
    display: flex;    
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 3rem;
    padding-left: 10px;
}

#image-carousel::after {
    content: ' ';
    min-width: 5px;
}

#image-carousel .container {
    flex: 0 0 60%;
    padding-top: 35%;
    margin-right: 1rem;
    border-radius: 1rem;
    scroll-snap-align: center;
}

#image-carousel .container.cover {
    margin: 0 auto;
    flex: 0 0 100%;
    padding-top: 60%;
}

#image-carousel.cover {
    width: calc(80% - 6rem);
    padding: 0 3rem;
}

#image-carousel .container img {
    position: absolute;
    display: block;
    top: -1%;
    left: -1%;
    width: 102%;
    height: 102%;
    
    object-fit: cover;
}

.dog-carousel {
    width: calc(100% - 6rem);
    margin: 1rem auto;
    display: flex;    
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 3rem;
    padding: 3rem 0 1rem 3rem;
    background-color: rgba(246, 238, 222, 0.1);
    border-radius: 1rem;
}

.dog-carousel::after {
    content: ' ';
    min-width: 2rem;
}

.dog {
    flex: 0 0 35%;
    scroll-snap-align: center;
    margin-right: 2rem;
    cursor: pointer;

    transition: all 0.3s cubic-bezier(.25,.8,.25,1);
}

.dog:hover {
    transform: scale(1.02);

    transition: all 0.3s cubic-bezier(.25,.8,.25,1);
}

.dog .container {
    border-radius: 1rem;
}

.dog-name {
    font-family: 'Roboto Slab', serif;
    font-size: 1.5rem;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.no-scroll::-webkit-scrollbar {
    display: none;
}
  
  /* Hide scrollbar for IE, Edge and Firefox */
.no-scroll  {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

table {
    width: calc(100% - 2rem);
    margin: 2rem 1rem 0rem 1rem;
    border-radius: 1rem;
    background-color: rgba(246, 238, 222, 0.05);
    border-collapse: collapse;
    -webkit-mask-image: -webkit-radial-gradient(white, black); /* fixes bag for safari*/
}

td {
    padding: 1rem;
}

table tr:nth-child(odd) {
    background-color: rgba(246, 238, 222, 0.075);
}

.detailed-news > .container.rounded {
    margin: 0 1rem !important;
}

table a {
    color: #F6EEDE;
}

.hamburger-nav {
    display: none;
}

.contacts {
    display: flex;
    flex-direction: row;
}

.contacts aside {
    flex: 0 0 15rem;
    padding: 5rem;
}

.contacts aside h1 {
    font-size: 1.8rem;
    font-family: 'Roboto Slab', sans-serif;
    margin: 0 0 1rem 0;
    letter-spacing: 0.05rem;
}

.contacts aside p {
    padding: 0;
    height: fit-content;
    padding-bottom: 6rem;
}

.social h4, .social-mobile h4 {
    font-size: 1rem;
    font-family: 'Roboto Slab', sans-serif;
    margin: 1rem 0;
    letter-spacing: 0.05rem;
}

.social a, .social-mobile a {
    text-decoration: none;
    position: relative;
    margin-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: #F6EEDE;
}

.social a svg, .social-mobile a svg {
    position: absolute;
    top: 1px;
    left: -1.5rem;
    height: 1rem;
    fill: #F6EEDE;
}

.contacts form {
    font-size: 1rem;
    font-weight: 200;
    margin: 3.5rem 2rem;
    display: flex;
    flex-direction: column;
    flex: 0 1 25rem;
}

.contacts form label {
    margin-top: 2rem;
    margin-bottom: 0.5rem;
}

.contacts form input {
    padding: 0.7rem 1rem;
    font-size: 1rem;

    background-color: rgba(246, 238, 222, 0.1);
    border: none;
    color: #F6EEDE;
    border-radius: 0.5rem;
}

.contacts form textarea {
    resize: vertical;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    line-height: 150%;

    background-color: rgba(246, 238, 222, 0.1);
    border: none;
    color: #F6EEDE;
    border-radius: 0.5rem;
}

.contacts form button {
    border: none;
    background-color: #F6EEDE;
    color: #3E3A3A;
    font-size: 1rem;
    padding: 0.7rem;
    border-radius: 0.5rem;
    margin-top: 1.5rem;
    width: 10rem;

    transition: all 0.3s cubic-bezier(.25,.8,.25,1);
}

.contacts form button:hover {
    cursor: pointer;
    color: #F6EEDE;
    background-color: rgba(246, 238, 222, 0.3);

    transition: all 0.3s cubic-bezier(.25,.8,.25,1);
}

.contacts .social, .social-mobile {
    display: flex;
    flex-direction: column;
}

.contacts .social-mobile {
    display: none;
    margin: 1rem;
}


@media all and (max-width: 1800px) {
    .news-card {
        width: 30%;
    }

    main>article>p {
        width: 45rem;
    }

    main>article>img {
        width: 45rem;
        border-radius: 1rem;
    }    
}

@media all and (max-width: 1300px) {
    .news-card {
        width: 44%;
    }

    .detailed-news {
        width: 100%;
    }

    #image-carousel .container {
        flex: 0 0 80%;
        padding-top: 50%;
    }

    #image-carousel.cover {
        width: calc(100% - 6rem);
        padding: 0 3rem;
    }

    .dog-carousel {
        padding: 2rem 0 1.5rem 2rem;
    }

    .dog-carousel::after {
        content: ' ';
        min-width: 0.5rem;
    }

    .dog {
        flex: 0 0 40%;
        margin-right: 1.5rem;
    }

    .dog-name {
        font-size: 1rem;
    }

    .contacts aside {
        padding: 5rem 2rem;
        flex: 0 0 13rem;
    }

    .contacts aside h1 {
        font-size: 1.5rem;
    }

    main>article>p {
        width: 35rem;
    }

    main>article>img {
        width: 35rem;
        border-radius: 1rem;
    }  
}

@media all and (max-width: 860px) {

    main>article {
        height: max-content;
    }

    .news {
        flex-direction: column;
        padding: 0 5% 2rem 5%;
        width: 90%;
    }

    .news-card {
        flex: 0 0 auto;
        width: 100%;
        margin: 1.5rem 0 0 0;
    }

    #image-carousel.cover {
        width: calc(100% - 2rem);
        padding: 0 1rem;
    }

    .detailed-news p {
        padding: 0 1rem;
    }

    .dog-carousel {
        padding: 1.5rem 0 1rem 1.5rem;
    }

    .dog-carousel::after {
        content: ' ';
        min-width: 0.5rem;
    }

    .dog {
        flex: 0 0 70%;
        margin-right: 1rem;
    }

    .dog .container {
        border-radius: 0.5rem;
    }

    .dog-name {
        font-size: 0.9rem;
    }

    .contacts {
        flex-direction: column;
        height: calc(100vh - 4rem);
    }

    .contacts aside {
        flex: 0 0 5rem;
        padding: 3rem 1rem 0 1rem;
    }

    .contacts aside p {
        padding-bottom: 1rem;
    }

    .contacts form {
        margin: 0 1rem;
        height: 100%;
    }

    .contacts form button {
        width: 100%;
        height: 3.5rem;
    }

    .contacts .social {
        display: none;
    }

    .contacts .social-mobile {
        display: flex;
    }

    main>article>p {
        width: 30em;
    }

    main>article>img {
        width: 30rem;
        border-radius: 1rem;
    }  

    main>article>p {
        width: calc(100% - 2rem);
        padding: 1rem;
    }

    main>article>img {
        width: calc(100% - 2rem);
        border-radius: 1rem;
        margin: 1rem;
    }  
}

@media all and (max-width: 540px) {
    main {
        flex-direction: column;
        height: 100%;
    }
    main > aside {
        flex: 0 0 auto;
        position: fixed !important;
        transform: translateX(-100%);
        background-color: #3E3A3A;
        z-index: 999;
        width: 100vw;
        height: calc(100% - 4rem);
        padding-top: 4rem;

        transition: all 0.3s cubic-bezier(.25,.8,.25,1);
    }

    main > aside.active {
        transform: translateY(0);
        box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);

        transition: all 0.3s cubic-bezier(.25,.8,.25,1);
    }

    footer {
        font-size: 0.7rem;
        padding: 1rem;
    }

    .hamburger-nav {
        background-color: #F6EEDE;
        color: #3E3A3A;
        z-index: 1000;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        height: 4rem;
    }

    .hamburger-nav h1 {
        font-size: 1.5rem;
        font-family: 'Roboto Slab', serif;
        margin: auto 1rem;
    }

    .hamburger-nav svg {
        margin: auto 1rem;
    }

    article ul li {
        scroll-snap-align: start end;
        margin: 0.6rem 1.5rem 0.6rem 0;
    }

    article header {
        width: calc(100vw - 2rem);
        padding: 1rem;
    }

    article p {
        padding: 0 1rem 1rem 1rem;
    }

    #fci-logo {
        height: 5rem;
    }

    .news-header {
        margin: 2rem 0 0 5%;
    }

    .dog-carousel {
        padding: 1.5rem 0 1rem 1.5rem;
        width: calc(100% - 4rem);
    }

    .dog-carousel::after {
        content: ' ';
        min-width: 0.5rem;
    }

    .dog {
        flex: 0 0 70%;
    }

    .dog-name {
        font-size: 0.8rem;
    }

    table {
        padding: 0.5rem;
        font-size: 0.8rem;
    }
}