* {
    box-sizing: border-box;
}

body {
    font-family: "Schoolbell", cursive;
    font-weight: 400;
    font-style: normal;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    min-width: 1000px;
    display: flex;
    flex-direction: column;
    background: rgb(45,45,45);
    background: linear-gradient(180deg, rgba(45,45,45,1) 0%, rgba(28,28,28,1) 50%, rgba(5,5,5,1) 100%);;
}

.container {
    width: 1000px;
    height: 800px;
    margin: auto;
    background-image: url("levels/img/Artboard_1.png");
    background-repeat: no-repeat;
    background-size: cover;
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0px 10px 15px -3px rgba(0,0,0,0.1);
}

.nimi {
    font-weight: 600;
    font-size: 24px;
    margin-bottom: -0.5rem;
}

.container img {
    height: auto;
    width: 100px;
    margin-left: auto;
    margin-right: auto;
}

header a {
    text-decoration: none;
    color: white;
    transition: 0.3s;
} 

header a:hover {
    color: rgba(255, 255, 255, 0.7);
}

header, footer {
    background-color: #3e2b3e;
    color: #fff;
    padding: 10px;
    text-align: center;
    width: 100%;
    box-shadow: 0px 10px 15px -3px rgba(0,0,0,0.1);
}

header {
    margin-bottom: 20px;
}

footer {
    margin-top: 70px;
}

.content {
    display: flex;
    align-items: center;
    justify-content: center;
}

.text_container {
    background-color: rgba(255, 255, 255, 0.8);
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    border-radius: 2rem;
    font-size: 24px;
}

.button_container {
    text-align: center;
    margin-top: 50px;
}

.button {
    display: inline-block;
    padding: 1rem 3rem;
    background-color: #5DFDCB;
    border: none;
    color: black;
    text-align: center;
    text-decoration: none;
    font-size: 24px;
    cursor: pointer;
    border-radius: 2rem;
    transition: 0.3s;
}

.button:hover {
    transform: scale(1.1);
}


.modal {
    display: none;
    position: fixed;
    z-index: 9998;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    width: 100%;
    max-width: 100%;
    max-height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center; 
}

.close {
    position: absolute;
    right: 40px;
    font-size: 60px;
    cursor: pointer;
    color: #fff;
    z-index: 9999;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes modalFadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

.modal {
    animation: modalFadeIn 0.3s;
}

.modal-content {
    animation: modalFadeIn 0.3s;
}


.close:hover {
    color: #aaa;
}


.modal-content video {
    max-width: 100%;
    max-height: 100vh; 
}
