*{
    --font-primery: 'Inspiration', 'Tahoma', 'Geneva', 'Verdana', 'sans-serif';
    --font-secondary: 'SyneMono', 'GlassAntiqua', 'Tahoma', 'Geneva', 'Verdana', 'sans-serif';
    margin: 0;
    padding: 0;
    font-size: 16px;
    font-weight: 400;   
}

@font-face {
	font-family: Inspiration;
	src: url(font/Inspiration-Regular.ttf) format("truetype");
	}
@font-face {
    font-family: GlassAntiqua;
    src: url(font/GlassAntiqua-Regular.ttf) format("truetype");
}
@font-face {
    font-family: SyneMono;
    src: url(font/SyneMono-Regular.ttf);
}


body{
    min-height: 100vh;
    background-image: url('img/tlo.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: top right;
    background-attachment: fixed;
    font-family: var(--font-secondary);
}

nav{
    background-color: white;
    box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.1);
    padding-top: 2rem;
}

nav ul{
    width: 100%;
    list-style: none;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

nav li{
    min-height: 3rem;

}

nav a{
    height: 100%;
    padding: 0 2rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    color: black;
    font-size: 1.5rem;
}

nav a:hover{
    background-color: #f0f0f0;
}

nav li:first-child{
    margin-right: auto;
}

.sidebar{
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 300px;
    z-index: 999;
    background-color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    box-shadow: -10px 0 10px rgba(0, 0, 0, 0.1);
    display: none;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    font-size: 1rem;
}

.sidebar li{
    width: 100%;
}

.sidebar a{
    width: 100%;
}

.menu-button{
    display: block;
}

h1{
    font-family: var(--font-secondary);
    padding-top: 1rem;
    padding-bottom: 1rem;
    text-align: center;
    font-size: 4rem;
    font-weight: 900;
}
h2{
    font-family: var(--font-secondary);
    padding-top: 1rem;
    padding-bottom: 1rem;
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
}

h3{
    font-family: var(--font-secondary);
    padding-top: 1rem;
    padding-bottom: 1rem;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
}

h5{
    font-family: var(--font-secondary);
    padding-top: .5rem;
    font-size: .75rem;
    font-weight: 700;
}

section{
    margin: 1rem;
    padding: 1rem;
    max-width: 60rem;
    display: block;
    margin-inline: auto;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.1));
    backdrop-filter: blur(0.75rem);
    -webkit-backdrop-filter: blur(0.75rem); 
    border-radius: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: rgba(0, 0, 0, 0.45) 1.25rem 1.5rem 2rem -2rem;
    overflow: hidden;
}

.about{
    display: flex;
    flex-wrap: wrap;
    flex-flow: center;
    flex-shrink: 2;
    flex-direction: row;
    column-gap: 1rem;
    row-gap: 1rem;
}

.first{
    flex-basis: 100%;
}

.second{
    flex-basis: 30%;
}
.third{
    flex-basis: 60%;
}


/* .about p{
    float: right;
    max-width: 65%;
}
*/
.about img{
    max-width: 300px;
}

.services-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    place-content: start center;
    column-gap: 1rem;
    row-gap: 1rem;
    flex-basis: 30%;
}

.service {
    margin: 0.5rem;
    padding: 1rem 0.75rem 1rem;
    border-radius: 1.25rem;
    max-width: 28%;
    text-align: left;
    box-shadow: rgba(0, 0, 0, 0.45) 1.25rem 1.5rem 2rem -2rem;
  }

.scroll-to-top {
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    display: none;
    cursor: pointer;
    z-index: 999;
}

.scroll-to-top img {
    width: 4rem;
    height: 4rem;
}

.contact-text {
	/* margin: 0 auto; */
	text-align: center;
    display: block;
}

form {
    font-family: var(--font-secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
	}

input,
textarea {
	min-width: 30rem;
	padding: 1rem;
	margin-bottom: .5rem;
	border: 0 solid #ccc;
	border-radius: .25rem;
    font-family: var(--font-secondary);
    font-size: .875rem;
	}


button {
	background: linear-gradient(135deg, rgba(13, 192, 233, 0.9), rgba(10, 109, 239, 0.95));
	color: #fff;
	padding: .5rem 2rem;
	border: none;
	border-radius: 1.25rem;
	cursor: pointer;
    display: block;
    margin-inline: auto;
    font-family: var(--font-secondary);
}

button:hover {
	background-color: rgba(3,80,120,0.9);

}

.footer{
    text-align: center;
    font-weight: 900;
}

.footer p{
    font-size: 1rem;
}

.nag {
    width:100px;
    height:100px;
    position: absolute;
    top: 5px;
    left: 5px;
    z-index: 1;
}

#perspektywa {
    width:75px;
    height:75px;
    margin:0 auto;
    perspective:150px;
}
  
#cube {
    width:100%;
    height:100%;
    top: 30px;
    left: 20px;
    position: relative;
    transform-style: preserve-3d;
    animation: obrot 5s infinite;
    
}
  
#cube > div {
    width: 100%;
    height: 100%;
    position: absolute;
    background-image: linear-gradient(180deg ,rgba(3,80,120,0.9),rgba(250,250,255,0.6));
    box-shadow:0 0 4px white;
}
  
#przod {
    transform:translateZ(37.5px);
    text-align: center;

}
  
#tyl {
    transform:translateZ(-37.5px);
}
  
#lewo {
    transform:rotateY(-90deg) translateZ(37.5px);
}
  
#prawo {
    transform:rotateY(90deg) translateZ(37.5px);
}
  
#gora {
    transform:rotateX(-90deg) translateZ(37.5px);
}
  
#dol {
    transform:rotateX(90deg) translateZ(37.5px);
}
  
@keyframes obrot {
    0% { transform:rotateX(0) rotateZ(0); }
    100% { transform:rotateX(360deg) rotateZ(360deg); }
}
.menu-button{
    display: none;
}

@media(max-width: 62rem){
    .hideOnMobile{
        display: none;
    }
    .menu-button{
        display: block;
    }
    .hero,
    .about,
    .services,
    .contact,
    .footer{
        margin-left: 1rem;
        margin-right: 1rem;
    }
    .second{
        flex-basis: 95%;
    }
    .third{
        flex-basis: 95%;
    }
    .about img{
        max-width: 95%;
    }
    .service{
        flex-direction: column;
    }
    .services-list {
        flex-basis: 95%;
    }
    .service{
        max-width: 65%;
    }
}

@media(max-width: 500px){
    .sidebar{
        width: 100%;
    }
}

















