/* Preload hover icons */
.preload-images {
    background-image: url(./media/contact/email-hover.png), 
                      url(./media/contact/linkedin-hover.png),
                      url(./media/contact/github-hover.png),
                      url(./media/contact/spotify-hover.png);
    display: none;
}

body {
    margin: 10vh 10vw;
    color: #0066e3;
    font-family: urbanist;
}
* {
    margin: 0 0;
    padding: 0 0;
}

.peralta {
    font-family: peralta;
    font-size: 24px;
}

.swungnote-font {
    font-family: swungnote;
    font-size: 28px;
}

/* HOME */
.homepage {
    border-top: 3vw solid #ffd000;
    border-left: 3vw solid #e33900;
    border-right: 3vw solid #00aede;
    border-bottom: 3vw solid #0066e3;

    /* border: 3vw solid #e33900; */
    position: absolute;
    top:0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    padding: 0 10vw;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: left;
    gap: 5px;
}

.homepage-content {
    display: flex;
    align-items: flex-start;
    gap: 2.5vw;
}

.profile-image {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.sticker-image {
    display: absolute;
    margin-left: 3px;
    vertical-align: -40%;
    position: relative;
}

.sticker-image img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15), 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    rotate: -40deg;
    filter: grayscale(100%);
}

.sticker-image:hover img {
    rotate: 0deg;
    filter: none;
}

.text-content:hover .sticker-image img {
    rotate: 0deg;
    filter: none;
}


.intro {
    position: relative;
}

.text-content {
    flex: 1;
}
.intro {
    font-size: 26px;
    font-weight: bold;
}
.intro + .introsmall {
    margin-top: 16px;
}
.sophialiu {
    font-family: peralta;
    font-size: 50px;
    color: #00aede;
    text-shadow: #0066e3 2.5px 2.5px;
    font-weight: lighter;
    margin-right: 5px;
}
.intro:hover .sophialiu {
    color: #e33900;
    text-shadow: #ffd000 2.5px 2.5px;
    transition: all .2s linear;
}
.introsmall {
    font-size: 22px;
}
.desdev {
    font-family: peralta;
    font-size: 28px;
    font-weight: regular;
    /* letter-spacing: 1px; */
}
.borzois {
    font-family: windsor;
    font-weight: bold;
    font-size: 1.2em;
}
.introsmall:hover .borzois {
    color: #e33900;
    background-color: #ffd000;
    transition: all .2s linear;
}
.research-interests {
    font-family: urbanist;
    font-size: 20px;
    margin-top: 16px;
    font-weight: bold;
}
.contact-email {
    font-family: jetbrains mono;
    font-size: 14px;
    margin-top: 0;
}
.intro:hover .desdev {
    color: #e33900;
    transition: all .2s linear;
}
.intro:hover .star {
    color: #0066e3;
    transition: all .2s linear;
}
.star {
    color: #e33900;
}


.contact {
    display: flex;
    gap: 10px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 30px;
    margin-bottom: 4px;
    align-items: center;
}

/* Slightly reduce space to the right of the first contact link (CV) and enlarge it */
.contact a:first-child {
    margin-right: -6px;
    font-size: 24px;
}

.nextpage {
    display: flex;
    flex-direction: row;
    font-size: 24px;
    align-items: baseline;
    gap: 6px;
    justify-content: left;
    cursor: pointer;
    margin-top: 28px;
    font-family: inherit;
}
.thingsworkedon {
    font-weight: bold;
    font-size: 24px;
    text-decoration: underline;
    text-decoration-color: #00aede;
    text-underline-offset: 2px;
}
.thingsworkedon:hover {
    color: #00aede;
    transition: all .2s linear;
}
/* .nextpage:hover > .thingsworkedon {
    color: #e33900;
    transition: all .2s linear;
}
.nextpage:hover > .pointer {
    color: #e33900;
    transition: all .2s linear;
}
.pointer {
    font-size: 27px;
    margin-top: 3px;
} */

/* why are there 4 */
.backcontainer-proj:hover > .back {
    color: #e33900;
    transition: all .2s linear;
}
.backcontainer-proj:hover > .backpointer {
    color: #e33900;
    transition: all .2s linear;
}
.backcontainer:hover > .back {
    color: #e33900;
    transition: all .2s linear;
}
.backcontainer:hover > .backpointer {
    color: #e33900;
    transition: all .2s linear;
}
.backpointer {
    font-size: 27px;
    position:relative;
    top:3px;
}

