* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    background-color: rgb(245, 220, 188);
}

img {
    display: block;
    max-width: 100%;
}

.header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr);
    align-items: stretch;
}

.logo img,
.prisoner_image img {
    width: 100%;
    height: clamp(100px, 15vw, 160px);
    object-fit: cover;
}

.title {
    display: grid;
    min-width: 0;
    min-height: clamp(100px, 15vw, 160px);
    padding: 1rem;
    place-items: center;
    background-color: rgb(200, 200, 238);
    color: black;
    text-align: center;
}

.title h1 {
    margin: 0;
    font-size: clamp(1.25rem, 3vw, 2rem);
}

.linknav {
    position: relative;
    z-index: 2;
    width: 100%;
    margin: 0 auto;
}

.linknav > ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

.linknav li {
    position: relative;
    list-style: none;
}

.linknav a {
    display: block;
    padding: 0.85rem clamp(0.75rem, 2.5vw, 2rem);
    background-color: rgb(251, 255, 0);
    color: blue;
    text-align: center;
    text-decoration: none;
    font-size: clamp(1rem, 2vw, 1.625rem);
    font-weight: 540;
    transition: background-color 0.2s ease;
}

.linknav li > a:hover,
.linknav li > a:focus-visible {
    background-color: rgb(0, 255, 234);
}

.linknav li:hover > #languages,
.linknav li:focus-within > #languages,
#languages:target {
    visibility: visible;
    opacity: 1;
}

#languages {
  position: absolute;
  top: 100%;
  left: 0;
  visibility: hidden;
  min-width: 100%;
  margin: 0;
  padding: 0.5rem;
  background-color: rgb(251, 255, 0);
  opacity: 0;
  z-index: 3;
}

.language-item:hover #languages,
.language-item:focus-within #languages,
#languages:target {
  visibility: visible;
  opacity: 1;
}

#languages li {
  width: 100%;
}

.goog-te-gadget img {
  display: none !important;
}

.goog-te-combo {
  max-width: 100%;
  padding: 5px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: #fff;
  color: #333;
  font-size: 14px;
}

.goog-te-combo-arrow {
  display: none;
}

.goog-te-menu-value {
  color: #333;
  font-size: 14px;
}

h1 {
    margin: 0.75rem 1rem 0;
    text-align: center;
    font-size: clamp(1.35rem, 3vw, 2rem);
}

.first {
    margin-top: 1rem;
}

.embed {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-items: center;
    gap: clamp(1rem, 3vw, 2rem);
    width: min(100% - 2rem, 1200px);
    margin: 1.5rem auto 0;
}

.tapela,
.gate {
    width: min(100%, 520px);
}

.tapela img,
.gate img {
    width: 100%;
    height: auto;
    aspect-ratio: 1.15 / 1;
    border-radius: 50%;
    object-fit: cover;
}

.detail_div {
    width: min(100% - 2rem, 1000px);
    margin: clamp(1.5rem, 4vw, 3rem) auto 1.25rem;
    border: 5px double rgb(4, 4, 95);
    background-color: burlywood;
}

.detail {
    margin: 0;
    padding: clamp(1rem, 4vw, 3rem);
    font-size: clamp(1rem, 2vw, 1.4rem);
    line-height: 1.6;
    text-align: justify;
}

.further {
    margin: 0 auto 1.5rem;
    padding: 0 1rem;
    text-align: center;
    font-size: clamp(1.1rem, 2.5vw, 1.875rem);
}

.further a {
    color: rgb(0, 154, 68);
    text-decoration: none;
}

.further a:hover,
.further a:focus-visible {
    color: rgb(180, 125, 0);
}

.further a:active {
    color: rgb(239, 51, 64);
}

footer {
    margin-top: auto;
    padding: 0.25rem 1rem;
    background-color: rgb(41, 41, 41);
    color: white;
    font-family: "Times New Roman", Times, serif;
    font-size: 1.0625rem;
    text-align: center;
}

@media (max-width: 760px) {
    .header {
        grid-template-areas:
            "title title"
            "logo prisoner";
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .logo {
        grid-area: logo;
    }

    .title {
        grid-area: title;
        min-height: 110px;
    }

    .prisoner_image {
        grid-area: prisoner;
    }

    .logo img,
    .prisoner_image img {
        height: clamp(90px, 24vw, 150px);
    }
}

@media (max-width: 600px) {
    .linknav > ul {
        justify-content: stretch;
    }

    .linknav > ul > li {
        flex: 1 1 40%;
    }

    .linknav a {
        padding: 0.75rem 0.5rem;
    }

    .embed {
        grid-template-columns: minmax(0, 1fr);
    }

    .tapela,
    .gate {
        width: min(100%, 420px);
    }

    .detail_div {
        width: calc(100% - 1.5rem);
        border-width: 3px;
    }

    .detail {
        text-align: left;
    }
}

@media (max-width: 360px) {
    .linknav > ul > li {
        flex-basis: 100%;
    }

    .header .title {
        padding: 0.75rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
