/* Imports */
@import url('https://fonts.googleapis.com/css2?family=Dela+Gothic+One&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Exo+2:ital,wght@0,100..900;1,100..900&display=swap');

#main {
    margin: auto;
    text-align: center;
}

#title {
    margin: auto;
    padding: 1em;
    background-color: rgba(66, 5, 5, 0.616);
}

#title h1 {
    color: white;
    font-family: "Dela Gothic One", sans-serif;
    font-weight: 400;
    font-style: normal;
    animation: title-load 800ms ease-out;
}

#title h3 {
    display: block;
    margin-top: -4.5%;
    font-family: "Dela Gothic One", sans-serif;
    font-weight: 1;
    font-style: normal;
    color: rgb(179, 179, 179);
    animation: title-load 700ms ease-out;
}

#personal {
    float: left;
    margin-top: 1em;
    margin-left: 1em;
    padding: 1em;
    background-color: antiquewhite;
    border-radius: 10px;
    width: 30em;
    height: 15em;
    transform: translateX(-700%);
    animation-fill-mode: forwards;
    animation-name: card-load;
    animation-duration: 800ms;
    animation-timing-function: ease-out;
    animation-delay: 800ms;
}

#personal i {
    margin: 0.5em;
    color: grey;
}

#personal h3 {
    font-family: "Dela Gothic One", sans-serif;
    font-weight: 1;
    font-style: normal;
    text-align: left;
    margin-left: 1em;
}

#personal p {
    position: relative;
    text-align: left;
    margin-top: -1em;
    margin-left: 2.5em;
    margin-bottom: 1.5em;
    font-family: "Exo 2", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
}

#study {
    float: left;
    position: absolute;
    margin-left: 36%;
    margin-top: 1em;
    text-align: center;
    padding: 1em;
    background-color: antiquewhite;
    border-radius: 10px;
    width: 30em;
    height: 15em;
    transform: translateX(-700%);
    animation-name: card-load;
    animation-fill-mode: forwards;
    animation-duration: 700ms;
    animation-timing-function: ease-out;
    animation-delay: 800ms;
}

#study i {
    margin: 0.5em;
    color: grey;
}

#study h3 {
    font-family: "Dela Gothic One", sans-serif;
    font-weight: 1;
    font-style: normal;
    text-align: left;
    margin-left: 1em;
}

#study p {
    position: relative;
    text-align: left;
    margin-top: -1em;
    margin-left: 3.0em;
    margin-bottom: 1.5em;
    font-family: "Exo 2", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
}

#work {
    float: right;
    margin-top: 1em;
    margin-right: 1em;
    padding: 1em;
    background-color: antiquewhite;
    border-radius: 10px;
    width: 30em;
    height: 15em;
    transform: translateX(-700%);
    animation-fill-mode: forwards;
    animation-name: card-load;
    animation-duration: 600ms;
    animation-timing-function: ease-out;
    animation-delay: 800ms;
}

#work i {
    margin: 0.5em;
    color: grey;
}

#work h3 {
    font-family: "Dela Gothic One", sans-serif;
    font-weight: 1;
    font-style: normal;
    text-align: left;
    margin-left: 1em;
}

#work p {
    position: relative;
    text-align: left;
    margin-top: -1em;
    margin-left: 3.0em;
    margin-bottom: 1.5em;
    font-family: "Exo 2", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
}

.button1 {
    margin-top: 6.5em;
}

.button1 a:hover {
    cursor: pointer;
    color: grey;
}

.button1 a {
    text-decoration: none;
    color: black;
}

.button1 a:hover i {
    animation: know-more 1s ease;
    animation-iteration-count: infinite;
}

.button2 {
    margin-top: 5em;
}

.button2 a:hover {
    cursor: pointer;
    color: grey;
}

.button2 a:hover i {
    animation: know-more 1s ease;
    animation-iteration-count: infinite;
}

.button2 a {
    text-decoration: none;
    color: black;
}

#image_main img {
    margin-top: 1em;
    width: 100%;
    height: 500px;
    object-fit: cover;
    position: relative;
    text-align: center;
    opacity: 0;
    animation: image-load 1200ms ease-out;
    animation-delay: 800ms;
    animation-fill-mode: forwards;
}