/* NAVBAR */
.navbar {
    display: flex;
    gap: 30px;
    margin: 8vh 0 0 7vw;
    align-self: flex-start;
    position: sticky;
    top: 4vh;
    z-index: 1;
}
ul {
    list-style-type: none;
    font-weight: bold;
    display: flex;
    flex-direction: row;
    align-items:baseline;
}
a {
    color: #0066e3;
    text-decoration: none;
}
li {
    font-size: 18px;
    rotate: -35deg;
    margin-left: -10px;
}
.swl {
    font-family: peralta;
    font-size: 48px;
    /* letter-spacing: 1px; */
    margin-top: -15px;
    color: #00aede;
    text-shadow: #0066e3 2.5px 2.5px;
}
.swl:hover {
    color: #e33900;
    text-shadow: #ffd000 2.5px 2.5px;
    cursor: pointer;
    transition: all .2s linear;
}
.active {
    font-family: peralta;
    font-size: 18px;
}
a:hover {
    color: #00aede;
    transition: all .2s linear;
}

/* WORK */
.page {
    border-top: 3vw solid #ffd000;
    border-left: 3vw solid #e33900;
    border-right: 3vw solid #00aede;
    border-bottom: 3vw solid #0066e3;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
}
.board {
    margin: 5vh 7vw 18vh 7vw;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    width: 80vw;
    gap: 2vw 3vw;
}
.card {
    width: 100%;
}

.cardtint {
    width: 100%;
    position:relative;
}
.cardtint:before {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(100% - 4px);
    background: none;
    transition: all .2s linear;
}
.cardtint:hover {
    cursor: pointer;
}
.wikirainbow:hover:before {
    background: rgba(11, 43, 80, 0.85);
    cursor: pointer;
}
.wvcblue:hover:before { 
    background:#70adbff1;
    cursor: pointer;
}
.spotifygreen:hover:before { 
    background:#65d46eea;
    cursor: pointer;
}
.brown:hover:before { 
    background:#4d9d9eee;
    cursor: pointer;
}
.red:hover:before { 
    background:#d33520ea;
    cursor: pointer;
}
.pink:hover:before { 
    background:#e8338ee9;
    cursor: pointer;
}
.blue:hover:before { 
    background:#6f95e6ec;
    cursor: pointer;
}
.darkgreen:hover:before { 
    background:#2f6e47e9;
    cursor: pointer;
}
.kekaiblue:hover:before { 
    background:#73c3aee9;
    cursor: pointer;
}
.wetubepurple:hover:before { 
    background:#9B59B6ea;
    cursor: pointer;
}

.cardinfo {
    display: none;
    position: absolute;
    width: 100%;
    box-sizing: border-box;
}
.cardtitle {
    font-size: 30px;
    font-weight: bold;
    color: white;
}
.carddescription {
    color: white;
    text-align: center;
    font-size: 18px;
}
.cardyear {
    color: white;
    font-size: 14px;
    font-family: jetbrains mono;
}
.cardtint:hover > .cardinfo {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
}
.wikirainbow .cardtitle,
.wikirainbow .carddescription,
.wikirainbow .cardyear {
    color: #ffffff;
}
h2 {
    font-size: 60px;
    font-family: windsor;
    margin: 5vh 0 0 7vw;
    font-weight: regular;
    width: 82vw;
}
.rec-label {
    font-size: 22px;
    margin: 10px 0 0 7vw;
    width: 82vw;
    font-family: urbanist;
    font-weight: normal;
}


@media screen and (max-width: 768px) {
    .board {
        grid-template-columns: 1fr;
    }
    .card {
        width: 100%;
    }
    .cardtint.wikirainbow, .cardtint.wvcblue, .cardtint.spotifygreen, .cardtint.brown, .cardtint.red, .cardtint.pink, .cardtint.blue, .cardtint.darkgreen, .cardtint.kekaiblue, .cardtint.wetubepurple {
        width: 100%;
    }
    .cardinfo {
        width: 100%;
    }
    
}


