@font-face{
    font-family:'title-font';
    font-weight: normal;
    font-display: swap;
    src: url("../fonts/Pacifico-Regular.ttf");
}
@font-face{
    font-family:'bio-font';
    font-weight: normal;
    font-display: swap;
    src: url("../fonts/Spectral-Regular.ttf");
}

html{
    font-size: 100%;
}
body{
    width: 100% !important;
    min-height: 100vh !important;
    background-image: url("../assets/images/background.webp");
    background-size: cover;
}

.announcement-nav{
    visibility: hidden; /* can be changed to hidden if no announcement needs to be made */
    position:sticky;
    top: 0;
    left: 50%;
    width: 20%;
    transform: translateX(-50%);
    background-color: #373b4e;
    color: aliceblue;
    padding: 0.75rem 0;
    font-family: 'title-font';
    font-weight: bold;
    overflow: hidden;
    z-index: 888;
    border-radius: 1.75rem;

    display: flex;
    justify-content: flex-start;

    transition: transform 0.2s ease;
}

.announcement-nav:active{
    transform: translateX(-50%) scale(1.05) !important;
}

#marquee-track {
    display: flex;
    width: 100%;
    justify-content: flex-start;
}

#marquee-content{
    display: inline-block;
    white-space: nowrap;
    /*padding-left: 100%;*/
    will-change: transform;

    animation: scroll-text 15s linear infinite;
}

#rgb-announce{
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none;    /* Firefox */
    -ms-user-select: none;     /* Internet Explorer/Edge */
    user-select: none;         /* Standard Syntax */

    /* 1. Create a wide repeating linear gradient containing RGB colors */
            background: linear-gradient(
                to right, 
                #e04545, #7ddd50, #486ce4, #e04545
            );
            background-size: 200% auto;
            
            /* 2. Clip the background so it only fills the text shape */
            -webkit-background-clip: text;
            background-clip: text;
            
            /* 3. Make the actual text color transparent to let the background show */
            -webkit-text-fill-color: transparent;
            color: transparent;
            
            /* 4. Trigger the animation immediately on page open */
            animation: shift-rgb 4s linear infinite;

    transition: transform 0.2s ease;
}

@keyframes scroll-text {
    0% {
        transform: translateX(120%);
    }
    100% {
        transform: translateX(-150%);
    }
}

.container{
    min-height: 100vh;
    width: 90vw !important;
    min-width: 0px !important;
    /*width: 500px;*/
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px auto;
    box-sizing: border-box;
}

#content{
    background-color: #232429;
    border-radius: 3.125rem / 3.125rem; /* previously 50px / 50px */
    max-height: 100%; /*previously 1000px*/
    width: 90%; /* previously 700px */
    max-width: 600px;
}

#title{
    color: #e1e8ff;
    font-family: 'title-font';
    font-size: 3.75rem; /* previously 60px */
    text-align: left;
    margin-left: 1.25rem; /* previously 20px */
    cursor: pointer;
    line-height: 1.8;
    word-break: break-word;
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none;    /* Firefox */
    -ms-user-select: none;     /* Internet Explorer/Edge */
    user-select: none;         /* Standard Syntax */

    /* 1. Create a wide repeating linear gradient containing RGB colors */
            background: linear-gradient(
                to right, 
                #e04545, #7ddd50, #486ce4, #e04545
            );
            background-size: 200% auto;
            
            /* 2. Clip the background so it only fills the text shape */
            -webkit-background-clip: text;
            background-clip: text;
            
            /* 3. Make the actual text color transparent to let the background show */
            -webkit-text-fill-color: transparent;
            color: transparent;
            
            /* 4. Trigger the animation immediately on page open */
            animation: shift-rgb 4s linear infinite;

    transition: transform 0.2s ease;
}

@keyframes shift-rgb {
            0% {
                background-position: 0% center;
            }
            100% {
                background-position: 200% center;
            }
        }

#title:active{
    transform: scale(1.05);
}

#bio{
    color: #c7cde9;
    font-family: 'bio-font';
    font-size: 1.875rem; /* previously 30px */
    text-align: left;
    margin-left: 1.25rem; /* previously 20px */
    margin-right: 3.125rem; /* previously 50px */
}

#contact-button{
    width: 10rem; /* previously 160px */
    height: 3.75rem; /* previously 60px */
    border-radius: 1.5625rem / 1.5625rem; /* previously 25px / 25px */
    background-color: #63a538;
    outline: none;
    border: none;
    margin-left: 0.9375rem; /* previously 15px */
    font-family: 'bio-font';
    font-size: 1.25rem; /* previously 20px */
    font-weight: bold;
    color:#e1e8ff;
    cursor: pointer;

    transition: transform 0.2s ease, background-color 0.2s ease;
}

#contact-button:hover{
    transform: scale(1.05);
    background-color: #4e7a2c;
}

