/* kata szabó - css of my portfolio :) */





/*html & body settings*/

html {scroll-behavior: smooth;}

body{
    padding: 0;
    margin: 0;
    background-color: var(--blue1);
    background-color: var(--blue1);
}




/*root: color palatte, fonts and other constants*/

:root {
    
    --title-font: 'ASVHEN-Italic';
    --main-font: Trebuchet MS, sans-serif;

    --blue1: #f0f9fe;
    --blue2: #d3f0f4;
    --blue3: #a8e1f5;
    --blue4: #45b4eb;
    --blue5: #364e5a;
    --green1: #bce48e;
    --green2: #a4dc5d;
    --green3: #8cc34c;
    --green4: #569e21;
    --green5: #33402c; 

    --rad: 28px;

}





/*fonts*/

@font-face {
    font-family: 'ASVHEN-Italic';
    src: url(fonts/ASVHEN-Italic.ttf);
}





/*animations*/

@keyframes title-shadow-anim {
    from { text-shadow:  0 0 0 rgba(0,0,0,0);}
    to { text-shadow:  0 0 10px rgba(0,0,0,0.3); }
}

@keyframes slide-in-from-right {
    from {opacity: 0; transform: translateX(28px);}
    to {opacity: 1; transform: translateX(0px);}
}

@keyframes fade-in {
    from {opacity: 0;} to {opacity: 1;}
}





/*section settings*/

section {
    height: 100vh;
    box-sizing: border-box;
}

.sub {padding-top: 28px;}

h4{
    font-family: var(--title-font);
    font-size: 48px;
    margin-left: 8%;
    color: var(--blue1);
    -webkit-text-stroke: 24px var(--blue4);
    paint-order: stroke fill;
    transition: transform 0.4s ease;
    width: fit-content;
} 

h4:hover {transform: rotate(-3deg);}

button {
    border: none;
    background-color: transparent;
    cursor: pointer;
}

.switch-div {
    display: flex;
    width: 100vw;
    justify-content:flex-end;
}

.switch-div div {padding: 0 4%;}

.switch-div.cover {
    margin-top: 0;
    justify-content: space-between;
}

.switch-div .next, .switch-div .prev, #eng, #hun {
    margin: 0 8px;
    background-image: url(assets/button-round.png);
    background-size: cover;
    width: 48px;
    height: 48px;
    color: gray;
    -webkit-text-stroke: 3px var(--blue5);
    paint-order: stroke fill;
    filter: drop-shadow(0px 5px 5px var(--blue5));
    text-shadow: 0 3px 4px var(--blue5);
    animation: fade-in 1s ease-in-out 3s backwards;
    transition: transform 0.2s ease;
}

.next:hover, .prev:hover, #eng:hover, #hun:hover { transform: scale(1.1);}

#eng, #hun {
    font-family: var(--title-font);
    background-image: url(assets/button-rounded.png);
    width: 84px;
    height: 32px;
    -webkit-text-stroke: 3px var(--blue5);
    color: var(--blue2);
}

.textbox {
    background-color: rgb(from var(--blue1) r g b / 0.3);
    box-shadow: 0 0 4px 0 lightslategray;
    border-radius: var(--rad);
    padding: 32px;
    width: 480px;
}

h5, h6, p {
    font-family: var(--main-font);
    padding: 0;
    color: var(--blue5);
}

h5 {
    font-size: 24px;
    margin: 0 0 18px 0;
}

h6 {
    font-size: 20px;
    margin: 0 0 8px 0;
    font-style: italic;
}

p {
    font-size: 18px;
    margin: 0 0 24px 0;
    text-align: justify;
}

.project-sections {background-image: url(assets/3sectionsbg.png);}

.text-and-pic {transition: transform 0.4s ease;}

.text-and-pic:hover {transform: scale(1.02);}

.picture-frame, .picture-viewer, .vid-viewer {
    background-size: cover;
    filter: drop-shadow(0 2px 2px var(--blue5));
    width: 540px;
    height: 380px;
    text-align: center;
}

.picture-frame {
    background-image: url(assets/pic-frame.png);
    width: 540px;
    height: 380px;
}

.picture-frame img, .picture-viewer img, .vid-viewer video {
    border-width: 2px;
    border-style: solid;
    border-top-color: gray;
    border-left-color: gray;
    border-bottom-color: lightgray;
    border-right-color: lightgray;
}

.picture-frame img {
    margin-top: 48px;
    width: 468px;
} 
.picture-viewer img {
    margin: 70px 0 30px 0;
    width: 612px;
}

.vid-viewer video { 
    margin: 70px 0 32px 0;
    width: 594px;
    height: 396px;
    object-fit: cover;
    object-position: center;
}

.picture-viewer, .vid-viewer {
    width: 810px;
    height: 570px;
    background-image: url(assets/viewer.png);
}

.picture-viewer div {
    display: flex;
    justify-content: center;
}

