
/* Import your own font locally or from https://fonts.google.com */
@import url('https://fonts.googleapis.com/css2?family=Kanit:ital,wght@0,400;0,700;1,400;1,700&display=swap');

.kanit-regular {
    font-family: "Kanit", sans-serif;
    font-weight: 400;
    font-style: normal;
  }
  
.kanit-bold {
    font-family: "Kanit", sans-serif;
    font-weight: 700;
    font-style: normal;
}
  
.kanit-regular-italic {
    font-family: "Kanit", sans-serif;
    font-weight: 400;
    font-style: italic;
}
  
.kanit-bold-italic {
    font-family: "Kanit", sans-serif;
    font-weight: 700;
    font-style: italic;
}





@font-face {
    font-family: 'Kanit';
    src: url('/assets/kanit.woff2');
}

html {
    background-color: #1a1b26;
    overflow: hidden;

    /* For desktops, use 100vh as the height of everything */
    height: 100vh;
    /* For mobile devices, since bars crop the viewport, use this property that works somehow */
    height: -webkit-fill-available;

    width: 100vw;
}

body {
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 2vw 2vw;
    margin: 0 0;
    height: 100%;
    box-sizing: border-box;

    color: #c0caf5;
    text-align: center;
    font-family: 'Kanit', Arial, Helvetica, sans-serif;
    font-display: swap;
    
    background: linear-gradient(135deg, #1a1b26, #7aa2f7, #bb9af7, #f7768e);
    background-size: 400% 400%;
    animation: gradient 10s ease infinite;

}

@keyframes gradient {
    0% {
		background-position: 0% 50%;
	}
	50% {
		background-position: 100% 50%;
	}
	100% {
		background-position: 0% 50%;
	}
}

#content-border-container {
    box-sizing: border-box;
    width: 70vw;
    max-width: 800px;
    height: 100%;
    
    background-color: rgba(26, 27, 38, 0.9);
    backdrop-filter: blur(50px);
    border-radius: 25px;

    display: flex;
    align-items: center;
    justify-content: center;
}

#media-container {
    width: 100%;
    height: fit-content;
}

#logo {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 25vh;
    max-width: 300px;
    /* min-width: 200px; */
    border-radius: 100%;
}

#titles-container {
    width: 100%;
    margin-bottom: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#text-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

h1 {
    margin-top: 0.5rem;
    margin-bottom: 0;

    font-size: 4rem;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: inline;
}

#buttons-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.info-button {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 70%;
    max-width: 360px;
    height: 6vh;
    max-height: 100px;
    margin: 1vh 0;
    padding: 0 0;

    border-color: rgba(192, 202, 245, 0);
    border-width: 5px;
    border-style: solid;
    background-color: #414868;
    background-blend-mode: color;
    border-radius: 50px;
    color: inherit;
    font-family: 'Kanit', Arial, Helvetica, sans-serif;
}

.info-button:hover {
    animation: button-background-slide 2s ease, grow-border 1s linear;
    animation-fill-mode: forwards;
}

.info-button:hover .info-text{
    display: none;
}

#github-button:hover::after {
    content: "daqnal";
    font-size: 1.2rem;
    margin-left: 0.35rem;
}

#email-button:hover::after {
    content: "dan@dgd.sh";
    font-size: 1.2rem;
    margin-left: 0.35rem;
}

#signal-button:hover::after {
    content: "@dgd.99";
    font-size: 1.2rem;
    margin-left: 0.35rem;
}

#linkedin-button:hover::after {
    content: "dgdur";
    font-size: 1.2rem;
    margin-left: 0.35rem;
}

@keyframes button-background-slide {
    0% {
        background-color: rgba(65, 72, 104, 1);
    }
    100% {
        background-color: rgba(65, 72, 104, 0)
    };
}

@keyframes grow-border {
    0% {border-color: rgba(192, 202, 245, 0);}
    100% {border-color: rgba(192, 202, 245, 1);}
}

.info-text {
    margin-left: 0.35rem;
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;

    font-size: 1.2rem;
    
}

.marquee {
    width: 100%;
    max-width: 96vw;
    height: 50px;
    margin: 3vh 0;

    transform: skew(0, -4deg);
    background-color: #1a1b26;

    --gap: 1rem;
    display: flex;
    align-items: center;
    overflow: hidden;
    user-select: none;
    gap: var(--gap);
}
  
.marquee__content {
    font-size: 1.2rem;
    font-style: italic;
    font-weight: normal;

    list-style-type: none;
    flex-shrink: 0;
    display: flex;
    justify-content: space-around;
    min-width: 100%;
    gap: var(--gap);
    animation: scroll 15s linear infinite, change-color 10s linear infinite;
}

@keyframes scroll {
    from {
      transform: translateX(0);
    }
    to {
      transform: translateX(calc(-100% - var(--gap)));
    }
}

@keyframes change-color {
    0% {color: #7aa2f7;}
    25% {color: #bb9af7;}
    50% {color: #f7768e;}
    75% {color: #bb9af7;}
    100% {color: #7aa2f7;}
}

.svg {
    width: 4vh;
    max-width: 36px;
}

/* Any size less than 600 in length gets these styles */
@media screen and (max-width: 650px) {
    h1 {
        font-size: 10vw;
    }

    #logo {
        width: 150px;
        
    }

    #content-border-container {
        width: 100%;
    }
}

@media screen and (max-width: 350px) {
    #logo {
        width: 50vw;
    }

    .marquee {
        margin: 1rem 0;
    }

    .marquee__content {
        font-size: 1rem;
    }
}
@media screen and (max-height: 780px) and (min-width: 800px) {
    #buttons-container {
        box-sizing: border-box;
        padding: 0 5%;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-around;
    }

    .info-button {
        width: 45%;
        height: 7vh;
    }

    h1 {
        font-size: 3rem;
    }

    .marquee {
        margin: 1.5rem 0;
        transform: skew(0, -3.5deg);
    }
}

@media screen and (min-width: 1000px) and (max-height: 700px) {
    body {
        padding: 1vw 1vw;
    }

    #logo {
        width: 25vh;
    }
}

@media screen and (max-height: 550px) and (max-width: 900px) {

    #media-container {
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    #content-border-container {
        width: 100%;
    }

    #buttons-container {
        flex-direction: row;
        justify-content: space-around;
        width: 90%;
    }

    #logo {
        width: 20vh;
        height: 20vh;
        margin-left: 0;
        margin-right: 1.5rem;
        display: inline;
        margin-top: auto;
        margin-bottom: auto;
    }

    .info-button {
        width: 20%;
        height: 10vh;
    }

    .marquee {
        margin: 1rem 0;
        transform: skew(0, -3.5deg);
    }

    h1 {
        font-size: 3rem;
        display: inline;
        margin-top: auto;
        margin-bottom: auto;
    }

    #logo-title-container {
        display: flex;
        justify-content: center;
    }

}