@import url('https://fonts.googleapis.com/css2?family=Jersey+15&family=Lexend+Zetta:wght@100..900&display=swap');

* {
    margin: 0;
    padding: 0;
    color: #ebebeb;
    background-color: #3f2424;
    font-family: 'Lexend Zetta', Courier, monospace;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* ----------HEADER---------- */
header {
    width: 100%;
    height: 100vh;
    background-image: url(materialy/main_large2.png);
    background-size: cover;
    background-position: center;
}

.container {
    background: transparent;
    padding: 10px 10%;
}

nav {
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.logo {
    background: transparent;
    width: 300px;
    padding-top: 20px;
}

nav ul {
    background-color: transparent;
}

nav ul li {
    display: inline-block;
    list-style: none;
    margin: 10px 20px;
}

nav ul li a {
    color: #ebebeb;
    text-decoration: none;
    font-size: 20px;
    position: relative;
}

nav ul li a::after {
    content:  '';
    width: 0;
    height: 3px;
    background: #fceb8d;
    position: absolute;
    left: 0;
    bottom: -6px;
    transition: 0.5s;
}

nav ul li a:hover::after {
    width: 100%;
}

.header-text {
    background: transparent;
    margin-top: 20%;
    font-size: 30px;
}

.header-text p {
    color: #fceb8d;
    background: transparent;
    margin-right: 20%;
}

.header-text h1 {
    background: transparent;
    color: #ec6c6c;
    font-size: 50px;
    margin-top: 20px;
    margin-right: 40%;
}

.header-text h1 span {
    background: transparent;
    color: #fceb8d;
}

.no-bg {

    background: transparent;
}

/* ----------PROFIL---------- */
#profil {
    padding: 80px 0;

}

.row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.info-ja span {
    color: #fceb8d;
}

.profil-col-1 {
    flex-basis: 35%;
}

.profil-col-1 img {
    width: 100%;
    border-radius: 15px;
}

.profil-col-2 {
    flex-basis: 60%;
}

.sub-title {
    font-size: 50px;
    font-weight: 600;
}

.tab-titles {
    display: flex;
    margin: 20px 0px 40px;
}

.tab-titles p {
    font-size: 20px;
}

.tab-links {
    margin-right: 50px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
}

.tab-links::after {
    content: '';
    width: 0;
    height: 3px;
    background: #fceb8d;
    position: absolute;
    left: 0;
    bottom: -8px;
    transition: 0.5s;
}

.tab-links.active-link::after {
    width: 50%;
}

.tab-contents ul li {
    list-style: none;
    margin: 20px 0;
}

.tab-contents ul li span {
    color: #fceb8d;
    font-size: 20px;
}

.tab-contents {
    display: none;
}

.tab-contents.active-tab {
    display: block;
}

/* ----------NÁSTROJE---------- */
#nastroje {
    padding: 0px 5px;
}

.nastroje-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 40px;
    margin-top: 50px;
}

.nastroje-list div  {
    background-color: #834646;
    padding: 40px;
    font-size: 13px;
    font-weight: 300;
    border-radius: 10px;
    transition: background-color 0.5s, transform 0.5s;
}

.nastroje-list div i {
    background-color: transparent;
    font-size: 25px;
    margin-bottom: 30px;
}

.nastroje-list div h2 {
    background-color: transparent;
    font-size: 25px;
    font-weight: 500;
    margin-bottom: 15px;
}

.nastroje-list div a {
    background-color: transparent;
    text-decoration: none;
    color: #fceb8d;
    font-size: 12px;
    margin-top: 20px;
    display: inline-block;
}

.nastroje-list div p {
    background-color: transparent;
}

.nastroje-list div:hover {
    background-color: #fceb8d;
    color: #3f2424;
    transform: translateY(-10px);
}

.nastroje-list div:hover i,
.nastroje-list div:hover h2,
.nastroje-list div:hover p {
    color: #3f2424;
}

.nastroje-list div:hover a {
    color: #834646;
}

/* ----------PRÁCE---------- */
#meprace {
    padding: 50px 5px;

}

.work-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 40px;
    margin-top: 5px;
}