#study_explain h3 {
    background-color: antiquewhite;
    font-family: "Dela Gothic One", sans-serif;
    font-weight: 1;
    font-style: normal;
    font-size: 2em;
}

#study_explain p {
    font-family: "Exo 2", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    margin-left: 30%;
    margin-right: 30%;
}

#extra h3 {
    font-family: "Dela Gothic One", sans-serif;
    font-weight: 1;
    font-style: normal;
    font-size: 2em;
}

#extra p {
    font-family: "Exo 2", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
}

#extra h4 {
    font-family: "Dela Gothic One", sans-serif;
    font-weight: 1;
    font-style: normal;
}

#hobby {
    /*float: left;*/
    display: inline-block;
    margin-left: 2em;
    width: 20em;
    background-color: antiquewhite;
    border-radius: 10px;
    padding: 1em;
    height: 21em;
}

#funfact {
    /*float: left;*/
    display: inline-block;
    margin-left: 2em;
    width: 20em;
    background-color: antiquewhite;
    border-radius: 10px;
    padding: 1em;
    height: 21em;
}

#diploma {
    /*float: left;*/
    display: inline-block;
    margin-left: 2em;
    width: 20em;
    background-color: antiquewhite;
    border-radius: 10px;
    padding: 1em;
    height: 21em;
}

#diploma i {
    margin-right: 0.5em;
}

#diploma a {
    padding: 0.5em;
    text-decoration: none;
    color: black;
    font-family: "Exo 2", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
}

#diploma a:hover i {
    color: grey;
    animation: download-bounce 2s ease;
    animation-iteration-count: infinite;
}

#diploma a:hover {
    color: grey;
}

#end {
    font-family: "Exo 2", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
}

#end p {
    margin-bottom: 2em;
}

.button3 {
    transition-duration: 300ms;
    border-radius: 10px;
    margin: 1em;
    background-color: antiquewhite;
    padding: 0.7em;
    font-family: "Exo 2", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    text-decoration: none;
    color: black;
}

.button3 a {
    transition-duration: 300ms;
    text-decoration: none;
    color: black;
}

.button3 i {
    position: absolute;
    transition-duration: 300ms;
    margin-left: 0.5em;
    color: grey;
    opacity: 0;
    transform: translateX(-20%);
}

.button3:hover i {
    transition-duration: 300ms;
    opacity: 1;
    position: relative;
    transform: translateX(0);
}

@keyframes title-load {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(0);
    }
}

@keyframes card-load {
    0% {
        transform: translateX(-300%);
    }

    100% {
        transform: translateX(0);
    }
}

@keyframes image-load {
    0% {
        opacity: 0;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

@keyframes download-bounce {
    0% {
        transform: translateY(0);
    }
    25% {
        transform: translateY(-10%);
    }
    50% {
        transform: translateY(10%);
    }
    100% {
        transform: translateY(0);
    }
}

@keyframes know-more {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(100%);
    }
    55% {
        opacity: 0;
    }
    60% {
        transform: translateY(0);
    }
    100% {
        opacity: 1;
    }
}

/* RESPONSIVE */
@media (max-width: 1366px) {
    
    #title h3 {
        display: block;
        margin-top: -2.5%;
        font-family: "Dela Gothic One", sans-serif;
        font-weight: 1;
        font-style: normal;
        color: rgb(179, 179, 179);
        animation: title-load 700ms ease-out;
    }

    #personal {
        float: left;
        margin-top: 1em;
        margin-left: 1em;
        padding: 1em;
        background-color: antiquewhite;
        border-radius: 10px;
        width: 25em;
        height: 15em;
        transform: translateX(-700%);
        animation-fill-mode: forwards;
        animation-name: card-load;
        animation-duration: 800ms;
        animation-timing-function: ease-out;
        animation-delay: 800ms;
    }

    #study {
        float: left;
        position: absolute;
        margin-left: 33.5%;
        margin-top: 1em;
        text-align: center;
        padding: 1em;
        background-color: antiquewhite;
        border-radius: 10px;
        width: 25em;
        height: 15em;
        transform: translateX(-700%);
        animation-name: card-load;
        animation-fill-mode: forwards;
        animation-duration: 700ms;
        animation-timing-function: ease-out;
        animation-delay: 800ms;
    }

    #work {
        float: right;
        margin-top: 1em;
        margin-right: 1em;
        padding: 1em;
        background-color: antiquewhite;
        border-radius: 10px;
        width: 25em;
        height: 15em;
        transform: translateX(-700%);
        animation-fill-mode: forwards;
        animation-name: card-load;
        animation-duration: 600ms;
        animation-timing-function: ease-out;
        animation-delay: 800ms;
    }

}