/* 7/13/2024 */
.blog-image {
    width: 60%;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.233);
    margin-bottom: 2vh;
}
.image-plus-desc {
    margin-bottom: 4vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.image-desc {
    width: 60%;
    font-size: 16px;
    font-style: italic;
    text-align: center;
}
.blog-header {
    font-weight: bold;
    font-size: 21px;
}
/* 7/25/24 */
.alison-letter-body {
    font-family: Georgia;
    font-size: 18px;
    line-height: 30px;
    color: black;
}
.letter-link {
    color: #0066e3;
    text-decoration: underline 1px #00aede;
    text-underline-offset: 4px;
}
.letter-link:hover {
    color: #00aede;
    text-decoration: underline 1px #00aede;
    transition: all .2s linear;
}
#update-line {
    border: none;
    margin-top: 100px;
    border-top: 5px dashed #e33900;
    margin-bottom: 100px;
}
#update-line-lecture {
    border: none;
    margin-top: 100px;
    border-top: 5px dashed #e33900;
    margin-bottom: 100px;
}
#update-line-catherine-liu {
    border: none;
    margin-top: 100px;
    border-top: 5px dashed #e33900;
    margin-bottom: 100px;
}
#update-line-summer {
    border: none;
    margin-top: 100px;
    border-top: 5px dashed #e33900;
    margin-bottom: 100px;
}
#update-line-ted {
    border: none;
    margin-top: 100px;
    border-top: 5px dashed #e33900;
    margin-bottom: 100px;
}
/* Twitter embeds */
.twitter-tweet {
    margin: 0 auto;
    display: block;
}

/* contact icons */
.contact-icon {
    width: 28px;
    height: 28px;
    fill: #0066e3;
    transition: all .2s linear;
}

.contact-icon:hover {
    fill: #00aede;
}

/* RESPONSIVE HOMEPAGE */
@media screen and (max-width: 900px) {
    .homepage-content {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        gap: 2vh;
    }
    
}

/* Move sticker above text on small screens */
@media screen and (max-width: 600px) {
    .sticker-image {
        position: absolute;
        top: -80px;
        right: 0;
        left: auto;
        display: block;
        margin: 0;
    }
    
    .sticker-image img {
        filter: grayscale(100%);
        width: 90px;
        height: 90px;
    }
}


/* For short screens - reduce font sizes to fit */
@media screen and (max-height: 667px) {
    .intro {
        font-size: 18px;
    }
    .sophialiu {
        font-size: 36px;
    }
    .introsmall {
        font-size: 16px;
    }
    .research-interests {
        font-size: 12px;
    }
    .thingsworkedon {
        font-size: 18px;
    }
    .contact {
        font-size: 14px;
    }
    .contact a:first-child {
        font-size: 18px;
    }
    .contact-email {
        font-size: 10px;
    }
    .contact-icon {
        width: 20px;
        height: 20px;
    }
    /* Reduce gaps between sections */
    .intro + .introsmall {
        margin-top: 8px;
    }
    .research-interests {
        margin-top: 8px;
    }
    .contact {
        margin-top: 12px;
    }
    .nextpage {
        margin-top: 16px;
        margin-bottom: 20px;
    }
    /* Add space above intro on short screens */
    .intro:first-of-type {
        margin-top: 80px;
    }
    /* Keep image visible on short screens */
    .sticker-image {
        position: absolute;
        top: -25px;
        right: 0;
        left: auto;
        display: block;
        margin: 0;
    }
    .sticker-image img {
        width: 60px;
        height: 60px;
    }
}

