html {
    background-color: rgb(25, 25, 25);
    z-index: -2;
    /* border: 2px solid rgb(92, 29, 29); */
}

body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Bahnschrift', 'Segoe UI', 'Roboto', 'sans-serif';
    /* border: 2px solid rgb(92, 29, 29); */
}

.page {
    width: 1200px;
    min-height: 100vh;
    margin: 0 auto;
    display: flex; 
    flex-direction: column;
    background-color: rgb(21, 19, 20);
    color: #ffffff;
    /* border: 2px dashed red; */
}

/* Animation canvas */
.background-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    /* border: 2px dashed red; */
}

/* Animated element */
.animated-line {
    position: absolute;
    background-color: rgb(191, 43, 23);
    transition: transform 8s linear, opacity 3s linear;
    pointer-events: none;
    opacity: 0;
}

/********************************* start - header *********************************/

header {
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 300px;
    background-color: #000000;
    background-Size: cover;
    background-Position: center;
    /* border: 2px dashed red; */
}

.site-language {
    display: flex;
    text-align: end;
    font-weight: 100;
    align-self: flex-end;
    font-stretch: semi-condensed;
    padding-top: 10px;
    padding-right: 10px;
    font-size: 20px;
}

.site-language-dropdown-menu {
    display: none;
    flex-direction: column;
    align-items: end;
    align-self: flex-end;
    padding-top: 10px;
    padding-left: 10px;
    padding-right: 10px;
    padding-bottom: 5px;
    gap: 5px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 0 0 0 10px;
}

.site-language-dropdown-item {
    cursor: pointer;
    font-stretch: semi-condensed;
    font-size: 25px;
}

.site-language-dropdown-item:hover {
    cursor: pointer;
    font-weight: bold;
    text-decoration: underline;
}

.header-nav-bar {
    display: flex;
    flex-wrap: wrap;
    position: absolute;
    align-items: flex-start;
    justify-content: center;
    top: 226px;
    width: 1100px;
    gap: 5px 0;
    margin: 0 auto;
    padding: 5px 50px 5px 50px;
    background-color: rgba(128, 128, 128, 0.2);
    /* border: 2px dashed red; */
}

.header-nav-bar-link {
    color: #ffffff;
    text-decoration: none;
}

.header-nav-bar-link.active .header-nav-bar-button {
    text-decoration: underline;
    font-weight: bold;
    color: rgba(241, 72, 39, 0.5);
}

.header-nav-bar-button {
    font-size: 30px;
    font-weight: 400;
    margin-left: 20px;
    margin-right: 20px;
    text-shadow: 5px 3px 10px rgba(0, 0, 0, 1);
}

.header-nav-bar-button:hover {
    color: rgba(255, 255, 255, 0.6);
    transform: scale(1.05);
    transition: color 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.site-language:hover {
    color: rgba(255, 255, 255, 0.6);
}

.sub-nav-bar {
    z-index: 1;
    display: "none";
    align-items: center;
    justify-content: center;
    width: 1100px;
    height: 46px;
    gap: 5px 0;
    margin: 0 auto;
    padding: 5px 50px 5px 50px;
    background-color: rgb(0, 0, 0);
    /* border: 2px dashed red; */
}

.sub-nav-bar-separator {
    font-size: 40px;
    margin: 0 10px;
    color: #999;
    font-weight: bold;
}

.sub-nav-bar-link {
    color: #ffffff;
    text-decoration: none;
}

.sub-nav-bar-link.active .sub-nav-bar-button {
    text-decoration: underline;
    font-weight: bold;
    color: rgba(241, 73, 39, 0.589);
}

.sub-nav-bar-button {
    font-size: 35px;
    margin-left: 10px;
    margin-right: 10px;
    text-shadow: 5px 3px 10px rgba(0, 0, 0, 1);
}

.sub-nav-bar-button:hover {
    color: rgba(255, 255, 255, 0.6);
    transform: scale(1.05);
    transition: color 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.header-expansion {
    z-index: 1;
    display: none;
    height: 30px;
    background-color: rgb(0, 0, 0);
    /* border: 2px dashed red; */
}

/********************************* start - main *********************************/

.main {
    display: flex;
    flex-direction: column;
    flex: 1;    /* Venyttää pääsisällön täyttämään ylimääräisen tilan */
}

.main-header {
    display: flex;
    padding-right: 40px;
    padding-left: 40px;
    font-size: 50px;
}

.main-text {
    display: flex;
    padding-right: 60px;
    padding-left: 60px;
    font-size: 22px;
    color: rgb(218, 218, 218);
}

.slide-down {
    transform: translateY(-25%);
    opacity: 0;
    transition: transform 0.5s ease-out, opacity 0.5s ease-out;
}

.slide-down.show {
    transform: translateY(0);
    opacity: 1;
}

.fade-out {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.fade-out.hide {
    opacity: 1;
}

.main-bottom-pad {
    padding-bottom: 40px;
}

/********************************* start - footer *********************************/

footer {
    width: 100%;
    height: 50px;
    display: flex;
    justify-content: center;
    gap: 20px;
    align-items: center;
    background-color: rgb(13, 13, 13);
}

.footer-links-bar {
    font-weight:200;
    font-stretch: semi-condensed;
    color: rgba(255, 255, 255);
    font-size: 22px;
}

.footer-link-a {
    text-decoration: none;
    color: rgba(255, 255, 255);
}

.footer-link-a:hover {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.6);
}

.footer-copyright {
    font-weight:200;
    font-stretch: semi-condensed;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.6);
}