@media (max-width: 1536px) {
    
    #title h3 {
        display: block;
        margin-top: -2.2%;
        font-family: "Dela Gothic One", sans-serif;
        font-weight: 1;
        font-style: normal;
        color: rgb(179, 179, 179);
        animation: title-load 700ms ease-out;
    }

    #personal {
        float: left;
        margin-top: 1em;
        margin-left: 1em;
        padding: 1em;
        background-color: antiquewhite;
        border-radius: 10px;
        width: 25em;
        height: 15em;
        transform: translateX(-700%);
        animation-fill-mode: forwards;
        animation-name: card-load;
        animation-duration: 800ms;
        animation-timing-function: ease-out;
        animation-delay: 800ms;
    }

    #study {
        float: left;
        position: absolute;
        margin-left: 34.7%;
        margin-top: 1em;
        text-align: center;
        padding: 1em;
        background-color: antiquewhite;
        border-radius: 10px;
        width: 25em;
        height: 15em;
        transform: translateX(-700%);
        animation-name: card-load;
        animation-fill-mode: forwards;
        animation-duration: 700ms;
        animation-timing-function: ease-out;
        animation-delay: 800ms;
    }

    #work {
        float: right;
        margin-top: 1em;
        margin-right: 1em;
        padding: 1em;
        background-color: antiquewhite;
        border-radius: 10px;
        width: 25em;
        height: 15em;
        transform: translateX(-700%);
        animation-fill-mode: forwards;
        animation-name: card-load;
        animation-duration: 600ms;
        animation-timing-function: ease-out;
        animation-delay: 800ms;
    }

}

@media (max-width: 400px) {

    #personal {
        margin-top: 1em;
        padding: 1em;
        background-color: antiquewhite;
        border-radius: 10px;
        width: 85%;
        height: 15em;
        transform: translateX(-700%);
        animation-fill-mode: forwards;
        animation-name: card-load;
        animation-duration: 800ms;
        animation-timing-function: ease-out;
        animation-delay: 800ms;
    }

    #study {
        position: relative;
        margin-left: 1em;
        margin-top: 1em;
        text-align: center;
        padding: 1em;
        background-color: antiquewhite;
        border-radius: 10px;
        width: 85%;
        height: 15em;
        transform: translateX(-700%);
        animation-name: card-load;
        animation-fill-mode: forwards;
        animation-duration: 700ms;
        animation-timing-function: ease-out;
        animation-delay: 800ms;
    }

    #work {
        margin-top: 1em;
        padding: 1em;
        background-color: antiquewhite;
        border-radius: 10px;
        width: 85%;
        height: 15em;
        transform: translateX(-700%);
        animation-fill-mode: forwards;
        animation-name: card-load;
        animation-duration: 600ms;
        animation-timing-function: ease-out;
        animation-delay: 800ms;
    }

    .button1 {
        margin-top: 6.0em;
    }

    .button2 {
        margin-top: 5.4em;
    }

    #image_main img {
        margin-top: 1em;
        width: 135%;
        height: 250px;
        object-fit: cover;
        position: relative;
        text-align: center;
        opacity: 0;
        animation: image-load 1200ms ease-out;
        animation-delay: 800ms;
        animation-fill-mode: forwards;
    }

    #hobby {
        /*float: left;*/
        display: inline-block;
        margin-bottom: 1em;
        background-color: antiquewhite;
        border-radius: 10px;
        margin-right: 1em;
        padding: 1em;
        height: 21em;
    }

    #diploma {
        /*float: left;*/
        display: inline-block;
        margin-left: 2em;
        background-color: antiquewhite;
        margin-bottom: 1em;
        margin-right: 1em;
        border-radius: 10px;
        padding: 1em;
        height: 21em;
    }
    
    #funfact {
        /*float: left;*/
        display: inline-block;
        margin-left: 2em;
        margin-right: 1em;
        background-color: antiquewhite;
        border-radius: 10px;
        padding: 1em;
        height: 21em;
    }

}