.picture-viewer #prev, .picture-viewer #next, .vid-viewer #prev, .vid-viewer #next {
    width: 60px;
    height: 28px;
    background-size: cover;
    font-size: 9px;
    color: var(--blue5);
}

.picture-viewer #prev, .vid-viewer #prev {background-image: url(assets/viewer-prev.png);}
.picture-viewer #next, .vid-viewer #next {background-image: url(assets/viewer-next.png);}

.vid-viewer #start {
    background-image: url(assets/start-btn.png);
    width: 48px;
    height: 48px;
    background-size: cover;
    font-size: 10px;
    color: var(--blue5);
}

.sticker {transition: transform 0.4s ease;}
.sticker:hover {transform: rotate(-8deg);}




/*cover page*/

.cover-section {
    display: grid;
    place-items: center;
    text-align: center;
    background-image: url(assets/bg2.png);
    background-size: cover;
    background-position: bottom;
    height: calc(100vh + 40px); 
}

h1,h2,h3 {
    margin: 0;
    padding: 0;
    font-family: var(--title-font);
}

.title-block {
    cursor: pointer;
    animation: slide-in-from-right 1s ease-in-out backwards;
    transition: transform 0.4s ease;
}

.title-block:hover {transform: rotate(-3deg);}

.title-parent {
    background-image: url(assets/bubble-big.png);
    background-size: cover;
    padding: 56px 96px;
}

h1 {
    font-size:124px;
    color: var(--blue4);
    -webkit-text-stroke: 24px var(--blue1);
    paint-order: stroke fill;
    text-shadow: 0 14px 20px black;
}

.year-parent {
    background-image: url(assets/bubble-green.png);
    background-size: cover;
    max-width: 24%;
    padding: 12px 0;   
    text-align: center;
    margin-left: 136px;
}

h2 {
    font-size: 32px;
    color: var(--blue1);
    -webkit-text-stroke: 6px var(--green4);
    paint-order: stroke fill;
    margin: 0 auto;
    text-shadow: 0 6px 10px var(--green5);;
}

.name-parent {
    background-image: url(assets/bubble-small.png);
    background-size: cover;
    max-width: 30%;
    padding: 24px 0; 
    margin: 30px 12% 0 auto;
    animation: slide-in-from-right 1s ease-in-out 1s backwards;
    transition: transform 0.4s ease;
}

.name-parent:hover {transform: rotate(-3deg);}

h3{
    font-size: 24px;
    color: var(--green4);
    -webkit-text-stroke: 6px var(--blue1);
    paint-order: stroke fill;
    text-shadow: 0 6px 10px var(--green5);
}

.cover-buttons {
    display: flex;
    background-color: var(--blue1);
    border-radius: var(--rad);
    padding: 12px 24px;
    gap: 32px;
    animation: fade-in 1s ease-in-out 2s both;
}

.cover-buttons a {
    font-size: 20px;
    font-family: var(--title-font);
    text-decoration: none;
    color: var(--blue4);
    -webkit-text-stroke: 4px var(--green5);
    paint-order: stroke fill;
    transition: transform 0.2s ease;
}

.cover-buttons a:hover { transform: scale(1.1); }





/*short-about page*/

#short-about {background-color: var(--blue2);}

#usersticker {
    width: 180px;
    position: absolute;
    left: 80px;
    transform: rotate(-4deg);
    transition: transform 0.4s ease;
}

#usersticker:hover {transform: scale(1.1);}

.about-box {
    margin: auto auto;
    width: 86%;
    max-width: 1742px;
    aspect-ratio: 1742 / 752;
    background-image: url(assets/frame-svg.svg);
    background-size: 100% 100%;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    padding: 64px;
    gap: 48px;
}

.about-box .col {
    min-height: 0;
    display: grid;
    gap: 48px;
    
}

.about-box .col.one {grid-template-rows: minmax(0, 1fr) minmax(0, 5fr);}
.about-box .col.two {grid-template-rows: minmax(0, 3fr) minmax(0, 1fr);}
.about-box .col.three {grid-template-rows: minmax(0, 2fr) minmax(0, 1fr);}

.about-box .col > * {
    align-content: center;
    justify-content: center;
}

.about-box h4 {
    text-align: center;
    margin: 0 auto;
    padding: 0;
}

.pic-of-me{
    width: 450px;
    height: 450px;
    transition: transform 0.4s ease;
}

.about-box .content-box {
    background-color: rgb(from var(--blue2) r g b / 0.6);
    border-color: var(--blue3);
    border-style: solid;
    border-width: 2px;
    border-radius: 8px;
    box-shadow: 0 0 8px 0 lightslategray;
    padding: 32px 48px;
    transition: transform 0.4s ease;
}

.pic-of-me:hover, .about-box .content-box:hover {
    transform: scale(1.01);
}






/*projects summary page*/

#projects {
    background-image: url(assets/sectionbg2.png);
    background-size: cover;
    display: flex;
    flex-direction: column;
}

