@font-face {
    font-family: 'Roboto';
    src: url(../fonts/Roboto-Regular.ttf);
    font-weight: normal;
}
@font-face {
    font-family: 'Roboto';
    src: url(../fonts/Roboto-Bold.ttf);
    font-weight: bold;
}
@font-face {
    font-family: 'Roboto';
    src: url(../fonts/Roboto-Thin.ttf);
    font-weight: 100;
}
:root{
    --fs-main: clamp(1.4rem, 4vw, 4rem);
    --fs-sub: clamp(1rem, 2vw, 2rem);
    --fs-text: clamp(1rem, .8vw, 2rem);
    --fs-footer: clamp(.8rem, .5vw, 2rem);
}
body {
    font-family: 'Roboto';
    margin: 0;
    background-color: rgb(0, 0, 0);
    background-image: url(../media/bg.gif);
    background-size: contain;
    background-position: left 15px top;
    background-attachment: fixed;
}
/* Main */
#main {
    min-height: 80vh;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: row;
    gap: 0 1rem;
    align-items: center;
    justify-content: center;
    color: rgb(241, 241, 241);
    padding: 0 2rem;
    position: relative;
}
#main .text { 
    margin: 0 2rem;
    z-index: 2;
}
#main .text a { 
    border: 2px solid white;
    color: white;
    text-decoration: none;
    padding: 1rem;
    margin-top: .5rem;
    display: inline;
    transition: all .3s;
}
#main .text a:hover { 
    background-color: rgba(255, 255, 255, 0.15);
    transition: all .3s;
}
#main h1 { 
    font-weight: bold;
    font-size: var(--fs-main);
    margin: 0;
}
#main h2 { 
    font-size: var(--fs-sub);
    margin: 0;
    margin-bottom: 2rem;
    max-width: 80%;
}
#main .logogif { animation: float 2s ease infinite alternate; }
#main img {
    max-width: 100%;
    display: block;
}
#main .up-img {
    position: absolute;
    bottom: 0;
    width: 100vw;
    border-bottom: 1px solid rgba(255, 255, 255, 0.95);
    /*animation: up-img .5s ease-out;*/
}
@keyframes up-img {
    0% { transform: translateY(20%); }
    100% { transform: translateY(0); }
}
@keyframes float {
    0% { transform: translateY(20px); }
    100% { transform: translateY(0); }
}

@media (max-width: 1000px) {
    :root{
        --fs-main: clamp(1.4rem, 4vw, 6rem);
    }
    #main .logogif, #main .up{ display: none; }
    #main { min-height: 60vh; }
    #main .text { text-align: center; }
    #main h2 { max-width: 100%; }

}
@media (max-width: 470px) { #main { min-height: auto; padding: 20vh 0 10vh 0; } }
/* Contact */
#contact {
    background-color: rgba(255, 255, 255, 0.95);
    display: grid;
    gap: 2rem;
    padding: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    font-size: var(--fs-text);
    min-height: 50vh;
}
#contact p { 
    margin: 0;
    max-width: 600px;
}
#contact a { 
    color: black;
    text-decoration: none;
    font-weight: bold;
}
#contact h2 {
    font-size: var(--fs-text);
    font-weight: 400;
    margin: 0;
    max-width: 600px;
}
#contact .text {
    display: flex;
    align-items: center;
    justify-content: right;
}
#contact .form {
    display: flex;
    align-items: center;
}
#contact form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .5rem;
    max-width: 600px;
    min-width: 50%;
    margin: 0;
}
#contact form textarea {
    resize: vertical;
    min-height: 3rem;
}
#contact form input, #contact form textarea {
    padding: .5rem;
    font-family: 'Roboto';
    font-size: var(--fs-text);
    border: black 1px solid;
    border-radius: 3px;
    background-color: rgba(255, 255, 255, 0.8);
}
input:focus, textarea:focus { outline-color: black; }
#contact form input[type="submit"] {
    background-color: black;
    color: white;
    border-radius: 3px;
    border: none;
    cursor: pointer;
    transition: all .3s;
}
#contact form input[type="submit"]:hover {
    background-color: rgb(54, 54, 54);
    transition: all .3s;
}
#contact form .privacy {
    font-size: 1rem;
}
#contact textarea, #contact .email, #contact .bedrijf, #contact form p, #contact form .privacy {
    grid-column: span 2;
}
@media (max-width: 900px) {
    #contact .form, #contact .text { justify-content: center;}
}
@media (max-width: 470px) {
    #contact form { min-width: 100%; }
    #contact, #contact form { grid-template-columns: 1fr; }
    #contact textarea, #contact .email, #contact .bedrijf, #contact form p, #contact form .privacy { grid-column: span 1; }
}
/* Portfolio */
#portfolio {
    background-color: white;
    display: grid;
    gap: 2rem;
    padding: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(600px, 1fr));
}
#portfolio div{
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}
#portfolio .yours {
    position: absolute;
    color: white;
    z-index: 1;
    font-size: var(--fs-text);
    user-select: none;
    bottom: auto;
    border: none;
    background-color: rgba(0, 0, 0, 0);
}
#portfolio p {
    position: absolute;
    color: white;
    z-index: 1;
    font-size: var(--fs-text);
    user-select: none;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 8px;
    border-radius: 0 5px 5px 0;
    border: 2px solid white;
}
#portfolio img {
    display: block;
    border-radius: .5rem;
    border: 2px solid rgb(230, 230, 230);
    max-width: 100%;
    opacity: .93;
    transition: all .3s;
}
#portfolio img:nth-last-child(1){
    height: 89%;
}
#portfolio img:hover{
    opacity: 1;
    transition: all .3s;
}
@media (max-width: 670px) {
    #portfolio { grid-template-columns: 1fr; }
}
/* Footer */
footer {
    background-color: white;
    text-align: center;
    padding: 1rem;
    font-size: var(--fs-footer);
    color: rgb(90, 90, 90);
}
footer a {
    text-decoration: none;
    color: black;
    transition: all .3s;
}
footer a:hover {
    color: rgb(65, 65, 65);
    transition: all .3s;
}
/* Scrollbar */
::-webkit-scrollbar {
    width: 15px;
}
::-webkit-scrollbar-track {
    
    background: rgb(27, 27, 27);
}
::-webkit-scrollbar-thumb {
    background: rgb(90, 90, 90);
}
::-webkit-scrollbar-thumb:hover {
    background: #555; 
}

#information{
    background-color: rgba(255, 255, 255, 0.98);
    padding: 2rem;
    font-size: var(--fs-text);
    min-height: calc(90vh - 5rem);
    padding-top: 10vh;
    display: flex;
    justify-content: center;
}
#information p {
    margin: 0;
    margin-top: .5rem;
    max-width: 60vw;
}
#information a {
    color: black;
}
#information .title{
    font-weight: bold;
    margin-top: 1.2rem;
}
#information .text p:nth-child(1){
    font-size: var(--fs-main);
    margin-bottom: 1rem;
}
@media (max-width: 1000px) {
    #information p { max-width: 95vw; }
}