/* FOR PHONES */
@media screen and (max-width: 460px) {
    body {
        line-height: 1.4;
    }
    
    .homepage-content {
        gap: 1.5vh;
    }
    
    /* Reduce spacing between "I'm a" and "I'm exploring" on mobile */
    .homepage-content div[style*="height: 12px"] {
        height: 6px !important;
    }
    
    .profile-image {
        position: absolute;
        top: 0;
        left: 0;
    }
    
    .profile-image img {
        width: 80px;
        height: 80px;
    }
    
    .intro-section-mobile {
        display: flex;
        align-items: flex-start;
        gap: 15px;
        margin-left: 100px;
    }
    
    .intro-text-mobile {
        flex: 1;
    }
    
    .introsmall {
        margin-top: 6px;
    }
    .blog-image {
        width: 80vw;
    }
    .image-desc {
        width: 80vw;
    }
    
    /* Make 30vw images full width on mobile */
    .blog-image[style*="width: 30vw"] {
        width: 80vw !important;
    }
    .sophialiu {
        font-family: peralta;
        font-size: 44px;
        color: #00aede;
        text-shadow: #0066e3 2px 2px;
        font-weight: lighter;
        margin-right: 5px;
    }
    .sophialiu:hover {
        color: #e33900;
        text-shadow: #ffd000 2px 2px;
        transition: all .2s linear;
    }
    .intro {
        font-size: 22px;
    }
    .introsmall {
        font-size: 18px;
    }
    .research-interests {
        font-size: 16px;
        margin-top: 10px;
    }
    .thingsworkedon {
        font-size: 21px;
    }
    .nextpage {
        gap: 6px;
        margin-top: 6px;
        align-items: flex-start; /* keep left aligned on mobile */
    }
    .navbar {
        margin: 6vh 0 0 7vw;
        top: 4vh;
        gap: 30px;
    }
    ul {
        display: flex;
        flex-direction: row;
        align-items: baseline;
    }
    .swl {
        font-size: 42px;
        text-shadow: #0066e3 2px 2px;
    }
    .swl:hover {
        color: #e33900;
        text-shadow: #ffd000 2px 2px;
        cursor: pointer;
        transition: all .2s linear;
    }
    li {
        font-size: 14px;
        rotate: -35deg;
        margin-right: 10px;
    }
    .active {
        font-size: 14px;
    }
    .cardinfo {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: 100%;
        padding: 30px;
    }
    .cardtitle {
        font-size: 28px;
    }
    .carddescription {
        font-size: 14px;
    }
    .wikirainbow:before {
        background: rgba(11, 43, 80, 0.75);
        cursor: pointer;
    }
    .wvcblue:before {
        background:#70adbfd6;
        cursor: pointer;
    }
    .spotifygreen:before { 
        background:#65d46ed8;
        cursor: pointer;
    }
    .brown:before { 
        background:#4d9d9ee1;
        cursor: pointer;
    }
    .red:before { 
        background:#d33520d0;
        cursor: pointer;
    }
    .pink:before { 
        background:#e8338ed4;
        cursor: pointer;
    }
    .blue:before { 
        background:#6f95e6dc;
        cursor: pointer;
    }
    .darkgreen:before { 
        background:#2f6e47d5;
        cursor: pointer;
    }
    .kekaiblue:before { 
        background:#73c3aee0;
        cursor: pointer;
    }
    .wetubepurple:before { 
        background:#9B59B6d8;
        cursor: pointer;
    }
    .contact {
        font-size: 16px;
        font-weight: bold;
        margin-top: 18px;
    }
    .contact-email {
        margin-bottom: 14px;
    }
    .borzoitest {
        text-decoration: underline;
        text-decoration-color: #00aede;
        text-underline-offset: 2px;
        font-weight: bold;
    }
    /* Fix blog index margins for mobile */
    .blogbar {
        margin: 0 0 0 5vw;
        width: 90vw;
    }
    .informal-entries {
        margin-left: 0;
    }
}

/* FOR SMALL PHONES (regular iPhones, etc.) */
@media screen and (max-width: 414px) {
    .navbar {
        margin: 5vh 0 0 6vw;
        gap: 25px;
    }
    .swl {
        font-size: 38px;
        text-shadow: #0066e3 2px 2px;
    }
    li {
        font-size: 13px;
        margin-right: 9px;
    }
    .active {
        font-size: 13px;
    }

}


.footer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding-bottom: 28px;
    bottom: 0;
    position: absolute;
}

/* Blog index footer: add extra space above icons */
.footer .contact {
    margin-top: 42px;
}

/* whole vibe catalog */
.projtitle.wvc {
    font-family: windsor;
    font-weight: normal;
    font-size: 50px;
}

video {
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.233);
}

/* Small blog video: compact on desktop, full width on mobile */
.blog-video-small {
    width: 100%;
    max-width: 400px;
    display: block;
    margin: 1.5rem auto;
    border-radius: 12px;
}

@media screen and (max-width: 600px) {
    .blog-video-small {
        max-width: 100%;
    }
}
.blog-heading {
    font-weight: bold;
    font-size: 45px;
    width: 100%;
    text-align: center;
}
.demo-outer {
    width: 80vw;
    margin-left: 7vw;
    margin-bottom: 100px;
}
.demo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 100px;
    margin-bottom: 100px;
}
.video-plus-desc {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 40px;
}
.video-desc {
    width: calc(80vw - 60% - 40px);
    font-size: 20px;
}
.vid-number {
    font-size: 45px;
    font-weight: bold;
}
.windsor-font {
    font-family: windsor;
}
.helvetica-neue-bold-font {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: bold;
    letter-spacing: -0.5px;
}
.gap {
    height: 100px;
}
@media screen and (max-width: 800px) {
    .video-plus-desc {
        flex-direction: column;
    }
    video {
        width: 80vw;
    }
    .video-desc {
        width: 80vw;
    }
}
@media screen and (max-width: 480px) {
    .projtitle.wvc {
        font-family: windsor;
        font-size: 55px;
    }
    .blog-heading {
        font-size: 36px;
    }
    .vid-number {
        font-size: 40px;
    }
}

