/* basic info */
.hid{
    display:none !important;
}
/* text adjustment */
h1{
    color:rgb(15, 63, 161);
}
h2{
    color:rgb(3, 3, 20);
    text-align: center;
    z-index:2;
    background-color: rgba(141, 214, 240,0.5);
}
h3{
    color:rgb(21, 208, 228);
    text-align: center;
}
h4{
    text-align: center;
}
.life h4{
    color:rgb(37, 94, 44);
}
.contact{
    background-color: rgb(175, 168, 209);
    border: 5px solid rgb(63, 58, 87);
    box-sizing: border-box;
    margin:10px;
}
.diary{
    background-color: rgb(173, 202, 182);
    border: 5px solid rgb(58, 87, 67);
    box-sizing: border-box;
    margin:10px;
}
.fin_prj{
    background-color: rgb(141, 240, 156);
    border: 5px solid rgb(0, 78, 38);
    z-index:1;
    margin:10px;
}
.ing_prj{
    background-color: rgb(235, 240, 141);
    border: 5px solid rgb(78, 56, 0);
    z-index:1;
    margin:10px;
}
.not_prj{
    background-color: rgb(240, 167, 141);
    border: 5px solid rgb(78, 17, 0);
    z-index:1;
    margin:10px;
}
.fin_prj.h4,.fin_prj.h5{
    padding:0px;
    margin:0px;
}
/* basic-typesettings */
.intro,.project,.life,.contacts{
    display:flex;
    flex-direction: column;
    text-align: center;
}
/* toolbar-type */
.top_right{
    position:fixed;
    top:0;
    right:0;

    padding-top: 10px;
    padding-right:10px;

    display:flex;
    flex-direction: row;
    justify-content: flex-end;
    width:100%;
    gap:15px;

    background-color: wheat;
    margin:0;
    z-index: 10;

    transform:translateY(0);
    transition:transform 0.3s ease;
}
.top_right.bar_hidden{
    transform:translateY(-100%);
}

.top_right.first_bar_hidden{
    transition:none;
    transform:translateY(-100%);
}

.pg_text{
    padding-top:0;
    transition: padding-top 0.3s ease;
}
.pg_text.bar_space{
    padding-top: var(--bar-height,0px); 
    /* i could say there's a better way to change the height and actually this one have some bugs */
}
/* front_pg-type */
.front_pg{
    display:flex;
    justify-content: center;
    align-content: center;
    align-items:center;
}
h1.front_pg{
    margin-bottom:10px;
}
.front_pg_container{
    display:flex;
    flex-direction:column;
    justify-content: center;
    align-content: center;
    align-items:center;
    height:100vh;
}
/* pg1-type */
.other{
    display:flex;
    flex-direction: row;
    flex-wrap:wrap;
    justify-content: space-around;
}
.other h4{
    box-sizing: border-box;
    width:30%;
    color:rgb(0, 0, 0);
    line-height: 50px;
    border: 5px solid rgb(0, 0, 78);
    background-color: rgb(141, 214, 240);
}
.intro h4{
    color:rgb(0, 0, 0);
    line-height: 50px;
    border: 5px solid rgb(0, 0, 78);
    background-color: rgb(141, 214, 240);
}
a{  
    position:relative;
}
button{
    border:none;
    border-radius:10px;
}
.url{
    background-color: rgb(165, 172, 182);
}



/* text fade in animate */
.fade_in{
    opacity:0;
    transform:translateY(30px);
    transition:opacity 0.3s ease,transform 0.5s ease;
}
.fade_in.visible{
    opacity: 1;
    transform: translateY(0);
}
.fade_in_topic{
    opacity:0;
    transform:translateX(-50%);
    transition:opacity 0.3s ease,transform 0.8s ease-in-out;
}
.fade_in_topic.visible{
    opacity: 1;
    transform: translateX(0);
}
.scroll_container{
    position: relative;
}
#scroll_up,#scroll_down{
    position:fixed;
    right:5%;
    z-index:3;
}
.front_pg_container{
    z-index: 1;
    position:relative;
}
.wave{
    position:absolute;
    margin:0;
    top:390px;
    left:0;
    width:100%;
    height:100%;
    background:url("wave.png");
    background-position:0px 0px;
    background-size: 150px;
    background-repeat: repeat-x;
    animation:moving_wave 1s linear infinite;
    z-index:0;
}
.otherwave{
    position:absolute;
    margin:0;
    top:455px;
    left:0;
    width:100%;
    height:100%;
    background:url("otherwave.png");
    background-position:0px 0px;
    background-repeat: repeat;
    z-index:-1;
}
@keyframes moving_wave{
    0%{background-position-x:0px;
    z-index:0;}
    100%{background-position-x:150px;
    z-index:0;}
}
body{
    margin:0;
    padding:0;
    position:relative;
}
.pg_btn button{
    background-color: rgb(138, 215, 241);
}
button:hover{
    opacity:90%;
}