body {
    background-color: #333;
    color: white;
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
}

.navbarm {
    background-color: rgb(162, 1, 1);
    display: flex;
    justify-content: center;
    gap: 15px;
    align-items: center;
    padding: 5px;
    font-size: 20px;
}

.navbarm a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    position: relative;
    transition: background-color 0.3s;
    padding: 10px 20px;
    border-radius: 5px;
}

.navbarm .logo img {
    width: 50px; 
}
.navbarm a:hover {
    background-color: darkred;
}

@media screen and (max-width: 768px) {
    .navbarm {
        flex-direction: column;
    }

    .navbarm a {
        padding: 10px;
        width: 100%;
    }
}

.header {
    display: none;
}
/*kod do kontaktu*/
.contact-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 10%;
    gap: 40px;
}

.contact-info {
    width: 40%;
    padding: 25px;
    font-size: 20px;
}

.contact-info p {
    margin: 10px 0;
    font-size: 22px;
}

.contact-info a {
    color: #e6007e;
    font-size: 22px;
    font-weight: bold;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

.contact-form {
    width: 50%;
    background: rgb(76, 73, 73);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.contact-form h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

input, textarea, select {
    width: 95%;
    padding: 15px;
    margin: 15px 0;
    border-radius: 5px;
    border: 1px solid #dbcece;
    font-size: 20px;
}

textarea {
    height: 130px;
}

button {
    background-color: #ef0918;
    color: white;
    padding: 15px;
    width: 100%;
    border: none;
    border-radius: 5px;
    font-size: 22px;
    cursor: pointer;
    transition: 0.3s;
}

button:hover {
    background-color: #c7043c;
}
/*kod do o nas*/
.team-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    padding: 20px;
}
.profile {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    width: 90%;
    margin: auto;
}
.profile-picture {
    width: 52.5%;
    max-width: 600px;
    height: auto;
    aspect-ratio: 1/1;
}
.profile-text-box {
    background-color: #222;
    padding: 20px;
    flex-grow: 1;
    text-align: left;
}
.profile-name {
    color: #ffffff;
    font-size: 2rem;
    margin-bottom: 5px;
}
.profile-school {
    color: #cccccc;
    font-size: 1.5rem;
    margin-bottom: 10px;
}
.profile-description {
    color: #ffffff;
    font-size: 1.2rem;
    line-height: 1.5;
}
.profile.reverse {
    flex-direction: row-reverse;
}
/*kod do ciekawostek*/
.facts-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 600px;
}
.facts-container {
    display: flex;
    transition: transform 0.2s ease-in-out;
    width: 100%;
    justify-content: center;
}
.fact-box {
    flex: 0 0 50%;
    max-width: 600px;
    height: auto;
    background-color: #444;
    padding: 20px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    position: absolute;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
    margin-top: 50px;
}
.fact-box.active {
    opacity: 1;
    position: relative;
}
.fact-image-container {
    width: 500px; 
    height: 300px; 
    background-color: rgba(255, 255, 255, 0.2);
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; 
}

.fact-box img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    border-radius: 5px;
}
.fact-text {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
}
.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 20px;
    z-index: 10;
    border-radius: 5px;
    width: auto;
    height: auto;
}

.left-arrow {
    left: 10px;
}

.right-arrow {
    right: 10px;
}
/*kod do aktualności*/

.gallery-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    overflow: hidden;
}
.gallery-title {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 20px;
    color: white;
}
.gallery-title-img {
    max-width: 100%;
    height: auto;
}
.gallery {
    display: flex;
    gap: 20px;
    width: 80%;
    overflow-x: auto;
    scroll-behavior: smooth;
    white-space: nowrap;
}
.gallery::-webkit-scrollbar {
    display: none;
}
.gallery-item {
    position: relative;
    flex: 0 0 30%;
    height: 400px;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    overflow: hidden;
}
.gallery-item:hover::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}
.overlay_akt {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: rgb(255, 255, 255);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 2;
    font-weight: bold;
    font-size:larger;
}
.gallery-item:hover .overlay_akt {
    opacity: 1;
}
 /*index*/
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -2;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vidoverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    z-index: -1;
}

.center-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.image-container img {
    max-width: 2000px;
    height: auto;
    border-radius: 10px;
    margin-top: 100px;
}

.buttonakt {
    display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    text-align: center;
    text-decoration: none;
    color: white;
    background-color: #ff5100;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 10px;
    width: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.buttonakt:hover {
    background-color: darkred;
}

.buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}