body {
    margin: 0;
    min-height: 100vh;
    background: url('home_img/background.png') no-repeat center center/cover;
    background-color: black;
    position: relative;
    overflow: hidden;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

[class^="cigarette"] {
    position: fixed;
    transform: translate(-50%, -50%) rotate(-90deg);
    background: url('home_img/cig_png_new.png') no-repeat center center;
    background-size: contain;
    width: 604px;
    height: 402px;
    filter: drop-shadow(4px 3px 3px rgba(35, 35, 35, 0.7));
    flex-shrink: 0;
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
}

[class^="cigarette"]:hover {
    transform: translate(-50%, -65%) rotate(-90deg);
}

.pack {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 904px;
    height: 904px;
    background: url('home_img/pack_front.png') no-repeat center center;
    background-size: contain;
    z-index: 5000;
    pointer-events: none;
}

.menu-items {
    position: fixed;
    bottom: 20px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 15px;
    box-sizing: border-box;
    z-index: 5500;
}

.menu-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 180px;
    height: auto;
    cursor: pointer;
    transition: filter 0.3s ease-in-out;
}

.menu-item:hover {
    filter: blur(1px);
}

.menu-item img {
    width: 100%;
    height: auto;
    display: block;
}

@media screen and (max-width: 768px) {
    .menu-item {
        width: 160px;
    }
}

@media screen and (max-width: 480px) {
    .menu-item {
        width: 120px;
    }
    
    .menu-items {
        bottom: 10px;
        padding: 0 10px;
    }
}

@media screen and (max-width: 320px) {
    .menu-item {
        width: 100px;
    }
}

.blur-content [class^="cigarette"],
.blur-content .pack {
    filter: blur(5px) invert(1) grayscale(1);
    pointer-events: none;
    transition: filter 0.5s ease-in-out;
}

.blur-content {
    backdrop-filter: blur(5px) invert(1) grayscale(1);
    -webkit-backdrop-filter: blur(5px) invert(1) grayscale(1);
    transition: backdrop-filter 0.5s ease-in-out, -webkit-backdrop-filter 0.5s ease-in-out;
}

.blur-content .menu-item {
    filter: none;
    pointer-events: auto;
}

.panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out;
    z-index: 5001;
}

.panel.active {
    opacity: 1;
    visibility: visible;
}

.panel-content {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    padding: 25px;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.panel.active .panel-content {
    opacity: 1;
}

.hidden {
    display: none;
}

.close-btn {
    font-size: 24px;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 15px;
    color: white;
    z-index: 5002;
}

.text-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: black;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: white;
    font-family: Arial, Helvetica, sans-serif;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
                visibility 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                background-color 0.3s ease;
    z-index: 6000;
}

.text-container.active {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
                visibility 0s;
}

.close-text-btn {
    position: absolute;
    top: 25px;
    right: 25px;
    cursor: pointer;
    font-size: 18px;
    color: white;
}

#instructions-text, #information-text {
    max-width: 600px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(16px, 1.8vw, 22px);
    font-weight: 0;
    letter-spacing: -0.05rem;
    line-height: 1;
    text-wrap: balance;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

#instructions-text {
    text-align: left;
}

#information-text {
    text-align: left;
}

@media screen and (max-width: 768px) {
    #instructions-text, #information-text {
        font-size: clamp(16px, 1.8vw, 22px);
        max-width: 500px;
    }
}

@media screen and (max-width: 480px) {
    #instructions-text, #information-text {
        font-size: clamp(18px, 2vw, 24px);
        max-width: 400px;
        letter-spacing: -0.03rem;
    }
}

@media screen and (max-width: 320px) {
    #instructions-text, #information-text {
        font-size: clamp(20px, 2.2vw, 26px);
        max-width: 300px;
    }
}

.blur-content {
    backdrop-filter: blur(5px) invert(1) grayscale(1);
    -webkit-backdrop-filter: blur(5px) invert(1) grayscale(1);
    transition: backdrop-filter 0.5s ease-in-out, -webkit-backdrop-filter 0.5s ease-in-out;
}

.blur-content [class^="cigarette"],
.blur-content .pack {
    filter: blur(5px) invert(1) grayscale(1);
    pointer-events: none;
    transition: filter 0.5s ease-in-out;
}

[class^="cigarette"] {
    transition: transform 0.3s ease-in-out, filter 0.5s ease-in-out;
}

.pack {
    transition: filter 0.5s ease-in-out;
}

.panel {
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}

.panel-content {
    transition: opacity 0.5s ease-in-out;
}

.menu-item {
    color: white;
    z-index: 10000;
    isolation: isolate;
    mix-blend-mode: difference;
}

.blur-content .menu-items {
    filter: none;
    pointer-events: auto;
}

body {
    transition: backdrop-filter 0.5s ease-in-out;
}

.blur-content {
    backdrop-filter: blur(5px) invert(1) grayscale(1);
    -webkit-backdrop-filter: blur(5px) invert(1) grayscale(1);
    transition: backdrop-filter 0.5s ease-in-out, -webkit-backdrop-filter 0.5s ease-in-out;
}

[class^="cigarette"],
.pack,
.panel,
.panel-content {
    transition: all 0.5s ease-in-out;
}

#interview {
    position: relative;
    margin: 0;
    padding: 0;
    margin-top: 100px;
    padding-right: 5%;
    height: 80vh;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

#interview::-webkit-scrollbar {
    display: none;
}

