@import url(font/n27/stylesheet.css);

html, body {
    background-color: #ffca77;
    height: 100%;
    width: 100%;
	margin: 0;

    font-family: n27medium;
    /*text-wrap: balance;*/
    font-size: 1em;
}

.n276{
    font-family: n27bold!important;
}

.n275{
    font-family: n27medium!important;
}

.n274{
    font-family: n27regular!important;
}

.n273{
    font-family: n27light!important;
}

.n272{
    font-family: n27extralight!important;
}

.n271{
    font-family: n27thin!important;
}

.balance{
    text-wrap: balance;
}

.txtleft{
    text-align: left;
}

.clearfix {
	overflow: auto;
}

.nowrap > span{
    white-space: nowrap;
}

.name-list span::after {
    content: " ·"; /* Adds dot with space after each name */
}

.name-list span:last-child::after {
    content: ""; /* Removes dot after the last name */
}

.clearfix::after {
	content: "";
	clear: both;
	display: table;
}

.visuallyhidden {
	border: 0;
	clip: rect(0 0 0 0);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
}

.space{
	position: relative;
	height: 4em;
}

.space-small{
	position: relative;
	height: 1.2em;
}

.space-tiny{
	position: relative;
	height: 0.2em;
}

.logo{
    position: re;
    width: 1100px;
    margin-top: 40%;
    transform: translate(-15%, -45%);
}

.background-container {
    position: scroll;
    top: 0;
    left: 0;
    width: 100%;
    pointer-events: none;
    z-index: -1;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    overflow: hidden;
}

.background-image {
    height: auto;
}

.left {
    align-self: flex-start;
    position: relative;
    margin-left: 0;
    left: 160px;
    margin-top: 1189px; /*50*/
    width: 180px;
    transform: rotate(180deg);
}

.right {
    align-self: flex-start;
    position: relative;
    margin-right: 0;
    right: -50px;
    margin-top: 50px; /*589*/
    width: 850px;
}

.wrapper {
    position: absolute;
    width: 55vw; /* Adjust as needed */
    margin: 0 auto;
    z-index: 1;
    
    top: 0;
    left: 50%;
    transform: translate(-50%, 0);
}

.logo-clari{
    position: relative;
    width: 49%;
    left: 0;
}

.header-text h1, .header-text h2{
    line-height: 0.3;
}

.textbox {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Two equal columns */
    width: 100%;
    text-align: justify;
    font-size: 1.1em;
    line-height: 1.5em;
    gap: 2em;
}

.datebox{
    text-transform: uppercase;
}

.u{
    text-transform: uppercase;
}

.date{
    font-size:3em;
    line-height: 1;
    font-family: n27bold;
}

img{
    width: 100%;
    height: min-content;
}

@media screen and (max-width: 1000px) {

    .wrapper {
        width: 90vw;
        position: relative;
        transform: none;
        left: auto;
        font-size: 2.5em;
    }

    .logo {
        width: 80%;
        margin-top: 40%;
        transform: translate(10%, -50%);
    }

    .background-container{
        display: none;
    }
    
    .textbox {
        display: flex;
        flex-wrap: wrap;
        gap: 2em;
        align-items: center;
    }

    .textbox img {
        order: -1;
    }

    .textbox img[src="img/clarinetchoir.png"] {
        order: -1;
    }

    .background-container {
        flex-direction: column; /* Stack images vertically */
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }

    .left, .right {
        width: 60%;
        position: static; /* Remove absolute */
        margin: 20px auto; /* Center images */
    }

    .header-text{
        font-size: 0.8em;
        text-align: center;
    }

    .logo-clari{
        width: 100%;
        left: 0;
    }

    .date {
        font-size: 2em;
    }

    img {
        width: 100%;
        height: auto;
    }

    .space {
        height: 2em;
    }

    .space-small {
        height: 0.8em;
    }

    .space-tiny {
        height: 0.1em;
    }
}
