* {
    box-sizing: border-box;
}


body{
    margin: 0 auto;
    padding: 0px 0px;
    font-family: Arial, Helvetica, sans-serif;
    overflow-x: hidden;
    background-color: black;
}

header{
    width: 100%;
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

#logo{
    height: 100px;
    width: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.8);
}

#logo h1{
    color: white;
    font-size: 40px;
    text-shadow: 3px 3px 5px rgb(200, 90, 0);
}

#logo span{
    font-size: 50px;
    color: rgb(200, 90, 0);
    text-shadow: 3px 3px 5px white;
}

#header_container1{
    height: 100px;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: white;
}

#header_container2{
    display: none;
    height: 100px;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: right;
}

#menu_button{
    display: flex;
    flex-direction: column;
    border: 2px solid white;
    border-radius: 5px;
    width: 50px;
    height: 50px;
    border-radius: 10px;
    margin-right: 30px; 
    justify-content: center;
    align-items: center;
    gap: 6px;
    transition: all 0.1s;
    background-color: transparent;
}

#menu_button:hover{
    border-color: rgb(200, 90, 0);
    cursor: pointer;
}

#menu_button span{
    height: 5px;
    width: 70%;
    border-radius: 3px;
    border: 1px solid white;
    transition: all 0.3s;
    background-color: white;
}

#menu_button.active span:nth-child(1){
    height: 4px;
    transform: rotate(45deg) translate(7px, 7px);
    background-color: rgb(200, 90, 0);
}

#menu_button.active span:nth-child(2){
    opacity: 0;
}

#menu_button.active span:nth-child(3){
    height: 4px;
    transform: rotate(-45deg) translate(7px, -7px);
    background-color: rgb(200, 90, 0);
}

#header_container3{
    display: none;
    height: 150px;
    width: 100%;
    position: fixed;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.8);
    margin-top: 100px;
    border-top: 1px solid rgb(200, 90, 0);
    z-index: 1000;
}

#header_container3 li{
    padding-top: 10px;
    list-style: none;
}

#header_container3 a{
    color: white;
    text-decoration: none;
}

#header_container3 a:hover{
    font-weight: bolder;
}

#menu_links{
    display: flex;
    flex: 9;
    gap: 15%;
    align-items: center;
    justify-content: center;
}

#menu_links span{
    color: rgb(200, 90, 0);
}

#menu_links a{
    color: white;
    text-decoration: none;
    padding-left: 10px; 
    font-weight: bolder;
}

#menu_links a:hover{
    text-shadow: 0px 0px 5px white;
    font-weight: bolder;
}

#contact_link{
    flex: 1;
    background-color: rgb(200, 90, 0);
    text-align: center;
    height: 50px;
    min-width: 170px;
    margin-right: 5%;
    border-radius: 5px;
    box-shadow: 0px 0px 10px white;
    line-height: 50px;
}

#contact_link a{
    text-decoration: none;
    color: white;
}

#contact_link a:hover{
    font-weight: bolder;
}

#contact_link:active{
    font-weight: lighter;
    box-shadow: none;
}

#main_container{
    height: 100vh;
    width: 100%;
    background-image: url(pictures/background1.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: right 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
    padding-left: 10%;
}

#signature{
    width: 400px;
    height: 460px;
    background-image: url(pictures/signature.png);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    display: flex;
    align-items: end;
    font-size: 20px;
}    

#content{
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

#about{
    width: 90%;
    min-height: 400px;
    display: block;
    text-align: justify;
    background-color: hsla(0, 0%, 0%, 0.2);
    border-radius: 10px;
    margin-top: 100px;
    box-shadow: 0px -3px 1px rgb(188, 188, 188);
    padding: 5%;
}

#about_text{
    padding-top: 30px;
    min-height: 300px;
}

h2, h3{
    text-align: center;
    color: #bebebe;
}

p{
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgb(150, 150, 150);
}

#about_text2{
    display: none;
}

#rotate_pic{
    width:40px;
    height: 10px;
    position: relative;
    left: 90%;
    bottom: 15px;
    cursor: pointer;
}

hr{
    width: 70%;
    border-color: #c85a00;
    box-shadow: 3px 3px 5px rgb(255, 90, 0);
}

#about_text1.visible_off{
    display: none;
}

#about_text2.visible_on{
    display: block;
}

#skills{
    width: 90%;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: hsla(0, 0%, 0%, 0.2);
    border-radius: 10px;
    margin-top: 100px;
    box-shadow: 0px -3px 1px rgb(188, 188, 188);
    padding: 5%;
}

#skills_content{
    padding-top: 50px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    gap: 35px;
}

.skills_text{
    width: 30%;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#frontend, #backend, #tools {
    width: 150px;
    height: 150px;
    border-radius: 100px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0px 0px 10px rgb(188, 188, 188);
    transition: transform 0.4s ease;
    transform-style: preserve-3d;
    backface-visibility: hidden; 
}

.card_text p{
    display: block;
}

#frontend {
    background-image: url(pictures/F.jpg);
}
#backend {
    background-image: url(pictures/B.jpg);
}
#tools {
    background-image: url(pictures/E.jpg);
}

.rotate_pic {
    width: 150px;
    height: 150px;
    perspective: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.rotate_pic:hover #frontend,
.rotate_pic:active #frontend,
.rotate_pic:hover #backend,
.rotate_pic:active #backend,
.rotate_pic:hover #tools,
.rotate_pic:active #tools {
    transform: rotateY(360deg);
}

#skills_other{
    margin-top: 50px;
}

#properties{
    width: 90%;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: hsla(0, 0%, 0%, 0.2);
    border-radius: 10px;
    margin-top: 100px;
    box-shadow: 0px -3px 1px rgb(188, 188, 188);
    padding: 5%;
}

