/* =========================
   RESET
========================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}



html{

    background:black;

}



body{

    min-height:100vh;

    min-width:1200px;

    color:white;

    font-family:Arial, Helvetica, sans-serif;

    background-image:url("pics/carpfloor.jpg");

   

    background-repeat: repeat;

    background-position:center top;

    overflow-x:auto;
    
    

}





/* =========================
   FONT
========================= */


@font-face{

    font-family:"porter";

    src:url("fonts/porter-sans-inline-block-webfont.woff");

}





/* =========================
   HEADER
========================= */


header{

    text-align:center;

    padding:40px 20px;

}


header h1{

    font-size:3rem;

}


.welcome{

    display:block;

    font-family:"Bebas Neue";

    text-shadow:0 0 5px black;

}





.special-font{

    display:inline-block;

    padding:8px 20px;
    
   


    background:
    repeating-linear-gradient(
    0deg,
    #000,
    #000 3px,
    #111 4px
    );


    border-radius:12px;


    box-shadow:

    0 0 0 4px black,
    0 0 0 6px #ba0422,
    0 0 0 8px black,
    0 0 0 10px #ba0422,
    0 0 0 12px black,
    0 0 0 14px #ba0422,
    0 0 30px #ba0422;


}



.neon-text{

    font-family:"porter";

    font-size:72px;

    color:white;
    
   
    
    


    text-shadow:

    0 0 5px #ffd400,
    0 0 10px #ffd400,
    0 0 20px #ffd400,
    0 0 35px orange;


    animation:flicker 2s infinite;

}



@keyframes flicker{

0%,100%{
opacity:1;
}

20%{
opacity:.15;
}

21%{
opacity:1;
}

55%{
opacity:.1;
}

56%{
opacity:1;
}

}





/* =========================
   MAIN LAYOUT
========================= */


.links{

    display:flex;

    gap:20px;

    width:1200px;

    margin:30px auto;

    align-items:flex-start;

}





main{

    flex:0 0 930px;

}





/* =========================
 SIDEBAR
========================= */


.sidebar-wrapper{

    position:relative;

    flex:0 0 250px;

}



.sidebar-image{

    position:absolute;

    width:350px;

    left:50%;

    top:66%;

    transform:translate(-50%,-50%);

}



.sidebar{

    position:relative;

    z-index:2;

    left:30px;

    top:50px;


    width:200px;

    min-height:254px;
    

    padding:30px 10px;


    font-family:"Bebas Neue";

    font-size:28px;

    text-align:center;


    backdrop-filter:blur(6px);

}



.sidebar ul{

    list-style:none;

}


.sidebar a{

    color:white;

    text-decoration:none;

    display:block;

    padding:12px;


    text-shadow:
    0 0 5px black,
    0 0 10px black;


    transition:.3s;

}


.sidebar a:hover{

    color:red;

}





/* =========================
 TEXT PANEL
========================= */


/*.subtitle{


padding:30px;


font-family:Georgia,serif;


font-size:1.2rem;


line-height:1.8;


background:

repeating-linear-gradient(
0deg,
#000,
#000 3px,
#111 4px
);



border:2px solid #068c04;


border-radius:12px;



box-shadow:

inset 0 0 15px #068c04,
0 0 15px #068c04;


}



.subtitle p{

margin-bottom:1.25rem;

}*/

.subtitle {
    height: 50px;
}


.corkboard {
  
      position:relative;

    width:800px;

    height:500px;

    
  
  background-image:url("pics/cork.png");
  
  background-size:cover;
  
}

.welcome-paper{

    position:absolute;

    width:150px;
    height: auto;

    cursor:pointer;
    


    
   


    transition:.3s;

}

.welcome-paper:nth-child(1){

    top:80px;
    
    

    left:120px;
}


.welcome-paper:hover{

    transform:scale(1.1);

}



#paper-viewer{

    position:fixed;

    inset:0;

    background:rgba(0,0,0,.9);

    display:none;

    justify-content:center;

    align-items:center;

    z-index:9999;

}



#paper-viewer.active{

    display:flex;

}



#large-paper{
  
  

    max-width:700px;

    max-height:800px;

    box-shadow:
    0 0 50px black;


    animation:zoomPaper .4s ease;

}