.interview {
    bottom: 85px;
    width: calc(100% - 40%);
    max-height: calc(100vh - 200px);
    margin: 0 50px;
    padding: 20px;
    overflow-y: auto;
    position: relative;
    background: black;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
    display: flex;
    flex-direction: column;
    padding-top: 100px;
    padding-bottom: 100px;
}

.qa-container {
    display: flex;
    flex-direction: column;
    padding-bottom: 5px;
    width: 100%;
}

.qa-container:first-child {
    margin-top: 5%;
}

.qa-container:last-child {
    margin-bottom: 5%;
}s

.question {
    margin-left: 10px;
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 0;
    letter-spacing: -0.05rem;
    line-height: 1;
    position: relative;
    color: white;
    z-index: 1;
}

.answer {
    margin-left: 120px;
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 600;
    letter-spacing: -0.05rem;
    line-height: 1;
    position: relative;
    color: white;
    z-index: 1;
}

@media screen and (max-width: 768px) {
    .interview {
        width: calc(100% - 30%);
        margin: 0 30px;
    }
    .answer {
        margin-left: 90px;
    }
}

@media screen and (max-width: 480px) {
    .interview {
        width: calc(100% - 20%);
        margin: 0 20px;
    }
    .answer {
        margin-left: 60px;
    }
}

@media screen and (max-width: 320px) {
    .interview {
        width: calc(100% - 15%);
        margin: 0 15px;
    }
    .answer {
        margin-left: 40px;
    }
}

.interview::-webkit-scrollbar {
    width: 8px;
}

.interview::-webkit-scrollbar-track {
    background: transparent;
}

.interview::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.interview-name {
    margin-bottom: 15px;
    text-align: center;
    z-index: 1;
}

.interview-name img {
    max-width: 200px;
    height: auto;
}

.song-name {
    position: fixed;
    bottom: 20px;
    right: 15px;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    color: white;
    z-index: 6001;
    transition: filter 0.3s ease;
    letter-spacing: -0.025rem;
    font-family: Arial, Helvetica, sans-serif;
}

.color-change {
    position: fixed;
    bottom: 20px;
    left: 15px;
    font-size: 18px;
    text-transform: uppercase;
    font-weight: 600;
    color: white;
    cursor: pointer;
    z-index: 6001;
    transition: filter 0.3s ease;
    letter-spacing: -0.05rem;
    font-family: Arial, Helvetica, sans-serif;
}

.color-change:hover {
    filter: blur(1px);
}

.text-container.inverted .color-change {
    filter: invert(1) grayscale(1);
}

.text-container.inverted .color-change:hover {
    filter: invert(1) grayscale(1) blur(1px);
}

@media screen and (max-width: 768px) {
    .song-name,
    .color-change {
        font-size: 16px;
    }
}

@media screen and (max-width: 480px) {
    .song-name,
    .color-change {
        font-size: 14px;
        bottom: 15px;
    }
    .song-name {
        right: 10px;
    }
    .color-change {
        left: 10px;
    }
}

@media screen and (max-width: 320px) {
    .song-name,
    .color-change {
        font-size: 12px;
        bottom: 12px;
    }
}

.text-container.inverted {
    background: white;
}

.text-container.inverted .interview,
.text-container.inverted .interview-name img,
.text-container.inverted .song-name,
.text-container.inverted .close-text-btn {
    filter: invert(1) grayscale(1);
}

.text-container.inverted .question,
.text-container.inverted .answer {
    filter: invert(1) grayscale(1);
    color: black;
    -webkit-text-fill-color: black;
}

.text-container.inverted audio {
    filter: invert(0);
}

.cigarette1 {
    top: 50%;
    left: 50%;
    transform: translate(calc(-50% - 140px), -50%) rotate(-90deg);
}

.cigarette2 {
    top: 55%;
    left: 50%;
    transform: translate(calc(-50% - 110px), -50%) rotate(-90deg);
}

.cigarette3 {
    top: 47%;
    left: 50%;
    transform: translate(calc(-50% - 95px), -50%) rotate(-90deg);
    z-index: 800;
}

.cigarette4 {
    top: 46%;
    left: 50%;
    transform: translate(calc(-50% + 95px), -50%) rotate(-90deg);
    z-index: 200;
}

.cigarette5 {
    top: 57%;
    left: 50%;
    transform: translate(calc(-50% + 110px), -50%) rotate(-90deg);
    z-index: 800;
}

.cigarette6 {
    top: 52%;
    left: 50%;
    transform: translate(calc(-50% + 140px), -50%) rotate(-90deg);
    z-index: 300;
}

.cigarette1:hover {
    transform: translate(calc(-50% - 140px), -65%) rotate(-90deg);
}

.cigarette2:hover {
    transform: translate(calc(-50% - 110px), -65%) rotate(-90deg);
}

.cigarette3:hover {
    transform: translate(calc(-50% - 95px), -65%) rotate(-90deg);
}

.cigarette4:hover {
    transform: translate(calc(-50% + 95px), -65%) rotate(-90deg);
}

.cigarette5:hover {
    transform: translate(calc(-50% + 110px), -65%) rotate(-90deg);
}

.cigarette6:hover {
    transform: translate(calc(-50% + 140px), -65%) rotate(-90deg);
}

.underline {
    text-decoration: underline;
    color: white;
}

.underline:hover {
    color: #FAF9F6;
    text-decoration: none;
}

.random-cig-image {
    position: fixed;
    width: 30vw;
    height: 30vw;
    opacity: 0.5;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 6000;
}

.text-container.inverted .random-cig-image {
    filter: invert(1) grayscale(1);
    position: fixed;
}