/* kekai */
.gif-desc {
    margin-top: 5px;
    /* width: 60%; */
    font-size: 14px;
    font-style: italic;
    text-align: center;
}
.kekai-logo {
    width: 200px;
    margin-bottom: 10px;
}
.kekaigif {
    width: 380px;
    margin-top: 16px;
    margin-bottom: 5px;
}
@media screen and (max-width: 1050px) {
    .kekaigif {
        width: 100%;
    }
    .kekaigifcontainer {
        order: 2;
    }
}
.kekaigifcontainer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-content: center;
    margin-bottom: 50px;
}



/* soph.ai */
.large-iframe {
    margin-top: 5px;
}
.sophaipage {
    border-top: 3vw solid #ffd000;
    border-left: 3vw solid #e33900;
    border-right: 3vw solid #00aede;
    border-bottom: 3vw solid #0066e3;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
}
.sophdotai {
    margin: 0 7vw 5vh 7vw;
    display: flex;
    gap: 3vw;
}
.gifcontainer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-content: center;
}
.back {
    font-size: 22px;
    font-weight: bold;
}
.backcontainer {
    margin: 6vh 0 6vh 0;
}
.backcontainer-proj {
    margin: 4vh 0 4vh 7vw;
}
.backarrow {
    font-size: 18px;
}
.back:hover {
    color: #e33900;
    transition: all .1s linear;
}
.projtitle {
    margin: -2px 0 0.5vh 0;
    font-family: jetbrains mono;
    font-weight: bold;
    font-size: 48px;
}
.projyear {
    font-family: jetbrains mono;
    font-size: 14px;
    font-weight: bold;
    margin: 0 0 0 0;
}
.projyear.kekai {
    margin: 0 0 6px 0;
}
.projsubtitle {
    margin-bottom: 3vh;
    font-size: 18px;
    font-weight: bold;
}
.gif {
    width: 500px;
    margin-top: 16px;
    margin-bottom: 5px;
}
.gifplaylist {
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    margin-top: 5px;
    margin-bottom: 10vh;
}
.gifplaylist:hover {
    color: #00aede;
    transition: all .2s linear;
}
.playlistname {
    font-family: jetbrains mono;
}
.words {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-bottom: 10vh;
}
.projdesc {
    font-size: 28px;
}
.projdescsmall {
    font-size: 20px;
}
.borzoitest {
    text-decoration: underline;
    text-decoration-color: #00aede;
    text-underline-offset: 2px;
    font-weight: bold;
}
.borzoitest:hover {
    color: #00aede;
    transition: all .2s linear;
}


@media screen and (max-width: 1050px) {
    .sophdotai {
        flex-direction: column;
    }
    .projtitle {
        font-size: 48px;
    }
    .gifcontainer {
        order: 2;
    }
    .words {
        order: 1;
        padding-bottom: 0;
    }
    .gif {
        width: 100%;
    }
    .sophaipage {
        bottom: auto;
    }
}


/* blog index */
.blogindex {
    border-top: 3vw solid #ffd000;
    border-left: 3vw solid #e33900;
    border-right: 3vw solid #00aede;
    border-bottom: 3vw solid #0066e3;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    margin: auto;
}
.blogbar {
    margin: 0 auto;
    font-size: 20px;
    font-weight: bold;
    font-family: jetbrains mono;
    width: 80vw;
}
.blogindex h2 {
    text-align: center;
    margin: 5vh auto 0 auto;
    width: 80vw;
}
.page h2 {
    text-align: center;
    margin: 5vh auto 0 auto;
}
.rec-label {
    text-align: center;
    margin: 10px auto 0 auto;
    width: 80vw;
    font-weight: normal;
}

/* Keep links inside rec-label bold */
.rec-label .borzoitest {
    font-weight: bold;
}

.informal-entries {
    margin-top: 5vh;
    font-family: jetbrains mono;
    font-weight: lighter;
    display: flex;
    flex-direction: column;
    align-items: center; /* center children to allow symmetric snake */
    margin-bottom: 1vh;
}
.blog-entry {
    margin-bottom: 54px;
    display: flex;
    rotate: 0deg;
    font-size: 24px;
}