@keyframes zoomPaper{


from{

transform:scale(.3);

opacity:0;

}


to{

transform:scale(1);

opacity:1;

}


}


.large-paper{

    position:relative;
   

    width:700px;
white-space: pre;
}



#large-paper{

    width:700px;

    display:block;
    
    margin: 0 auto;

}



.paper-writing{

    position:absolute;

    top: 101px;

    left:50px;

    width:500px;
    
    font-family: "Comic Sans MS" ;

    color:black;
    
    
    

}

.paper-writing p{
  line-height: 1.5; /* try 1.4–1.9 */
}

#paper-title {
  
  margin-bottom: -46px;
  
}


#close-paper {
  
  font-size: 40px;
  background:none;

border:none;

color:white;
 cursor:pointer; 
}

.tooltip-wrapper {
    position: relative;
    display: inline-block; /* Keeps the container the exact size of your image */
    cursor: pointer;       /* Changes mouse cursor to a hand pointer */
    
}

/* 2. Build the hidden "readme" tooltip badge */
.tooltip-wrapper::after {
    content: "readme";
    position: relative;
    color: black;
    font-family: "Comic Sans MS" ;
    font-size: 26px;
    /* Position it right in the center of the image */
    bottom: -150px;
    right: -150px;
    pointer-events: none;
   
}

.tooltip-wrapper:hover::after {
    opacity: 1;
    
}


/* =========================
 SHELF CAROUSEL
========================= */


#category{

    text-align:center;

    margin-top:40px;

    font-family:"Bebas Neue";

    font-size:40px;
transform: translateX(-250px);
}





.carousel{

    display:flex;

    align-items:center;

    justify-content:center;

    gap:30px;

    margin-top:30px;
transform: translateX(-250px);


}







.shelf-container{

    position:relative;

    width:930px;

    transition:

    transform .45s cubic-bezier(.22,1,.36,1);

}




.shelf{

    width:100%;

    display:block;

}





.movies{

    position:absolute;

    inset:0;

}





.movie-cover{

    position:absolute;

    width:80px;

    height:120px;

    object-fit:cover;


    cursor:pointer;


    box-shadow:

    0 4px 8px rgba(0,0,0,.4),
    0 10px 20px rgba(0,0,0,.5);



    transition:

    transform .25s ease;


}





.movie-cover:hover{

    transform:scale(1.5);

    z-index:100;

}

.arrow{
    width: 100px;
    height: 100px;
    font-size: 80px;
    border: none;
    background: none;
    cursor: pointer;
    transition: transform 0.2s ease;
    color: yellow;
    outline: none;
}

.arrow:hover {
  transform: scale(1.1);
}







/* =========================
 VIEWER
========================= */


#movie-viewer{

position:fixed;

inset:0;

background:rgba(0,0,0,.92);

display:none;

align-items:center;

justify-content:center;

gap:50px;

padding:50px;

z-index:9999;

}



#movie-viewer.active{

display:flex;

}



.viewer-left img{

width:350px;

border-radius:12px;

}



.viewer-right{

width:600px;

display:flex;

flex-direction:column;

gap:25px;

}



.info-box,
.review-box{

padding:20px;

background:#111;

border:2px solid #b80046;

border-radius:12px;

}

.rating-box{
  
  padding:20px;

background:#111;

border:2px solid #b80046;

border-radius:12px;
font-size: 20px;
}



#close-viewer{

position:relative;

top:-100px;

right:80px;

font-size:40px;

background:none;

border:none;

color:white;

cursor:pointer;

}





/* =========================
 POPCORN
========================= */


.popcorn-click{

position:fixed;

top:290px;

left:260px;

width:200px;

height:50px;

cursor:pointer;

/*border: 2px solid red;*/
z-index: 100000;
}



#popcorn-animation{

position:fixed;

top:290px;

left:260px;

font-size:80px;

opacity:0;

pointer-events:none;

z-index: 99999;

}



.popcorn-pop{

animation:popcornPop 1s forwards;

}



@keyframes popcornPop{


0%{

opacity:0;

transform:translateY(0) scale(.5);

}


30%{

opacity:1;

}


100%{

opacity:0;

transform:

translateY(-200px)

scale(1.5)

rotate(360deg);

}


}