#properties_content{
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 50px;
    gap: 40px;
}

.properties_cardbox{
    width: 90%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px; 
}

.properties_card {
    width: 250px;
    height: 250px;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0px 0px 10px rgb(188, 188, 188);
    cursor: pointer;
}

.pic{
    width: 250px;
    height: 250px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 20px;
}

#precizitas{
    background-image: url(pictures/precizitas.png);
}

#megbizhatosag{
    background-image: url(pictures/megbizhatosag.png);
}

#onallosag{
    background-image: url(pictures/onallosag.png);
}

#logikus{
    background-image: url(pictures/logikus.png);
}

#problema{
    background-image: url(pictures/problema.png);
}

#fejlodes{
    background-image: url(pictures/fejlodes.png);
}

#kommunikacio{
    background-image: url(pictures/kommunikacio.png);
}

#feleloseg{
    background-image: url(pictures/feleloseg.png);
}

.pic_text{
    width: 250px;
    height: 250px;
    padding: 5px;
    text-align: center;
    display: grid;
    place-items: center; 
}

.pic_text p{
    display: flex;
}

.properties_card .pic {
    position: absolute;
    width: 250px;
    height: 250px;
    border-radius: 20px;
    background-size: cover;
    background-position: center;
    transition: opacity 0.6s ease;
}

.properties_card .pic_text {
    position: absolute;
    bottom: -100%;
    width: 250px;
    height: 250px;
    color: white;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 20px;
    transition: bottom 0.6s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.properties_card:hover .pic {
    opacity: 0;
}

.properties_card:hover .pic_text {
    bottom: 0;
}

#projects{
    width: 90%;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: hsla(0, 0%, 0%, 0.2);
    border-radius: 10px;
    margin-top: 100px;
    box-shadow: 0px -3px 1px rgb(188, 188, 188);
    padding: 5%;
}

#projects p{
    margin-top: 50px;
}

#projects_content{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10%;
    width: 90%;
    margin-top: 30px;
}

#projects_content_text{
    width: 40%;
    height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#projects_text{
    width: 100%;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgb(188, 188, 188);
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgb(200, 90, 0);
    padding: 30px;
}

#projects_text p{
    margin: 0px;
}

#projects_buttons{
    display: flex;
    align-items: center;
    gap: 20px;
}

.projects_button{
    width: 50px;
    height: 25px;
    background-color: rgb(200, 90, 0);
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgb(188, 188, 188);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    cursor: pointer;
}


.projects_button:hover span{
    font-size: 25px;
}

.projects_button:active{
    box-shadow: none;
}

.projects_button:active span{
    font-size: 16px;
}

#projects_content_pic{
    width: 300px;
    height: 300px;
    border: 1px solid rgb(188, 188, 188);
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgb(200, 90, 0);
    overflow: hidden;
    position: relative;
}

#projects_pic{
    display: flex;
    width: 900px;
    transition: transform 0.5s ease;
}

#projects_pic1{
    width: 300px;
    height: 300px;
    background-image: url(pictures/number.png);
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 10px;
}

#projects_pic2{
    width: 300px;
    height: 300px;
    background-image: url(pictures/classMoney.png);
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 10px;
}

#projects_pic3{
    width: 300px;
    height: 300px;
    background-image: url(pictures/web.png);
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 10px;
}

footer{
    width: 100%;
    height: 100px;
    background-color: black;
    border-top: 1px solid rgb(200, 90, 0);
}

#up{
    position: fixed;
    bottom: 35px;
    left: 2%;
    z-index: 1000;
    color: rgb(200, 90, 0);
    font-size: 30px;
}

#up:hover{
    font-size: 35px;
}

#social{
    width: 150px;
    background-color: rgba(0, 0, 0);
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgb(200, 90, 0);
    position: fixed;
    bottom: 30px;
    right: 5%;
    display: flex;
    flex: 3;
    justify-content: center;
    padding:15px 10px;
    z-index: 1000;
    gap: 10%;
}

.betu{
    color: white;
    font-weight: bold;
    font-size: 25px;
    text-align: center;
    width: 30px;
    height: 30px;
    text-decoration: none;
}

#git{
    background-image: url(pictures/github.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    width: 30px;
    height: 30px;
}

@media(max-width:1120px){
    #signature{
        width: 330px;
        height: 400px;
        font-size: 15px;
    }  
}

@media(max-width: 1024px){
    #header_container1{
        display: none;
    }

    #header_container2{
        display: flex;
    }

    #header_container3.show{
        display: block;
    }

    #main_container{
        background-size: cover;
        background-position: right 100px;
    }

    #signature{
        width: 200px;
        height: 230px;
        font-size: 10px;
    }

    #projects_content{
        flex-direction: column;
        gap: 20px;
    }

    #projects_content_text{
        width: 300px;
    }
}

@media(max-width: 900px){
    #main_container{
        background-size: cover;
        background-position: left -300px top 100px;
    }

    #signature{
        width: 200px;
        height: 230px;
        font-size: 10px;
    }

    #skills_other{
        justify-items: left;
    }

    #skills_other h2{
        text-align: center;
        width: 100%;
    }
}

@media(max-width: 768px){
    #main_container{
        background-position: left -450px top 100px;
        padding-left: 5%;
    }

    #signature{
        margin-top: 300px;
        width: 200px;
        height: 230px;
        font-size: 10px;
    }
}

@media(max-width: 560px){
    #main_container{
        background-position: left -575px top 50px;
        padding-left: 5%;
    }

    #signature{
        margin-top: 320px;
        width: 200px;
        height: 230px;
        font-size: 10px;
    }
}