/* Reset snaking: straight vertical list */
.informal-entries .blog-entry { transform: none; }

/* Disable staggering on small screens */
@media screen and (max-width: 600px) {
    .informal-entries .blog-entry { transform: none; }
    /* Left-align titles and dates on mobile */
    .blog-entry a { align-items: flex-start; text-align: left; }
    .blog-entry b { text-align: left; }
    .blog-entry .date { text-align: left; }
}

/* Larger blog titles on index */
.blog-entry b {
    font-size: 28px;
    display: block;
    text-align: center;
}


.date {
    font-size: 18px;
}

/* Use Urbanist font for blog index titles and dates */
.informal-entries .blog-entry b {
    font-family: urbanist;
}
.informal-entries .date {
    font-family: jetbrains mono;
}

/* Center date under title on blog index */
.blog-entry .date {
    display: block;
    text-align: center;
}
/* Ensure title and date stack and center together */
.blog-entry a {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
/* Remove extra break spacing between title and date and control gap explicitly */
.blog-entry a br {
    display: none;
}
.blog-entry .date {
    margin-top: 6px;
}

/* Two-column blog index on wide screens (disabled: revert to single column) */

/* blog page */
.blogpage {
    border-top: 3vw solid #ffd000;
    border-left: 3vw solid #e33900;
    border-right: 3vw solid #00aede;
    border-bottom: 3vw solid #0066e3;
    position: absolute;
    top:0;
    left: 0;
    right: 0;
    margin: auto;
}
.blogstuff {
    margin: 4vh 7vw 18vh 7vw;
    height: fit-content;
}
.blog-heading {
    margin-bottom: 5vh;
}
.blog-title {
    font-size: 45px;
    margin-bottom: 1vh;
    font-family: peralta;
}
h1 {
    margin-bottom: 1vh;
}
.blog-desc {
    font-size: 18px;
}
.blog-date {
    font-family: jetbrains mono;
    font-size: 14px;
    margin-top: 1vh;
}
.blog-body {
    /* letter-spacing: 0.2; */
    font-size: 21px;
    margin-bottom: 5vh;
}

.blog-body-bcourses {
    /* letter-spacing: 0.2; */
    color: #2a2a2a;
    font-family: bc sans;
    font-size: 16px;
    margin-bottom: 5vh;
}
.blog-body-bcourses-bold {
    /* letter-spacing: 0.2; */
    color: #2a2a2a;
    font-family: bc sans bold;
    font-size: 16px;
    margin-bottom: 5vh;
}
@media screen and (max-width: 430px) {
    .inprogress {
        margin-top:4vh;
    }
    .blog-title {
        font-size: 42px;
    }
}

/* youtube */
@media screen and (max-width: 780px) {
    .youtube {
        width: 100%;
    }
}

/* blog specific */
/* 12/4/23 */
.playlists {
    display: flex;
    flex-direction: column;
    gap: 36px;
}
.playlist-desc {
    font-size: 16px;
    font-family: jetbrains mono;
    margin-bottom: 10px;
}
.playlist-desc-comment {
    font-size: 18px;
    margin-bottom: 10px;
    margin-top: 10px;
}
/* 1/4/24 */
.haiku-image {
    width: 68vw;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.233);
    margin-bottom: 4vh;
}
.haiku-book {
    width: 68vw;
    display: flex;
    flex-direction: row;
    gap: 4vw;
    margin-bottom: 4vh;
}
.haiku-image-small {
    width: 32vw;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.233);
}
.spotify-book {
    width: 54vw;
    display: flex;
    flex-direction: row;
    gap: 2vw;
    margin-bottom: 4vh;
}
.spotify-image-small {
    width: 26vw;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.233);
}
@media screen and (max-width: 460px) {
    .blog-entry {
        font-size: 22px;
    }
    .blog-entry b {
        font-size: 26px;
    }
    .date {
        font-size: 18px;
    }
    .haiku-book {
        width: 80vw;        
        display: flex;
        flex-direction: column;
        gap: 2vw;
        margin-bottom: 4vh;
    }
    .haiku-image-small {
        width: 80vw;
    }
    .spotify-book {
        width: 80vw;
        display: flex;
        flex-direction: row;
        gap: 2vw;
        margin-bottom: 4vh;
    }
    .spotify-image-small {
        width: 39vw;
        box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.233);
    }
}

/* key stuff */
.youtube {
    display: block;
    margin: 0 auto;
}