#platforms-container{
    background-color: #35373f;
    border-radius: 3.125rem / 3.125rem; /* previously 50px / 50px */
    height: 9.6875rem; /* previously 155px */
    margin-top: 4.0625rem; /* previously 65px */
}

#platform-title{
    display: inline-block;
    color: #e1e8ff;
    font-family: 'bio-font';
    font-size: 1.875rem; /* previously 30px */
    text-align: left;
    margin-left: 2.5rem; /* previously 40px */
    margin-top: 0.625rem; /* previously 10px */
}

#platforms{
    list-style-type: none;
    display: flex;
    justify-content: left;
    gap: 1.25rem; /* previously 20px */
    
}

#yt-link{
    anchor-name: --yt-anchor;
}

#dc-link{
    anchor-name: --dc-anchor;
}

#kf-link{
    anchor-name: --kf-anchor;
}

#contact{
    anchor-name: --con-anchor;
}

#yt-tooltip{
    font-family: 'title-font';
    visibility: hidden;
    position: fixed;
    width: 7.5rem; /*previously 120px*/
    background-color: #1a1a1f;
    color: #e7e9ff;
    text-align: center;
    padding: 0.313rem 0; /*previously 5px 0*/
    border-radius: 0.375rem; /*previously 6px*/
    z-index: 1;
    transition: opacity .6s;
    position-anchor: --yt-anchor;
    top: anchor(top);
    left: anchor(center);
    transform: translateX(0%) translateY(-150px);
    /*top: 100%;
    left: 40.5rem;*/
    margin-left: -3.75rem; /*previously -60px*/
}

#dc-tooltip{
    font-family: 'title-font';
    visibility: hidden;
    position: absolute;
    width: 120px;
    background-color: #1a1a1f;
    color: #e7e9ff;
    text-align: center;
    padding: 5px 0;
    border-radius: 6px;
    z-index: 1;
    transition: opacity .6s;
    position-anchor: --dc-anchor;
    top: anchor(top);
    left: anchor(center);
    transform: translateX(0%) translateY(-150px);
    /*top: 95%;
    left: 40.7%;*/
    margin-left: -60px;
}

#kf-tooltip{
    font-family: 'title-font';
    visibility: hidden;
    position: absolute;
    width: 120px;
    background-color: #1a1a1f;
    color: #e7e9ff;
    text-align: center;
    padding: 5px 0;
    border-radius: 6px;
    z-index: 1;
    transition: opacity .6s;
    position-anchor: --kf-anchor;
    top: anchor(top);
    left: anchor(center);
    transform: translateX(0%) translateY(-150px);
    /*top: 95%;
    left: 45.8%;*/
    margin-left: -60px;
}

#contact-tooltip{
    font-family:monospace;
    font-weight: bold;
    font-size: 15px;
    visibility: hidden;
    position: absolute;
    width: 220px;
    background-color: #1a1a1f;
    color: #e7e9ff;
    text-align: center;
    padding: 5px 0;
    border-radius: 6px;
    z-index: 1;
    transition: opacity .6s;
    position-anchor: --con-anchor;
    top: anchor(top);
    left: anchor(center);
    transform: translateX(95%) translateY(-3px);
    /*top: 86.6%;
    left: 47.5%;*/
    margin-left: -110px;
}

.platform-icon{
    height: 75px;
    width: 75px;
    cursor: pointer;
    margin-top: -30px;
    transition: transform 0.2s ease;
}

.platform-icon:hover{
    transform: scale(1.2);
}

#yt-link:hover #yt-tooltip{
    visibility: visible;
    opacity: 1;
}

#dc-link:hover #dc-tooltip{
    visibility: visible;
    opacity: 1;
}

#kf-link:hover #kf-tooltip{
    visibility: visible;
    opacity: 1;
}

#contact:hover #contact-tooltip{
    visibility: visible;
    opacity: 1;
}

@media screen and (max-width: 768px){
    .announcement-nav{
        width: 80% !important;
        top: 0.5rem !important;
        padding: 0.7rem 0 !important;

        position: fixed !important;
        left: 50% !important;
        translate: translateX(-50%) !important;
    }

    .marquee-content {
        animation: mobile-viewport-scroll 12s linear infinite !important;

        @keyframes mobile-viewport-scroll {
            0% {
                transform: translateX(80%); 
            }
            100% {
                transform: translateX(-130%); 
            }
        }
    }
    .container{
        width: 100% !important;
        max-width: 100% !important;
        margin: 10px auto !important;
    }

    #content{
        width: 92% !important;
        max-width: 100% !important;
    }

    #title{
        font-size: 2.2rem !important;
        margin-left: 1rem !important;
        line-height: 1.8 !important;
    }

    #bio{
        font-size: 1.1rem !important;
        margin-left: 1rem !important;
        margin-right: 1.5rem !important;
    }

    #platforms-container {
        height: auto !important;
        padding-bottom: 15px !important;
        margin-top: 2rem !important;
    }

    #platforms {
        padding-left: 1.5rem !important;
    }
}