::-webkit-scrollbar {
    width: 14px;
}
  
::-webkit-scrollbar-track {
    background: linear-gradient(
        to bottom,
        #f7dede 0%,
        #f2caca 40%,
        #e9b5b5 100%
    );
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(
        to bottom,
        #c94b4b 0%,
        #b63a3a 50%,
        #9e2f2f 100%
    );
    border-radius: 10px;
    border: 3px solid #f2caca; 
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(
        to bottom,
        #d65a5a 0%,
        #c44545 50%,
        #a83737 100%
    );
}

/* TODO: fonty */

* {
    scrollbar-width: thin;
    scrollbar-color: #b63a3a #f2caca;
}

body {
    min-height: 100vh;
    background-color: #f5f1f1;
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
}

.no-scroll {
    overflow: hidden;
}

header {
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #E8E4E3;
    padding: 0 100px;
    justify-content: space-between;
}

header div {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

header img.logo {
    height: 50px;
    margin: 10px;
}

header .menu {
    display: flex;
    gap: 15px;
    flex-direction: row;
}

header .menu a {
    position: relative;
    text-decoration: none;
    font-size: 1.1rem;
    color: black;
}


header .menu a::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -3px;
    width: 0;
    height: 2px;
    background-color: #b42c2c;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

header .menu a:hover::after, header .menu a.active::after {
    width: 100%;
}

header .hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

header .hamburger:hover {
    transform: scale(1.1);
}

header .mobile-menu {
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 71px;
    left: 0;
    background-color: #b42c2c;
    display: flex;
    align-items: center;
    justify-content: center;
}

header .mobile-menu.hidden {
    display: none;
}

header .mobile-menu .mobile-menu-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

header .mobile-menu .mobile-menu-content a {
    text-decoration: none;
    color: black;
    font-size: 1.5rem;
    font-weight: 500;
    padding: 10px;
    border-bottom: 1px solid #E8E4E3;
    transition: all 0.3s ease;
}

header .mobile-menu .mobile-menu-content a:hover {
    color: white;
    transition: all 0.3s ease;
}


main {
    margin: 0 auto;
    padding: 20px;
    text-align: center;
    max-width: 65%;
}

main h1 {
    font-size: 2.5rem;
    font-weight: 500;
}

main h2 {
    font-size: 1.5rem;
    font-weight: 400;
}

main section.articles {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    padding: 30px;
    gap: 20px;
    justify-content: center;
}

main section.articles article {
    background-color: white;
    display: flex;
    flex-direction: column;
    border-radius: 5px;
    box-shadow: 0px 10px 15px -3px rgba(0,0,0,0.1);
}

main section.articles article .article-image {
    height: 400px;
    width: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    animation: bgZoom 15s ease-in-out infinite;
}

main section.articles article .article-image.image-1 {
    background-image: url('../media/book.jpeg');
    background-position: center;
}

main section.articles article .article-image.image-2 {
    background-image: url('../media/ikeda.jpeg');
}

@keyframes bgZoom {
    0% {
      background-size: 100%;
    }
    50% {
      background-size: 105%;
    }
    100% {
      background-size: 100%;
    }
  }

main section.articles article .article-header {
    padding: 20px;
    text-align: left;
    border-bottom: 1px solid #E8E4E3;
}

main section.articles article .article-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

main section.articles article .article-footer {
    width: 100%;
    padding: 25px;
    border-top: 1px solid #E8E4E3;
}

main section.articles article .article-footer a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    background-color: #b42c2c;
    padding: 10px 20px;
    border-radius: 3px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

main section.articles article .article-footer a:hover {
    background-color: #9e2f2f;

}

main section.links {
    display: flex;
    flex-direction: row;
    gap: 20px;
    justify-content: center;
    padding: 30px;
}

main .hero {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 20px;
    border-radius: 10px;
    overflow: hidden;
    background-color: white;
    box-shadow: 0px 10px 15px -3px rgba(0,0,0,0.1);
}

main .hero div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    padding: 20px;
}

main .hero img {
    mask-image: linear-gradient(to right, transparent 0%, black 30%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 30%);
}

main embed {
    padding: 20px;
}

main #medailon {
    margin: 20px 0;
}

main #medailon h2 {
    text-align: left;
    margin: 10px 0;
}

main #medailon p {
    text-align: justify;
    margin: 10px 0;
    line-height: 1.5;
    font-size: 1.2rem;
}

main #medailon video {
    max-width: 600px;
}

main #medailon i {
    color: #b42c2c;
}

hr {
    border: 1px solid #E8E4E3;
}

main section.links article {
    display: flex;
    flex-direction: row;
    padding: 20px;
    gap: 20px;
    text-align: left;
}

main section.links article:first-child {
    border-right: 1px solid #E8E4E3;
}

main section.links article i {
    font-size: 2rem;
}

footer {
    display: flex;
    flex-direction: column;
}

footer .footer-content {
    color: white;
    background-color: #373737;
    padding: 10px;
    min-height: 100px;
}

footer .footer-bottom {
    text-align: center;
    background-color: #1F1F1F;
    color: white;
    padding: 3px;
}


@media (max-width: 1200px) {
    header {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: row;
    }
    header div span {
        display: none;
    }
    header .menu {
        display: none;
    }

    header .hamburger {
        display: block;
    }
    main {
        max-width: 90%;
    }
    main section.articles {
        grid-template-columns: repeat(1, 1fr);
    }

    main section.links {
        flex-direction: column;
    }

    main section.links article:first-child {
        border-right: none;
        border-bottom: 1px solid #E8E4E3;
    }

    main .hero {
        flex-direction: column;
    }

    main #medailon video {
        max-width: 100%
    }
}

@media (max-width: 480px) {
    header {
        padding: 0 20px;
    }
}