@font-face {
    font-family: urbanist;
    src: url('./media/fonts/Urbanist-VariableFont_wght.ttf');
}
@font-face {
    font-family: swungnote;
    src: url('./media/fonts/SwungNote.otf');
}
@font-face {
    font-family: peralta;
    src: url('./media/fonts/Peralta-Regular.ttf');
}
@font-face {
    font-family: jetbrains mono;
    src: url('./media/fonts/JetBrainsMono-VariableFont_wght.ttf');
}
@font-face {
    font-family: Georgia;
    src: url(./media/fonts/NotoSerif-VariableFont_wdth\,wght.ttf);
}
@font-face {
    font-family: windsor;
    src: url(./media/fonts/Windsor\ Regular.ttf);
}
@font-face {
    font-family: bc sans;
    src: url(./media/fonts/2023_01_01_BCSans-Regular_2f.ttf);
}
@font-face {
    font-family: bc sans bold;
    src: url(./media/fonts/2023_01_01_BCSans-Bold_2f.ttf);
}
::-moz-selection { /* Code for Firefox */
    background: #ffd000;
    color:#e33900;
  }
  
  ::selection {
    background: #ffd900;
    color:#e33900;
  }

/* Album Art Grid */
.album-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 4vh 0;
    width: 100%;
}

.album-grid.small {
    grid-template-columns: repeat(10, 1fr);
    gap: 8px;
}

.album-grid.small .album-popup {
    font-size: 10px;
    padding: 4px 6px;
    line-height: 1.2;
}

.album-grid.small .album-popup .song-title,
.album-grid.small .album-popup .artist-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    margin-bottom: 2px;
}

.album-grid.small .album-popup .added-date {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    font-size: 8px;
    margin-bottom: 0;
}

.album-grid.medium {
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}

.album-grid.large {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.album-cover {
    aspect-ratio: 1;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
}

.album-cover:hover {
    box-shadow: 4px 4px 16px rgba(0, 0, 0, 0.2);
}

.album-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.album-popup {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 102, 227, 0.8);
    color: white;
    padding: 12px;
    font-size: 14px;
    line-height: 1.4;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    font-family: jetbrains mono;
}

.album-cover:hover .album-popup {
    opacity: 1;
}

.album-popup .song-title {
    font-weight: bold;
    margin-bottom: 4px;
}

.album-popup .artist-name {
    margin-bottom: 6px;
    opacity: 0.9;
}

.album-popup .play-link {
    color: white;
    text-decoration: none;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 4px;
    display: block;
}

.album-popup .play-link:hover {
    color: #f0f0f0;
}

.album-popup .added-date {
    font-size: 11px;
    opacity: 0.8;
}

.loading-container, .error-container {
    text-align: center;
    margin: 4vh 0;
    font-family: jetbrains mono;
    font-size: 14px !important;
}

.loading-container .blog-body, .error-container .blog-body {
    font-size: 14px !important;
}

/* Album Modal */
.album-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 102, 227, 0.4);
    cursor: pointer;
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 0;
    max-width: 400px;
    width: 100%;
    max-height: 90vh;
    overflow: visible;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    margin: 0 auto;
}


.modal-album-cover {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 0;
}

.modal-album-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.modal-album-info {
    position: relative;
    padding: 20px;
    background: rgba(0, 102, 227, 0.95);
    color: white;
    border-radius: 0;
}

.modal-song-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
    font-family: jetbrains mono;
}

.modal-artist-name {
    font-size: 16px;
    margin-bottom: 12px;
    opacity: 0.9;
    font-family: jetbrains mono;
}

.modal-play-link {
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: jetbrains mono;
}

.modal-play-link:hover {
    color: #f0f0f0;
}

.modal-added-date {
    font-size: 13px;
    opacity: 0.8;
    font-family: jetbrains mono;
}

/* Castaways static display styling */
.castaways-display {
    max-width: 400px;
    width: 100%;
    margin: 40px auto;
    background: white;
    border-radius: 0;
}

.castaways-album-cover {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 0;
}

.castaways-album-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.castaways-album-info {
    padding: 20px;
    background: rgba(0, 102, 227, 0.95);
    color: white;
    border-radius: 0;
}

.castaways-song-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
    font-family: jetbrains mono;
}

.castaways-artist-name {
    font-size: 16px;
    margin-bottom: 12px;
    opacity: 0.9;
    font-family: jetbrains mono;
}

