body {
    background-color: black;
    color: orange;
    font-family: "Courier New", Courier, monospace;
    margin: 0;
    padding: 0;
}

header {
    background-color: black;
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
    margin-bottom: 20px;
}

#headerImage {
    width: 100%;
    height: auto;
    display: block;
    max-width: 600px;
    margin: 0 auto;
}

nav {
    background-color: black;
    display: flex;
    justify-content: center;
    padding: 1em 0;
    width: 100%;
    flex-shrink: 0;
    margin-bottom: 20px;
    z-index: 0;
    border-top: 1px dotted orange;
    border-bottom: 1px dotted orange;
}

nav img {
    margin: 0 1em;
    cursor: pointer;
}

.nav-button {
    max-width: 130px;
    width: 100%;
    height: auto;
    transition: background-image 0.3s ease-in-out;
}

#nav1:hover {
    content: url('../NAV/BackHome_on.png');
}

#nav2:hover {
    content: url('../NAV/Leseprobe_on.png');
}

#nav4:hover {
    content: url('../NAV/News_on.png');
}

#nav5:hover {
    content: url('../NAV/ZumAutor_on.png');
}

main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    flex-grow: 1;
    margin: 0;
    padding: 20px 0;
}

#image-display {
	position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    max-height: 80%;
}

#main-image {
	width: auto;
    height: auto;
    max-width: 100%;
    max-height: 90vh;
    border: 5px solid orange;
    border-radius: 5px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 10px orange;
    }
    50% {
        box-shadow: 0 0 30px orange;
    }
    100% {
        box-shadow: 0 0 10px orange;
    }
}

#thumbnails {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.thumbnail {
    max-width: 100px;
    cursor: pointer;
    border: 2px solid orange;
    border-radius: 5px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.thumbnail:hover {
    transform: scale(1.1);
    box-shadow: 0 0 10px orange;
}


#button-overlay {
    position: absolute;
	top: 2%;
    right: 2%;
    z-index: 10;
}

#cta-button {
    background-color: orange;
    color: black;
    border: none;
    border-radius: 5px;
	padding: 1.5% 3%;
    font-size: 1vw;
    font-weight: bold;
	white-space: nowrap;
    text-align: center;
    cursor: pointer;
    animation: pulse 1.5s infinite;
    box-shadow: 0 0 10px orange;
    transition: transform 0.3s ease-in-out;
}

#cta-button:hover {
    transform: scale(1.2);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 10px orange;
    }
    50% {
        box-shadow: 0 0 30px orange;
    }
    100% {
        box-shadow: 0 0 10px orange;
    }
}

#popup-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

#popup-message {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    color: black;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.3);
}

#popup-message button {
    background-color: orange;
    color: black;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    margin: 10px 5px;
    transition: background-color 0.3s ease;
}

#popup-message button:hover {
    background-color: darkorange;
}


footer {
    background-color: black;
    color: orange;
    font-family: "Courier New", Courier, monospace;
    padding: 5px;
    text-align: center;
    border-top: 1px solid orange;
    margin-top: 20px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 50px;
}

.footer-links a {
    text-decoration: none;
    color: orange;
    font-size: 0.875rem;
    font-weight: normal;
}

.footer-links a:hover {
    color: yellow;
    text-decoration: underline;
}

@media (max-width: 768px) {
	
	#headerImage {
		max-width: 350px;
		margin-top: 10px;
	}
	
	.nav-button {
        max-width: 90px;
		height: auto;
		cursor: pointer;
		transition: background-image 0.3s ease-in-out;
		margin: 0 2px;
    }
	
	
	#main-image {
        width: 95%;
        height: auto;
        max-width: 100%;
        border: 2px solid orange;
    }

	#cta-button {
        font-size: 3vw;
        padding: 10px 20px;
        min-width: 110px;
        min-height: 40px;
        white-space: normal;
    }

    #button-overlay {
        top: 3%;
        right: 1%;
    }
	
	#thumbnails {
        flex-wrap: wrap;
        justify-content: center;
    }

    .thumbnail {
        flex: 1 1 100px;
        max-width: 100px;
    }
	
	#popup-message {
        max-width: 85%;
        padding: 15px;
        box-sizing: border-box;
    }
	
    .footer-links {
        flex-wrap: wrap;
        gap: 1em;
    }
    
    .footer-links a {
        white-space: nowrap;
    }
}
