body {
    font-family: "Obvia Wide", sans-serif;
    font-size: 16px; /* base chiara */
    margin: 0;
    padding: 20px;
    max-width: 100%;
    overflow-x: hidden;
    background-color: #060606;
    color: #e4c5a1;
}

@font-face {
    font-family: "Obvia Wide";
    src: url("assets/fonts/Obvia_Wide_Medium.otf") format("opentype");
}

@font-face {
    font-family: "Glot";
    src: url("assets/fonts/Glot_Light.otf") format("opentype");
}

@font-face {
    font-family: "Bunken Tech Sans Std Wide";
    src: url("assets/fonts/Bunken_Tech_Sans_Std_Wide.otf") format("opentype");
}

.bruno-ace {
  font-family: "Bruno Ace", sans-serif;
  font-weight: 600;
  font-style: normal;
}

.glot {
  font-family: "Glot", sans-serif;
  font-weight: 400;
  font-style: normal;
  line-height: 1.4;
}

.bunken-tech-sans-std-wide {
  font-family: "Bunken Tech Sans Std Wide", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.reggae-one {
  font-family: "Reggae One", system-ui;
  font-weight: 400;
  font-style: normal;
}


.v-flex {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.h-flex {
  display: flex;
  flex-direction: row;
  width: 100%;
}

.horizontal-flip {
    -webkit-transform: scale(-1, 1);
    -moz-transform: scale(-1, 1);
    -o-transform: scale(-1, 1);
    transform: scale(-1, 1);
}

.vertical-flip {
    -webkit-transform: scale(1, -1);
    -moz-transform: scale(1, -1);
    -o-transform: scale(1, -1);
    transform: scale(1, -1);
}

separator {
    width: 100%;
    height: 10px;
}

h2 {
    margin: 0;
    font-size: 2rem;
}

p {
    margin: 0;
    font-size: 0.875rem;
}

a {
    color: #e4c5a1;
    text-decoration: none;
}

button {
    font-family: "Bunken Tech Sans Std Wide", sans-serif;
    font-size: 0.875rem;
    letter-spacing: 1px;
    padding: 8px 10px;
    background-color: transparent;
    color: #e4c5a1;
    border: #7b7b72 2px solid; 
    cursor: pointer;
    align-self: flex-start;
}

.japanese-button {
    padding: 0 20px;
    font-size: 1rem; 
    font-weight: bold;
}

button img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    margin-left: 10px;
    vertical-align: middle;
    filter: invert(96%) sepia(86%) saturate(876%) hue-rotate(301deg) brightness(108%) contrast(79%);
}

.fixed-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.anime-image {
    width: 30%;
    height: auto;
}

.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}
.background img {
    opacity: 0.2;
}

.content {
    display: flex;
    flex-direction: column;
    max-width: 768px;
    margin: 0 auto;
}

.header {
    display: flex;
    flex-direction: column;
}

.header-title {
    height: 50px;
    object-fit: contain; 
    object-position: bottom left;
    min-width: 0;
    max-width: 100%;
}

