/* Reset stylów */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    color: white;
    background-color: black;
}
.navigator {
    position: absolute;
    width: 100%;
    height: 200px;
    bottom: 0px;
    opacity: 0;
}

/* Nagłówek i menu glowne */
.main-header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.8);
    transition: all 0.3s ease;
}

.main-header.shrink {
    padding: 5px 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.menu-left a, .menu-right a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
    padding: 0 5px;
    /* border-right: 1px solid rgba(255, 255, 255, 0.2); */
    transition: color 0.3s;
}

.menu-left a:last-child, .menu-right a:last-child {
    border-right: none;
}

.menu-left a:hover, .menu-right a:hover {
    color: #aaa;
}

.logo {
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    align-items: center;
    display: flex;
}
#statusText {
    margin-left: 20px;
    width: 50px;
}
#menu p {
    margin: 0 auto;
    text-align: center;
    margin-top: -20px;
    margin-left: -20px;
    font-size: 14px;
}

/* Przycisk On/Off */
.switch {
    position: relative;
    display: inline-block;
    width: 30px;
    height: 17px;
    left: 30px;
  }
  
  .switch input { 
    opacity: 0;
    width: 0;
    height: 0;
  }
  
  .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
  }
  
  .slider:before {
    position: absolute;
    content: "";
    height: 13px;
    width: 13px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
  }
  
  input:checked + .slider {
    background-color: #06c830;
  }
  
  input:focus + .slider {
    box-shadow: 0 0 1px #06c830;
  }
  
  input:checked + .slider:before {
    -webkit-transform: translateX(13px);
    -ms-transform: translateX(13px);
    transform: translateX(13px);
  }
  
  /* Rounded sliders */
  .slider.round {
    border-radius: 17px;
  }
  
  .slider.round:before {
    border-radius: 50%;
  }

/* Hero section */
.hero {
    height: 100vh;
    width: 100%;
    justify-content: center;
    align-items: center;
    background: black;
    position: relative;
}

.scroll-icon {
    font-size: 2rem;
    animation: bounce 1.5s infinite;
    color: white;
    position: absolute;
    left: 50%;
    bottom: 75px;
}

#realizacja {
    padding-top: 240px;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(10px);
    }
}

/* Treść */
.content {
    padding: 50px 20px;
    text-align: center;
    margin-right: 10%;
    margin-left: 10%;
}

.kontakt {
    text-align: left;
    margin: 20px;
    margin-top: 100px;
    width: 100%;
}
.stanowisko {
    font-size: 12px;
    margin-top: 50px;
    margin-bottom:5px !important;
}
.imie {
    font-size: 20px;
    margin-bottom: 40px !important;
}
.wizytowka {
    width: 210px;
    height: 210px;
    border-radius: 40%;
    margin: 20px;
    transition-duration: 0.4s;
}
.wizytowka:hover {
    width: 240px;
    height: 240px;
    transition-duration: 0.4s;
}

.dane {
    float: right;
}



.content h1, .content h2 {
    font-size: 2rem;
    margin-bottom: 30px;
}

.content p {
    margin-bottom: 12px;
}

.list {
    list-style: circle;
    list-style-position: outside;
    display: inline-block;
}
.list li {
    padding: 5px;
}

.lista-naglowek {
    margin-top: 50px;
}

.button {
    vertical-align: middle;
    margin: 50px;
    background-color: #555555;
    border: none;
    color: white;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    border-radius: 4px;
    transition-duration: 0.4s;

}
.button:hover {
    background-color: #fdfffe; /* Green */
    color: rgb(0, 0, 0);
    cursor: pointer;
  }

/* Paralaksa */
.parallax {
    min-height: 100vh;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: white;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.8);
    margin-bottom: 150px;
    padding: 50px 20px;
    text-align: center;
}

.parallax .content {
    background: rgba(0, 0, 0, 0.6);
    padding: 20px;
    border-radius: 5px;
}

/* grafiki w tle paralaksy */
.paralax-gm3 {
    background: linear-gradient( rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.99) ), 
    url('./img/grandma3.png');
    background-size: cover;
}
.paralax-gm2 {
    background: linear-gradient( rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.99) ), 
    url('./img/grandma2.png');
    background-size: cover;
}
.paralax-depence {
    background: linear-gradient( rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.99) ), 
    url('./img/gig.jpg');
    background-size: cover;
}
.paralax-programing {
    background: linear-gradient( rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.99) ), 
    url('./img/depence.png');
    background-size: cover;
}
.paralax-gig {
    background: linear-gradient( rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.99) ), 
    url('./img/gig.jpg');
    background-size: cover;
}
.paralax-project1 {
    background: linear-gradient( rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.99) ), 
    url('./img/wysiwyg2.png');
    background-size: cover;
}
.paralax-project2 {
    background: linear-gradient( rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.99) ), 
    url('./img/wysiwyg1.jpg');
    background-size: cover;
}
.paralax-project3 {
    background: linear-gradient( rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.99) ), 
    url('./img/wysiwyg3.jpg');
    background-size: cover;
}
.paralax-band {
    background-size: cover;
    background: linear-gradient( rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.99) ), 
    url('./img/band.png');
    background-size: cover;
}
.paralax-band2 {
    background: linear-gradient( rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.99) ), 
    url('./img/band2.jpeg');
    background-size: cover;
}

.paralax-band3 {
    background: linear-gradient( rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.99) ), 
    url('./img/gig3.jpg');
    background-size: cover;
}

