*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
}
:root{
    --background-image: url("oliver-tek-sad-vidim.webp");
    --background: linear-gradient(160deg, #fdf6e8, #faefd6);
    --accent-gold: rgba(160, 120, 50, 0.6);
    --accent-blue: #00a0e3;
}
body{
    min-height: 100vh;
    display:grid;
    grid-template-rows:auto 1fr auto;
    background-color: #d6e8f0;
}

/* HEADER */
.header {
    margin: 0 auto;
    width: 100%;
    max-width: 1920px;
    height: 800px;
    background: var(--background-image);
    background-size: cover;
    background-position: center center;
}
.header-wrapper{
    background: var(--background);
        border-bottom: 1px solid rgba(160, 120, 50, 0.3);
    box-shadow:
        0 2px 8px rgba(100, 70, 20, 0.07),
        0 12px 40px rgba(100, 70, 20, 0.06),
        inset 0 0 60px rgba(210, 175, 110, 0.08);
}

/* FLAGS */
.flags{
    display: flex;
    flex-direction: row;
    justify-content: center;
}
.box{
    margin-top: 50px;
    height: max-content;
    text-align: center;
    color: #5b5a5a;
    -webkit-text-stroke: rgba(0,0,0,.3);
    cursor: pointer;
    transition: transform 0.2s ease;
}
.flag{
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    background-color: aliceblue;
}
.flag-container{
    width: 50px;
    border-radius: 50%;
    border: 3px #5b5a5a solid;
    display: flex;
    margin: 0 30px;
    overflow: hidden;
}

.box.active, .box.active:hover {
    transform: translateY(-8px) scale(1.08);
}
.box:hover {
    transform: translateY(-4px);
}

.box.active .flag-container {
    border-color: var(--accent-blue);
}
.box.active h4{
    color: var(--accent-blue);
}

.content-text {
    display: none; /* JS controls visibility */
}
/* TEXT CONTENT */
.content {
    max-width: 720px;
    margin: 50px auto 50px;
    padding: 0 24px;
}
.content-text {
    background: var(--background);
    border-radius: 2px;
    padding: 64px 72px;
    border: 1px solid rgba(160, 120, 50, 0.3);
    box-shadow:
        0 2px 8px rgba(42, 106, 138, 0.08),
        0 16px 48px rgba(42, 106, 138, 0.12),
        inset 0 0 60px rgba(210, 175, 110, 0.1);
    position: relative;
}
.content-text::before {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
    opacity: 0.4;
    margin: 0 auto 40px;
}
.text-container{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.content-text h2 {
    font-family: "Oswald", sans-serif;
    font-size: 2rem;
    font-weight: 400;
    color: var(--accent-blue);
    text-align: center;
    margin-bottom: 50px;
    letter-spacing: 0.02em;
    line-height: 1.4;
}
.content-text p {
    font-family: 'Arimo', sans-serif;
    font-size: 1.2rem;
    line-height: 2;
    color: #5b5a5a;
    text-align: justify;   
    hyphens: auto;
}
.salutation {
    display: block;
    font-style: italic;
    font-size: 1.25rem;
    margin-bottom: 0.5em;
}
.content-text p a,
.content-text p {
    word-break: break-word;
}
a{
    color: var(--accent-blue);
    text-decoration: none;
}
.content-image-container{
    text-align: center;
}
.content-image{
    width: 90%;
    margin: 0 auto;
}
.content-image-author{
    display: block;
    width: 90%;
    margin: 0 auto;
    text-align: left;
    color: #5b5a5a;
}
/* FOOTER */
.footer{
    display: flex;
    justify-content: center;
    padding: 30px;
    background: var(--background);
    border: none;
    border-top: 1px solid rgba(160, 120, 50, 0.3);
    box-shadow:
        0 2px 8px rgba(100, 70, 20, 0.07),
        0 12px 40px rgba(100, 70, 20, 0.06),
        inset 0 0 60px rgba(210, 175, 110, 0.08);
}
/* SONG EMBED */
responsive-embed {
	display: block;
	overflow: hidden;
	width: 90%;
	max-width: 100%;
	padding: 0;
	height: auto;
	position: relative;
	margin-top: 1em;
	margin-bottom: 1em;
}
responsive-embed iframe,
responsive-embed div {
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	position: absolute;
	border: 0;
}
responsive-embed { height: 0; aspect-ratio: auto !important; }
responsive-embed[ratio="21by9"] { padding-top: 42.85714% }
responsive-embed[ratio="16by9"] { padding-top: 56.25% }
responsive-embed[ratio="4by3"] { padding-top: 75% }
responsive-embed[ratio="1by1"] { padding-top: 100% }



/******************
*** MEDIA QUERY ***
******************/
@media (max-width: 900px) {
    .header {
        height: 600px;
    }
}
@media (max-width: 770px) {
    .header {
        height: 300px;
    }
    /* FLAGS */
    .flags {
        flex-wrap: wrap;
        gap: 16px;
        padding: 0 20px;
        justify-content: center;
        margin-top: 30px;
    }
    .box {
        margin-top: 0px;
        width: calc(50% - 16px);
    }
    .flag-container {
        margin: 0 auto;
    }
    .flag {
        width: 80px;
    }
    /* TEXT CONTENT */
    .content {
        margin: 30px auto;
    }
    .content-text {
        padding: 40px 28px;
    }
    .content-text h2 {
        font-size: 1.5rem;
    }
    .content-text p {
        font-size: 1.05rem;
        line-height: 1.8;
    }
    .content-image, .content-image-author{
    width:100%;
    }
    /* SONG EMBED */
    responsive-embed {
        width: 100%;
    }
}