.castaways-play-link {
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: jetbrains mono;
}

.castaways-play-link:hover {
    color: #f0f0f0;
}

.castaways-added-date {
    font-size: 13px;
    opacity: 0.8;
    font-family: jetbrains mono;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0066e3;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Collection info */
.collection-info {
    margin: 2vh 0 3vh 0;
}

.collection-info p {
    margin: 1vh 0;
    font-size: 18px;
    font-family: jetbrains mono;
}

.collection-info .blog-body {
    font-family: jetbrains mono;
}

/* Mobile: Stack collection info on separate lines */
@media (max-width: 768px) {
    .collection-info p {
        margin: 8px 0;
        font-size: 16px;
    }
}

/* Sort and Display Controls */
.controls-container {
    margin: 3vh 0;
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.sort-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-label {
    font-size: 16px;
    font-weight: normal;
    color: #0066e3;
    font-family: jetbrains mono;
}

.sort-dropdown {
    padding: 6px 8px;
    font-size: 16px;
    border: 2px solid #00aede;
    border-radius: 4px;
    background: transparent;
    color: #00aede;
    cursor: pointer;
    font-family: jetbrains mono;
    font-weight: normal;
    height: 36px;
    box-sizing: border-box;
}

/* Blog index sort dropdown: match label size and keep compact width */
#blog-sort.sort-dropdown {
    font-size: 16px;
    font-weight: normal;
    width: 240px;
    text-align: center;           /* center in Safari */
    text-align-last: center;      /* center in Chrome/Firefox */
    color: #0066e3;
    border-color: #0066e3;
}

@media screen and (max-width: 768px) {
    #blog-sort.sort-dropdown {
        width: 100%;
    }
}

#blog-sort.sort-dropdown option {
    text-align: center;
}

.sort-dropdown:focus {
    outline: none;
    border-color: #0066e3;
    box-shadow: 0 0 0 2px rgba(0, 102, 227, 0.3);
}

/* Rainbow ombre background when color sorting is selected */
.sort-dropdown.rainbow-bg {
    background: linear-gradient(135deg, 
        #ffb3ba 0%,    /* pastel red */
        #ffdfba 16%,   /* pastel orange */
        #ffffba 32%,   /* pastel yellow */
        #baffc9 48%,   /* pastel green */
        #bae1ff 64%,   /* pastel blue */
        #e6baff 80%,   /* pastel purple */
        #f0f0f0 100%   /* light grey */
    );
    color: #0066e3;
    font-weight: normal;
    border: none;
}

/* Display options */
.display-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.display-label {
    font-size: 16px;
    font-weight: normal;
    color: #0066e3;
    font-family: jetbrains mono;
}

    .display-options {
        display: flex;
        gap: 8px;
        width: 100%;
        justify-content: stretch;
    }

.display-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    font-size: 16px;
    border: 2px solid #00aede;
    border-radius: 4px;
    background: transparent;
    color: #00aede;
    cursor: pointer;
    font-family: jetbrains mono;
    font-weight: normal;
    transition: all 0.2s ease;
    height: 36px;
    box-sizing: border-box;
}

.display-btn:hover {
    background: rgba(0, 174, 222, 0.1);
}

.display-btn.active {
    background: #00aede;
    color: white;
}

.display-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 174, 222, 0.3);
}

/* Responsive design for controls */
@media screen and (max-width: 768px) {
    .controls-container {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        width: 100%;
    }
    
    .sort-container, .display-container {
        flex-direction: column;
        align-items: center;
        gap: 8px;
        width: 100%;
    }
    
    .sort-dropdown {
        font-size: 14px;
        padding: 8px 10px;
        height: 40px;
        width: 100%;
        max-width: none;
    }
    
    .display-btn {
        font-size: 14px;
        padding: 8px 10px;
        height: 40px;
        flex: 1;
    }
    
    .display-options {
        gap: 10px;
    }
}

/* Responsive design for album grid */
@media screen and (max-width: 768px) {
    .album-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .album-grid.small {
        grid-template-columns: repeat(6, 1fr);
        gap: 6px;
    }
    
    .album-grid.medium {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }
    
    .album-grid.large {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media screen and (max-width: 480px) {
    .album-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .album-grid.small {
        grid-template-columns: repeat(5, 1fr);
        gap: 4px;
    }
    
    .album-grid.medium {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    
    .album-grid.large {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    /* Disable hover popups on mobile */
    .album-cover:hover .album-popup {
        display: none;
    }
}
