*{
    margin: 0;
    padding: 0;
}

body{
    min-height: 100vh;
    display: grid;
    grid-template-columns: 300px 1fr;
    grid-template-rows: auto 1fr auto;
    grid-template-areas: 
    "navbar navbar"
    "sidebar main"
    "sidebar footer";
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}

h1{
    text-align: center;
}

p{
    text-align: center;
    margin: 20px;
}

i{
    cursor: pointer;
}

a{
    text-decoration: none;
    color: black;
}

a:hover{
    color: white;
}

nav{
    top: 0;
    position: sticky;
    grid-area: navbar;
    background-color: #333;
    color: white;
    padding: 1em;
    font-size: 20px;
}

aside{
    height: calc(100vh - 62.33px);
    top: 62.33px;
    position: sticky;
    align-self: start;
    grid-area: sidebar;
    background-color: grey;
}

main{
    grid-area: main;
    background-color: white
}

footer{
    grid-area: footer;
    background-color: #333;
    padding: 1em;
    color: white;
}

.box1{
    text-align: center;
    background-color: whitesmoke;
    margin: 10px;
    border-radius: 20px;
    padding: 5px;
}

.contact-form{
padding: 10px;
background-color: whitesmoke;
width: 400px;
border-radius: 24px;
margin: 10px;
display: flex;
flex-wrap: wrap;
justify-content: center;
}

.contact-box{
display: flex;
flex-direction: column;
margin: 20px 0;
}
.contact-form label{
margin-bottom: 10px;
font-size: 22px;
}

.contact-form input,
.contact-form textarea,
.contact-form button{
padding: 15px;
font-size: 16px;
border: 2px solid hsl(0, 0%, 67%);
border-radius: 12px;
}

.contact-form textarea{
resize: vertical;
}

.contact-form button{
padding: 12px;
width: 100%;
cursor: pointer;
}

.contact-form button:hover{
color: #fff;
background-color: hsl(220, 100%, 50%);
}

.siatka-projektow {
  display: flex; 
  flex-wrap: wrap;
  gap: 20px; 
  padding: 20px;
  justify-content: center;

}

.kafelek {
  background-color: #f0f0f0;
  padding: 40px;
  text-align: center;
  font-weight: bold;
  font-size: 20px;
  cursor: pointer;
  border-radius: 20px;
  transition: all 0.3s ease-in-out;
  width: 90%;
}

.kafelek a{
  text-decoration: none;
  color: black;
}

.kafelek:hover{
  transform: scale(1.05);
}

.zigzak {
    position: relative;
    transform-style: preserve-3d;
    animation: zigzag 20s linear infinite;
    will-change: transform;
}


.zigzak i {
    position: absolute;
    top: 50%;
    left: 50%;
    display: inline-block;

    font-size: 72px;
    font-weight: 900;
    font-family: Arial, sans-serif;

    color: hsl(200 100% calc(30% + var(--i) * 2%));
    text-shadow:
        0 0 5px rgba(0, 200, 255, 0.4),
        0 0 15px rgba(0, 200, 255, 0.3);

    transform: translate3d(-50%, -50%, calc(var(--i) * 3px));
}


@keyframes zigzag {
    0% {
        transform: rotateY(0deg) rotateX(25deg);
    }
    100% {
        transform: rotateY(360deg) rotateX(25deg);
    }
}


@media(max-width: 600px){
    body{
        grid-template-columns: 1fr;
    }

    aside{
        position: fixed;
        width: 300px;
        display: none;
    }

    .show{
        display: block;
    }

    footer{
        width: auto;
    }

    .contact-form{
        width: auto;
    }
}