* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html, body {
    height: 100%;
    margin: 0;
}
body {
    font-family: 'atkinson hyperlegible', sans-serif;
    background: #ffe9d9;
    display: flex;
    flex-direction: column;
    min-height: 130vh;
}
nav {
    background-color: #A82F2F;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    position: relative;
}
.logo {
    color: #0affcf;
    font-size: 24px;
    font-weight: bold;
}
.logo img {
    transition: transform 0.6s ease;
}
.logo img:hover{
    transform: scale(0.85);
}
.navlinks {
    list-style: none;
    display: flex;
    gap: 40px;
    justify-content: center;
}
.navlinks a {
    color: #ffe9d9;
    text-decoration: none;
    font-size: 35px;
    display:inline-block;
    transition: transform 0.6s ease;
    margin-right: 23px;
}
.navlinks a:hover {
    color: #0AFFCF;
    transform: scale(0.85);
}
/* burger */
.burgertoggle {
    display: none;
    font-size: 28px;
    color: #ffe9d9;
    cursor: pointer;
}

footer a img{
    transition: transform 0.6s ease;
}
footer a img:hover{
    transform: scale(0.85);
}
main{
    flex:1
}
/*Content*/
.layout{
    display:grid;
    grid-template-columns: 2fr 1fr;
    padding: 10px;
    padding-right: 26px;
    gap: 10px;
    min-height:100vh;
}
.left-column{
    display: grid;
    gap: 10px
}
.right-side{
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    text-align: justify;
    background-color: #380f001f;
    margin-right: 23px;
    margin:5px;
}
.card{
    background: #380f001f;
    padding: 10px;
    margin:5px;
    margin-left: 23px;
    text-align: justify;
}
.card h3{
    margin-bottom: 10px;
}
img.profile-image {
    border-radius: 50%;
    padding: 2px;
}
h3{
    font-size: 2rem;
    text-align: center;
    padding: 10px;
}
p{
    font-size: 1rem;
}
footer{
     text-align: center;
     padding: 20px;
     background: #a82f2f;
     color: #380f00;
     display: flex;
     flex-direction: column;
     gap: 10px;
 }
.footer-links a {
    margin: 0 10px;
    text-decoration: none;
    color: #380f00;
    transition: transform 0.6s ease;

}
.footer-links a:hover{
    text-decoration:underline;
    color: #FFE9D9;
    text-decoration-color:#FFE9D9;
}
footer a{
    margin: 0 10px;
    text-decoration: none;
    color: #380f00;
    transition: transform 0.6s ease;

}
footer a:hover{
    text-decoration:underline;
    color: #FFE9D9;
    text-decoration-color:#FFE9D9;
}

.text{
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: center;
}



.buttos{
    display: flex;
    flex-direction: column;
    position: fixed;
    bottom: 35px;
    right: 30px;
    gap: 10px;

}
#scrollTopBtn {
    display: none; /* hidden until scroll */
    background-color: #380f00;
    color: #0AFFCF;
    border: none;
    border-radius: 50%;
    height: 50px;
    width: 50px;
    font-size: 25px;
    cursor: pointer;
    transition: transform 0.2s ease;
}
#scrollTopBtn:hover{
    display: none; /* hidden until scroll */
    background-color: #380f00;
    color: #0AFFCF;
    border: none;
    border-radius: 50%;
    height: 50px;
    width: 50px;
    font-size: 25px;
    cursor: pointer;
    transform: scale(1.3);
    color: #F28907;
    background-color:#0F565D;
    text-shadow:
            1px 0 currentColor,
            -1px 0 currentColor,
            0 1px currentColor,
            0 -1px currentColor;
}
#themeToggle {
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    z-index: 9999;
    border-radius: 50%;
    height: 50px;
    width: 50px;
    font-size: 25px;
    background-color: #380f00;
    color: #0AFFCF;
    cursor: pointer;
    transition: transform 0.2s ease;

}
#themeToggle:hover {
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    z-index: 9999;
    border-radius: 50%;
    height: 50px;
    width: 50px;
    font-size: 25px;
    cursor: pointer;
    transform: scale(1.3);
    color: #F28907;
    background-color:#0F565D ;
    text-shadow:
            1px 0 currentColor,
            -1px 0 currentColor,
            0 1px currentColor,
            0 -1px currentColor;
}

body.dark #scrollTopBtn{
    background-color: #F5F5F5;
    color: #001629;
}
body.dark #themeToggle{
    background-color: #F5F5F5;
    color: #001629;
}
body.dark #scrollTopBtn:hover{
    color: #F28907;
    background-color:#0F565D;
    text-shadow:
            1px 0 currentColor,
            -1px 0 currentColor,
            0 1px currentColor,
            0 -1px currentColor;
}
body.dark #themeToggle:hover{
    color: #F28907;
    background-color:#0F565D;
    text-shadow:
            1px 0 currentColor,
            -1px 0 currentColor,
            0 1px currentColor,
            0 -1px currentColor;
}
#themeRipple {
    position: fixed;
    width: 40px;
    height: 40px;
    border-radius: 50%;

    background: #001629;

    transform: scale(0);
    transform-origin: center;

    z-index: 9998;
    pointer-events: none;

    transition: transform 2s ease-out;
}
#themeRipple.active {
    transform: scale(290);
}


body.dark {
    background-color: #121212;
    color: #F5F5F5;
    font-size: 30px;
    width: fit-content;
}
body.dark .bg{
    filter: invert(100);
}
body.dark p, body.dark h1{
    color: #F5F5F5;
}
body.dark a{
    color: #F5F5F5;
}
body.dark footer{
    background-color: #001629;
    color: #F5F5F5;
}
body.dark nav{
    background-color: #001629;
    color: #F5F5F5;
}
body.dark .navlinks a{
    font-size: 50px;
}
body.dark .logo, body.dark .logoimg{
    filter: grayscale(100) brightness(100);
    height: 20dvh;
    width: auto;
}

body.dark .card, body.dark .right-side{
    background-color: #001629;;
}
body.dark .right-side{
    max-height: 285dvh;
    overflow-y: scroll;
}
body.dark .right-side, body.dark .left-column{
    min-width: fit-content;
}

body.dark p{
    font-size: 30px;
}



body.dark h3{
    font-size: 1.5em;
}
body.dark .profile-image{
    height: 46dvh;
    width: auto;
}



/* responsive scale */
@media (max-width: 768px) {

    body.dark .burgertoggle{
        font-size: 100px;
        color: #F5F5F5;
    }
    body.dark .navlinks{
        background-color: #001629;
        color: #F5F5F5;
    }

    .burgertoggle {
        display: block;
    }
    .navlinks {
        display: none;
        flex-direction: column;
        background-color: #A82F2F;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 20px;
    }
    .navlinks.active {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .card{
      margin: 5px;
    }
    .layout {
        display: flex;
        flex-direction: column-reverse;
    }
    h2 {
        font-size: 1.5rem;
    }
    footer p{
        display: flex;
        justify-content: center;
    }
    p:not(footer){
        font-size: 1.1rem;
        text-align: left;
    }
    .profile-image {
        width: 100px;
        height: 100px;
    }

    footer {
            padding: 20px;
            height: auto;   /* IMPORTANT */
            gap: 15px;
            color: #FFE9D9;
        }
    .footer-links {
            flex-direction: column;
            align-items: center;
            gap: 10px;
            color: #FFE9D9;
        }
    .footer-links a{
        color: #FFE9D9;
    }
    footer a {
            display: block;
            color: #FFE9D9;
        }
    footer{
        color: #FFE9D9;
    }

    .layout{
        padding-right: 10px;
    }
}