/* 0x4248.github.io
 * My github page
 * GitHub: https:///www.github.com/0x4248
 * Licence: GNU General Public License v3.0
 * By: 0x4248
 */


 @font-face {
    font-display: swap;
    font-family: CCSymbols;
    font-synthesis: none;
    src: url(/tff/CCSymbols.woff2) format(woff2),
         url(/ttf/CCSymbols.woff)  format(woff);
    unicode-range: u+a9, u+229c,
                   u+1f10d-1f10f,
                   u+1f16d-1f16f;
}

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bai+Jamjuree:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700&display=swap');

html {
    font-family: 'Noto Sans', CCSymbols, sans-serif;
    font-size: 16px;
    color: var(--text-colour);
    background-color: var(--background-colour-dark);
    background:
        linear-gradient(90deg, var(--dot-bg) calc(var(--dot-space) - var(--dot-size)), transparent 1%) center / var(--dot-space) var(--dot-space),
        linear-gradient(var(--dot-bg) calc(var(--dot-space) - var(--dot-size)), transparent 1%) center / var(--dot-space) var(--dot-space),
        var(--dot-color);     
}

body {
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Bai Jamjuree', sans-serif;
    color: var(--text-alt-colour);
    margin-top: 5px;
    margin-bottom: 5px;
}

a {
    color: var(--text-alt-colour);
    text-decoration: none;
}

code {
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-colour);
    background-color: var(--background-colour-dark);
    padding: 0.2rem;
    border-radius: 5px;
    font-size: 0.9rem;
}

pre code {
    display: block;
    padding: 1rem;
    overflow-x: auto;
    border-radius: 5px;
    background-color: var(--background-colour-dark);
    font-size: 0.9rem;
}

button {
    font-family: 'Bai Jamjuree', sans-serif;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border: 2px solid var(--text-colour);
    border-radius: 5px;
    background-color: var(--background-colour-dark);
    color: var(--text-colour);
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
    transition: transform 0.3s;
}

button:hover {
    background-color: var(--background-colour-light);
    transform: scale(1.1);
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    padding: 1rem;
    background-color: var(--background-colour-light);
    color: var(--text-colour);
    background-color: #2323233b;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    width: 100%;
    padding-right: 100px;
    z-index: 1;
}

.top-bar a {
    font-family: 'Bai Jamjuree', sans-serif;
    text-decoration: none;
    color: var(--text-colour);
    font-size: 1.5rem;
    margin-right:10px;
    transition: all 0.2s;
}

.top-bar-left {
    flex: 1;
}

.top-bar-right {
    flex: 1;
    text-align: right;
}

.section {
    padding: 1rem;
    background-color: var(--background-colour-light);
    color: var(--text-colour);
    border-radius: 10px;
}

.section-border {
    background-color: var(--background-colour-light);
    color: var(--text-colour);
    border: 2px solid var(--light-gray);
    border-radius: 10px;
    padding: 1rem;
}

.section-border-compact {
    background-color: var(--background-colour-light);
    color: var(--text-colour);
    border: 2px solid var(--light-gray);
    border-radius: 10px;
    padding-top:5px;
    padding-bottom:5px;
    padding-left: 1rem;
    padding-right: 1rem;
}

.section-border-compact h3 {
    margin-top: 5px;
    margin-bottom: 5px;
}

.section-border-compact p {
    margin-top: 5px;
    margin-bottom: 5px;
}

.main {
    margin: 0 auto;
    max-width: 900px;
    padding-left: 20px;
    padding-right: 20px;
    transition: all 0.6s cubic-bezier( 0.86, 0, 0.07, 1 );
}

.halfsplit-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.title {
    font-size: 5rem;
    color: var(--text-colour);
    margin-top: 80px;
}

.subtitle {
    font-size: 1rem;
    color: var(--light-gray);
    margin-top: 20px;
    margin-bottom: 20px;
}

@media screen and (max-width: 600px) {
    .top-bar a {
        font-size: 1rem;
    }

    .top-bar-left {
        width: 80%;
    }
    
    .top-bar-right {
        width: 20%;
    }

    .section {
        padding: 0.5rem;
    }

    .title {
        font-size: 3rem;
    }
}


@keyframes  animation-in {
    from {
        opacity: 0;
        scale: 0.9;
    }
    to {
        opacity: 1;
        scale: 1;
    }
    
}

.main {
    opacity: 0;
    animation: animation-in 1s forwards 0.2s cubic-bezier( 0.86, 0, 0.07, 1 );
}

.main h1 {
    opacity: 0;
    animation: animation-in 1s forwards 0.4s cubic-bezier( 0.86, 0, 0.07, 1 );
}

.main h2, h3, h4, h5, h6 {  
    opacity: 0;
    animation: animation-in 1s forwards 0.4s cubic-bezier( 0.86, 0, 0.07, 1 );
}

.main ul, ol {
    opacity: 0;
    animation: animation-in 1s forwards 0.4s cubic-bezier( 0.86, 0, 0.07, 1 );
}

.flag {
    opacity: 0;
    transition: transform 0.2s;
    transform: scale(1);
    animation: animation-in 1s forwards 0.5s cubic-bezier( 0.86, 0, 0.07, 1 );
}

.flag:hover {
    transition: transform 0.2s;

    z-index: 1;
    transform: scale(2);
}

.main p{
    animation: animation-in 0.8s forwards 0.4s cubic-bezier( 0.86, 0, 0.07, 1 );
}

.section, .section-border {
    opacity: 0;
    transition: opacity 0.6s cubic-bezier( 0.86, 0, 0.07, 1 );
}

.background-object {
    position: absolute;
    left: 0;
    z-index: -99;
    width: 15%;
    filter: brightness(0.4);
}

.top-bar {
    transform: translateY(-100px);
    transition: transform 0.4s cubic-bezier( 0.86, 0, 0.07, 1 );
} 
a:hover {
    filter: brightness(0.6);
}


.scroll-prompt {
    position: absolute;
    top: 90vh;
    width: 100%;
    text-align: center;
    animation: scroll-prompt 1s ease-in-out infinite;
}
