body {
    background-color: rgb(227, 207, 246);
    margin: 0;
    padding: 0;
}

/* --- HEADER --- */
h1 {
    position: absolute;
    top: 3%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Minecraft';
    font-size: 6vw; /* scales with screen width */
    text-align: center;
}

a{
    color: rgb(227, 207, 246);
}

.back2shelf{
    height: 110px;
    width: 110px;
    margin-left: 180px;
    margin-top: 10px;
    position: relative;
}

.back2shelfA{
    height: 50px;
    width: 50px;
    margin-left:    -36px;
    margin-bottom: 10px;
    position: relative;
}


/* --- DVD IMAGE --- */
.dvdopport {
    width: 45vw;
    max-width: 800px;
    /* position: absolute; */
    /* top: 190px;
    left: 50px; */
    transition: transform 2s ease;
    margin-left: 3em;
}

.dvdopport:hover {
    transform: scale(1.1);
    z-index: 2;
}

/* --- CONTAINER FOR FIRST SECTION --- */
.container {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
    padding-top: 9em;
    gap: 2em;
}

.sum {
    max-width: 600px;
    font-size: 1.2rem;
    line-height: 1.8;
    background-color: rgb(216, 188, 243);
    box-shadow: 10px 10px 5px rgb(22, 41, 47);
    font-family: 'Minecraft';
    border: 2px solid;
    padding: 1em;
    margin: 0 auto;
}

/* --- SECTION LAYOUT --- */
section {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2em;
    margin-top: 5em;
    padding: 2em;
}

/* --- TV CONTAINER --- */
.tv-container {
    position: relative;
    width: min(90vw, 600px); /* responsive width, caps at 600px */
    margin: 0 auto;
}

.crv {
    width: 100%;
    height: auto;
    display: block;
}

/* iframe inside TV screen area */
.frame {
    position: absolute;
    top: 10%;  /* adjust for your specific TV image */
    left: 14%;
    width: 74%;
    height: 57%;
    border: none;
    border-radius: 10px;
}

/* --- OVERVIEW TEXT --- */
.overview {
    font-family: 'Minecraft';
    background-color: rgb(216, 188, 243);
    box-shadow: 10px 10px 5px rgb(22, 41, 47);
    font-size: 1.1rem;
    max-width: 450px;
    border: 2px solid;
    padding: 1em;
    line-height: 1.5;
    margin-top: 7em;
}

/* --- SECOND PARAGRAPH --- */
.overview2 {
    font-family: 'Minecraft';
    background-color: rgb(216, 188, 243);
    box-shadow: 10px 10px 5px rgb(22, 41, 47);
    font-size: 1.1rem;
    max-width: 900px;
    border: 2px solid;
    padding: 1em;
    line-height: 1.6;
    margin: 4em auto;
}


/* DVD bouncing background logo (CSS version) */
.dvdlogo {
    position: fixed;
    top: 0;
    left: 0;
    width: 150px;
    height: 100px;
    z-index: 0;
    animation: dvd-bounce 10s linear infinite alternate;
    opacity: 0.2; /* light so it doesn’t distract */
    pointer-events: none; /* don’t block clicks */
  }
  
  .dvdlogo img {
    width: 100%;
    height: auto;
  }
  
  @keyframes dvd-bounce {
    0%   { top: 0; left: 0; }
    25%  { top: 0; left: calc(100% - 150px); }
    50%  { top: calc(100% - 100px); left: calc(100% - 150px); }
    75%  { top: calc(100% - 100px); left: 0; }
    100% { top: 0; left: 0; }
  }
  



/* --- MEDIA QUERIES FOR RESPONSIVENESS --- */
@media (max-width: 1024px) {
    section {
        flex-direction: column;
        align-items: center;
    }

    .overview {
        max-width: 90%;
        text-align: center;
    }

    .frame {
        top: 10%;
        left: 13%;
        width: 74%;
        height: 57%;
    }
}

@media (max-width: 600px) {
    h1 {
        font-size: 9vw;
    }

    .sum, .overview, .overview2 {
        font-size: 1rem;
        line-height: 1.4;
    }

    .frame {
        top: 10%;
        left: 14%;
        width: 74%;
        height: 57%;
    }
    .back2shelf {
        height: 70px;
        width: 70px;
        margin-left: 20px;
    }

    .back2shelfA {
        height: 30px;
        width: 30px;
        margin-left: -20px;
    }
}

@font-face {
    font-family: 'Minecraft';
    src: url('fonts/Minecraft.ttf') format('truetype');
}