.prog-logo {
    border-radius: 8px;
    max-height: 150px;
    width: auto;
    margin: 30px;
}

/* Stopka */
.footer {
    background: #111;
    text-align: center;
    padding: 20px 0;
    margin-top: 30px;
}
.footer p {
    margin: 20px;
}
.footer a {
    text-decoration: none;
    color: white;
}

#emaillink a, #email-link a, #phone-link a {
    text-decoration: none;
    color: white;
}

/* Menu rozwijane na urządzeniach mobilnych */
.main-header .hamburger {
    display: none;
}

.menu {
    display: none;
    justify-content: space-between;
    width: 80%;
    list-style: none;
    padding: 0;
}

.menu li {
    text-decoration: none;
    margin: 0 10px;
    margin-bottom: 30px;
    padding: 0 5px;
}
.menu a {
    text-decoration: none;
    color: #fff;
}
.menu a:hover {
    color: #aaa;
}

/* Responsywność */
@media (max-width: 880px) {
    .menu-left, .menu-right {
        display: none;
    }
    .navbar .menu {
        display: none;
        flex-direction: column;
        list-style: none;
        position: absolute;
        background-color: rgba(0, 0, 0, 0.9);
        top: 0;
        right: 0;
        height: 50vh;
        width: 70%;
        padding-top: 50px;
        display: flex;
        transform:scaleY(0);
        -webkit-transform:scaleY(0);
        transform-origin:50% 0;
        -webkit-transform-origin:50% 0;
        transition:250ms;
    }
    .navbar .open {
        transform:scaleY(1);
        -webkit-transform:scaleY(1);
    }
    .main-header .hamburger {
        display: block;
        position: absolute;
        top: 15px;
        right: 15px;
        color: #fff;
        font-size: 1.5em;
        cursor: pointer;
    }
    #menu p {
        padding-left: 20px;
        margin-left: 0px;
        text-align: left;
    }
    .wizytowka, .dane {
        position: relative;
        margin: 0 auto;
        display: block;
        margin-top: 20px;
        top: 0;
        left: 0;
    }
    .stanowisko {
        margin-top: 20px;
    }
    .overlay {
        opacity: 0.8 !important;
    }
}
/* Responsywność: tablety */
@media (max-width: 1024px) {
    .portfolio-item {
        width: calc(50% - 20px); /* Dwa kafelki w jednym rzędzie */
        height: 300px; /* Zachowanie wysokości */
    }
}

/* Responsywność: telefony */
@media (max-width: 600px) {
    .portfolio-item {
        width: 100%; /* Jeden kafelek w rzędzie */
        height: 250px; /* Mniejsza wysokość dla telefonów */
    }
}
@media (max-height: 670px) {
    .scroll-icon {
        display: none;
    }
}
 @media (max-height: 600px) {
    .content {
        margin-top: 100px;
    }
}
/* @media (max-height: 470px) {
    .content {
        margin-top: 200px;
    }
}
@media (max-height: 350px) {
    .content {
        margin-top: 400px;
    }
} */


/* Tree.js */

.lil-gui {
	z-index: 2 !important; /* TODO Solve this in HTML */
}

@media all and ( max-width: 640px ) {
	.lil-gui.root { 
		right: auto;
		top: auto;
		max-height: 50%;
		max-width: 80%;
		bottom: 0;
		left: 0;
	}
}

#overlay {
	position: absolute;
	font-size: 16px;
	z-index: 2;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	background: rgba(0,0,0,0.7);
}

	#overlay button {
		background: transparent;
		border: 0;
		border: 1px solid rgb(255, 255, 255);
		border-radius: 4px;
		color: #ffffff;
		padding: 12px 18px;
		text-transform: uppercase;
		cursor: pointer;
	}

#notSupported {
	width: 50%;
	margin: auto;
	background-color: #f00;
	margin-top: 20px;
	padding: 10px;
}

.lightoff {
    background-color: black;
    display: none;
    width: 100%;
    height: 100%;
    position: fixed;
    transition-duration: 0.5s;
}


/* Kontener kafelków */
#portfolio {
    margin-top: 100px;
}
.portfolio {
    display: flex;
    flex-wrap: wrap; /* Kafelki automatycznie przechodzą do kolejnego rzędu */
    gap: 20px;       /* Odstępy między kafelkami */
    justify-content: center; /* Centrowanie kafelków */
    margin: 50px auto;
    padding: 20px;
}

/* Kafelek */
.portfolio-item {
    position: relative;
    width: 500px; /* Szerokość kafelka */
    height: 300px; /* Wysokość kafelka */
    background-size: cover;
    background-position: center;
    background-image: var(--media-url);
    cursor: pointer;
    overflow: hidden;
    border-radius: 10px; /* Zaokrąglenie rogów */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Subtelny cień */
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.portfolio-item:hover {
    transform: scale(1.05); /* Powiększenie kafelka na hover */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4); /* Zwiększenie cienia na hover */
}

/* Nakładka z tekstem */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Przyciemnienie */
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    opacity: 0; /* Ukrycie tekstu domyślnie */
    transition: opacity 0.3s ease-in-out;
}

.portfolio-item:hover .overlay {
    opacity: 1; /* Pokazanie tekstu na hover */
}

/* Obsługa zapętlonych filmów */
.portfolio-item[style*=".mp4"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: black;
}

.portfolio-item[style*=".mp4"] video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}