.section-introduction {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bordered-box {
    position: relative;
    border: #7b7b72 2px solid;
}
.bordered-box::before,
.bordered-box::after {
    content: "";
    position: absolute;
    inset: -3px;
    pointer-events: none;
}

.bordered-box::before {
    background:
        linear-gradient(#7b7b72, #7b7b72) top left / 10px 4px no-repeat,
        linear-gradient(#7b7b72, #7b7b72) top left / 4px 10px no-repeat,
        linear-gradient(#7b7b72, #7b7b72) top right / 10px 4px no-repeat,
        linear-gradient(#7b7b72, #7b7b72) top right / 4px 10px no-repeat;
}

.bordered-box::after {
    background:
        linear-gradient(#7b7b72, #7b7b72) bottom right / 10px 4px no-repeat,
        linear-gradient(#7b7b72, #7b7b72) bottom right / 4px 10px no-repeat,
        linear-gradient(#7b7b72, #7b7b72) bottom left / 10px 4px no-repeat,
        linear-gradient(#7b7b72, #7b7b72) bottom left / 4px 10px no-repeat;
}

.bordered-box-alt {
    border-top: 2px solid #7b7b72;
    border-right: 2px solid #7b7b72;
    border-bottom: 2px solid #7b7b72;
}

.bordered-box-alt-2 {
    position: relative;
    border-left: 2px solid #7b7b72;
    border-bottom: 2px solid #7b7b72;
    border-right: 2px solid #7b7b72;
}

.bordered-box-alt-2::before,
.bordered-box-alt-2::after {
    content: "";
    position: absolute;
    inset: -3px;
    pointer-events: none;
}

.bordered-box-alt-2::before {
    background:
        linear-gradient(#7b7b72, #7b7b72) top left / 10px 4px no-repeat,
        linear-gradient(#7b7b72, #7b7b72) top left / 4px 10px no-repeat,
        linear-gradient(#7b7b72, #7b7b72) top right / 10px 4px no-repeat,
        linear-gradient(#7b7b72, #7b7b72) top right / 4px 10px no-repeat;
}

.bordered-box-alt-2::after {
    background:
        linear-gradient(#7b7b72, #7b7b72) bottom right / 10px 4px no-repeat,
        linear-gradient(#7b7b72, #7b7b72) bottom right / 4px 10px no-repeat,
        linear-gradient(#7b7b72, #7b7b72) bottom left / 10px 4px no-repeat,
        linear-gradient(#7b7b72, #7b7b72) bottom left / 4px 10px no-repeat;
}

.social-icons {
    position: absolute;
    display: flex;
    gap: 5px;
    bottom: -24px;
    left: 0px;
    background-color: #060606;
    padding: 0 20px;
}

.social-icons a {
    display: inline-block;
    width: 30px;
    height: 30px;
    background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAMAAAAp4XiDAAAAUVBMVEWFhYWDg4N3d3dtbW17e3t1dXWBgYGHh4d5eXlzc3OLi4ubm5uVlZWPj4+NjY19fX2JiYl/f39ra2uRkZGZmZlpaWmXl5dvb29xcXGTk5NnZ2c8TV1mAAAAG3RSTlNAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAvEOwtAAAFVklEQVR4XpWWB67c2BUFb3g557T/hRo9/WUMZHlgr4Bg8Z4qQgQJlHI4A8SzFVrapvmTF9O7dmYRFZ60YiBhJRCgh1FYhiLAmdvX0CzTOpNE77ME0Zty/nWWzchDtiqrmQDeuv3powQ5ta2eN0FY0InkqDD73lT9c9lEzwUNqgFHs9VQce3TVClFCQrSTfOiYkVJQBmpbq2L6iZavPnAPcoU0dSw0SUTqz/GtrGuXfbyyBniKykOWQWGqwwMA7QiYAxi+IlPdqo+hYHnUt5ZPfnsHJyNiDtnpJyayNBkF6cWoYGAMY92U2hXHF/C1M8uP/ZtYdiuj26U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ahLyynl4X4RinF793Oz+BU0saXtUHrVBFT/DnA3ctNPoGbs4hRIjTok8i+algT1lTHi4SxFvONKNrgQFAq2/gFnWMXgwffgYMJpiKYkmW3tTg3ZQ9Jq+f8XN+A5eeUKHWvJWJ2sgJ1Sop+wwhqFVijqWaJhwtD8MNlSBeWNNWTa5Z5kPZw5+LbVT99wqTdx29lMUH4OIG/D86ruKEauBjvH5xy6um/Sfj7ei6UUVk4AIl3MyD4MSSTOFgSwsH/QJWaQ5as7ZcmgBZkzjjU1UrQ74ci1gWBCSGHtuV1H2mhSnO3Wp/3fEV5a+4wz//6qy8JxjZsmxxy5+4w9CDNJY09T072iKG0EnOS0arEYgXqYnXcYHwjTtUNAcMelOd4xpkoqiTYICWFq0JSiPfPDQdnt+4/wuqcXY47QILbgAAAABJRU5ErkJggg==);
    background-color: #79b06c;
}

.social-icons a img {
    width: 70%;
    height: 70%;
    object-fit: contain;
    margin: 15%;
}

.section-about-me {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.section-about-me h2 {
    color: #80a07b;
}

.section-projects {
    margin-top: 20px;
    padding: 10px 5px 30px 5px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.project-card {
    flex: 1;
    margin-top: 10px;
    padding: 10px;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.project-card > img {
    height: 144px;
}

.project-card h3 {
    margin: 10px 0;
    font-size: 1.5rem;
    color: #80a07b;
}

.project-card p {
    margin-bottom: 15px;
    flex-grow: 1;
    line-height: 1.4;
}

.project-card button {
    margin-top: auto;
    padding: 5px;
    width: 100%;
}

.footer {
    display: flex;
    flex-direction: column;
    margin-top: 40px;
    font-size: 0.875rem;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.footer-link-container {
    padding: 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    height: auto;
    color: #80a07b;
}

.footer-link-container h2 {
    font-family: "Bunken Tech Sans Std Wide", sans-serif;
    font-size: 1.25rem;
    margin-bottom: 10px;
    padding-left: 10px;
}

.footer-link-container ul {
    padding: 0;
    margin: 0;
    list-style-type: none;
}

.footer-link-container li {
    background: url("assets/images/hyperlink_indicator.png") no-repeat left center;
    padding-top: 4px;
    padding-left: 55px;
    margin-bottom: 15px;
    height: 20px;
}

.footer-link-container a {
    font-family: "Bunken Tech Sans Std Wide", sans-serif;
    font-size: 0.75rem;
    letter-spacing: 1px;
}



.privacy-terms-footer {
    display: grid;
    grid-template-columns: 
        minmax(230px, 1fr)
        minmax(120px, 1fr)
        auto
        minmax(120px, 1fr)
        minmax(230px, 1fr);

    align-items: center;
    gap: 10px;
}

.privacy-terms-footer a {
    text-align: center;
    white-space: nowrap;
    color: #80a07b;
}

.privacy-terms-footer a:first-of-type {
    letter-spacing: 0.1em;
}

.privacy-terms-footer span {
    text-align: center;
    color: #80a07b;
}


.privacy-terms-footer img {
    width: 100%;
    max-width: 2000px; /* o quello che vuoi */
    justify-self: center;
}

/* Mobile responsive styles */
@media screen and (max-width: 768px) {
    .h-flex {
        flex-direction: column;
    }

    .social-icons {
        position: static;
        padding: 10px;
    }

    .anime-image {
        width: auto;
        height: 200px;
    }
}