.work {
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.work img {
    width: 100%;
    border-radius: 10px;
    display: block;
    transition: transform 0.5s;
}

.layer {
    width: 100%;
    height: 0;
    background: linear-gradient(rgba(0,0,0,0.6), #fceb8d);
    border-radius: 10px;
    position: absolute;
    left: 0;
    bottom: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 40px;
    text-align: center;
    font-size: 14px;
    transition: height 0.5s;
}

.layer h3 {
    background-color: transparent;
    font-weight: 500;
    margin-bottom: 20px;
}

.layer a {
    margin-top: 20px;
    text-decoration: none;
    font-size: 18px;
    line-height: 60px;
    background-color: #ebebeb;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
}

.layer a i:hover {
    color: #3f2424;
}

.layer p {
    background-color: transparent;
}

.layer a i {
    background-color: transparent;
    color: #3f2424;
}

.work:hover img {
    transform: scale(1.1);
}

.work:hover .layer {
    height: 100%;
}

/* ----------KONTAKT---------- */
#kontakt {
    padding: 0px 0px;
}

.contact-left {
    flex-basis: 35%;
}

.contact-left p {
    margin-top: 30px;
}

.contact-left p i {
    color: #fceb8d;
    margin-right: 15px;
    font-size: 25px;
}

.contact-right {
    flex-basis: 60%;
}

.social-icons {
    margin-top: 30px;
}

.social-icons a i {
    text-decoration: none;
    font-size: 30px;
    margin-right: 15px;
    display: inline-block;
    transition: transform 0.5s;
}

.social-icons a i:hover {
    color: #fceb8d;
    transform: translateY(-5px);
}

.btn p {
    display: block;
    margin: 50px 0;
    width: fit-content;
    border: 1px solid #fceb8d;
    padding: 14px 50px;
    border-radius: 6px;
    text-decoration: none;
    color: #ebebeb;
    transition: background-color 0.5s;
}

.btn a {
    text-decoration: none;
}

.btn p:hover {
    background-color: #fceb8d;
    color: #3f2424;
}

.contact-right form {
    width: 100%;
    margin-top: 20px;
}

form input, form textarea {
    width: 100%;
    border: 0;
    outline: none;
    background-color: #834646;
    padding: 15px;
    margin: 15px 0;
    color: #ebebeb;
    font-size: 18px;
    border-radius: 6px;
}

footer {
    width: 100%;
    text-align: center;
    background: #834646;
    font-weight: 300;
}

footer p {
    background-color: transparent;
    padding: 10px;
    margin: 0;
}

nav .fa-solid {
    display: none;
    background: transparent;
}

#msg {
    color: #fceb8d;
    margin-top: -40px;
    display: block;
}



/* ----------RESPONZIVITA---------- */
@media only screen and (max-width: 600px) {
/* ----------HEADER---------- */
.logo {
    width: 200px;
}

header {
    background-image: url(materialy/main_medium.png);
    display: flex;
    align-items: flex-start;
    padding-top: 0;
    height: 850px;
}

.header-text {
    margin-top: 200px;
    font-size: 25px;
}

.header-text h1 {
    font-size: 30px;
}

nav .fa-solid {
    display: block;
    font-size: 25px;
}

nav ul {
    background: #834646;
    position: fixed;
    top: 0;
    right: -200px;
    width: 200px;
    height: 100vh;
    padding-top: 50px;
    z-index: 20;
    transition: right 0.5s;
}

nav ul li {
    display: block;
    margin: 25px;
}

nav ul li a {
    font-size: 15px;
}

.rozbaleni {
    color: #fceb8d;
    padding-right: 40px;
}

.rozbaleni:hover {
    color: #ebebeb;
}

.zabaleni:hover {
    color: #fceb8d;
}

nav ul .fa-solid {
    position: absolute;
    top: 25px;
    left: 25px;
    cursor: pointer;
}

/* ----------PROFIL---------- */
.sub-title {
    font-size: 30px;
}

.profil-col-1 {
    flex-basis: 80%;
    margin-bottom: 30px;
    margin: auto;
}

.profil-col-1 img {
    content: url("materialy/profil_small.png");
}

.profil-col-2 {
    flex-basis: 80%;
    font-size: 14px;
}

.tab-titles {
display: block;
margin: 20px 0 40px;
}

.tab-titles p {
    font-size: 16px;
}

.tab-links.active-link::after {
width: 20%;
}

.tab-links {
    font-size: 16px;
    margin-right: 20px;
}

.tab-links p {
    flex-wrap: wrap;
}

/* ----------NÁSTROJE---------- */
.nastroje-list {
    width: 80%;
    margin: auto;
}

.nastroje-list div {
    width: 85%;
}

.nastroje-list div h2 {
    font-size: 12px;
}

.napravo {
    justify-self: end;
}

.nalevo {
    justify-self: start;
}

/* ----------PRÁCE---------- */
.layer a  {
    font-size: 12px;
}

.work {
    width: 80%;
    margin: auto;
}

/* ----------KONTAKT---------- */
.contact-left, .contact-right {
    flex-basis: 100%;
}

.contact-left p {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

form input, form textarea {
    width: 70%;
    margin: 10px 15% auto;
}

.btn p {
    margin: 10px;
    padding: 10px;
    font-size: 12px;
}

footer {
    margin: 0;
    padding: 0;
}

footer p {
    font-size: 10px;
    padding: 10px;
}
}





/* ----------RESPONZIVITA---------- */
@media only screen and (max-width: 300px) {
/* ----------HEADER---------- */
.logo {
    width: 100px;
}

header {
    background-image: url(materialy/main_small.png);
    display: flex;
    align-items: flex-start;
    padding-top: 0;
    height: 400px;
}

.header-text {
    margin-top: 100px;
    font-size: 10px;
}

.header-text h1 {
    font-size: 15px;
}

.sub-title {
    font-size: 20px;
}

.work {
    margin: 10px;
    width: 50%;
}

form input, form textarea {
    width: 90%;
    margin: 10px 5% auto;
}

footer p {
    padding: 5px;
}

}