#projects .content {
    display: flex;
    justify-content: space-around;
}

#projects .textbox { 
    width: 380px;
    padding: 24px;
    transition: transform 0.4s ease;
}

#projects .textbox:hover { transform: scale(1.03); }

#projects .textbox.top { 
    width: 300px; 
    padding: 18px 0 4px 80px;
    margin: 0 auto 32px auto;
    position: relative;
}

#projects .folder-img {
    position: absolute;
    width: 110px;
    top: -30px;
    left: -30px;
    transform: rotate(-8deg);
    transition: transform 0.4s ease;
}

#projects .folder-img:hover {
    transform: rotate(-14deg);
}







/*apps page*/

#apps { 
    height: 160%;
    position: relative;
}

#phonesticker{
    position: absolute;
    width: 200px;
    top: 1000px;
    left: 120px;
}

#applesticker {
    position: absolute;
    width: 160px;
    top: 100px;
    left: 1550px;
    rotate: 8deg;
}


#apps .app-holder {position: relative;}
.text-and-pic.app {position: absolute;}
.app-holder .picture-frame, .app-holder .picture-viewer {position: absolute;}

.text-and-pic.app.one {
    top: 0px;
    left: 100px;
}
.text-and-pic.app.one .picture-frame {
    top: 85%;
    left: 25%;
}
.text-and-pic.app.two {
    top: -150px;
    left: 780px;
}
.text-and-pic.app.two .picture-frame {
    top: 85%;
    left: 40%;
}
.text-and-pic.app.three {
    top: 750px;
    left: 450px;
}
.text-and-pic.app.three .picture-viewer {
    top: -75%;
    left: 97%;
}


/*games page*/

#games { 
    height: 180%;
    position: relative;
}

#fishsticker {
    position: absolute;
    width: 260px;
    top: 220px;
    left: 400px;
}

#conssticker {
    position: absolute;
    width: 220px;
    top: 700px;
    left: 40px;
}

#games .game-holder {position: relative;}
.text-and-pic.game {position: absolute;}
.game-holder .picture-frame, .game-holder .vid-viewer, .game-holder .picture-viewer {position: absolute;}

.text-and-pic.game.one {
    top: 150px;
    left: 50px;
}
.text-and-pic.game.one .picture-frame {
    top: 10%;
    left: 97%;
}
.text-and-pic.game.two {
    top: -160px;
    left: 700px;
}
.text-and-pic.game.two .picture-frame {
    top: 10%;
    left: 98%;
}
.text-and-pic.game.three {
    top: 420px;
    left: 1200px;
}
.text-and-pic.game.three .picture-viewer {
    top: 60%;
    left: -175%;
}
.text-and-pic.game.three .vid-viewer {
    top: 90%;
    left: -40%;
}









/*electronics page*/

#electronics { 
    height: 160%; 
    position: relative;
}

#cdsticker {
    position: absolute;
    width: 200px;
    left: 950px;
}

#bfsticker {
    position: absolute;
    width: 220px;
    top: 1150;
    left: 600px;
}

#electronics .electronics-holder {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-around;
}
.electronics-holder .text-and-pic {position: relative;}
.electronics-holder .picture-viewer, .electronics-holder .vid-viewer {position: absolute;}


.text-and-pic.electronics.one .picture-viewer {
    top: 90%;
    left: -10%;
}

.text-and-pic.electronics.one .vid-viewer {
    top: 120%;
    left: 130%;
}












/*other projects page*/

#other-projects .other-holder {position: relative;}
.text-and-pic.other {position: absolute;}
.other-holder .picture-frame {position: absolute;}

.text-and-pic.other.one {
    top: 170px;
    left: 100px;
}
.text-and-pic.other.one .picture-frame {
    top: 20%;
    left: 98%;
}
.text-and-pic.other.two {
    top: -40px;
    left: 750px;
}
.text-and-pic.other.two .picture-frame {
    top: 10%;
    left: 98%;
}


/*contacts page*/

#contact {
    background-image: url(assets/sectionbg4.png);
    background-size: cover;
}

#contact .textbox {
    text-align: center;
    width: 800px;
    margin: 0 auto;
    padding-bottom: 64px;
    transition: transform 0.4s ease;
}
#contact .textbox:hover {transform: scale(1.03);}


#contact .textbox h5{
    margin: 48px 0 24px 0;
}

#contact a {
    text-decoration: none;
    background-color: var(--blue1);
    color: var(--green4);
    border-color: var(--green5);
    padding: 12px 48px;
    border-radius: 32px; 
    font-family: var(--main-font);
    font-weight: bold;
}











/*more about page*/

#more-about {
    background-image: url(assets/sectionbg3.png);
    background-size: cover;
}

#more-about .content {
    display: flex;
    justify-content: space-around;
}

#more-about a {
    text-decoration: none;
    color: var(--green4);
    padding: 6px 12px;
    background-color: var(--blue3);
    border-radius: 20px;
    line-height: 3;
}