/* *********              General page setup... K I S S            ********** */ 

* {
	margin: 0;
	padding: 0;
}

* {
  box-sizing: border-box;
}


/* border box sets box dimension to include all margin and padding */


/*  Box-sizing: border-box; Incorporates margins and padding into the height and width dimensions
    make the divisions all the same 'size' in appearance */



img {
	width: 100%;
}

.navlink {
    max-width: 12em;
}

li {
	list-style-type: none;
}

#head {
    background-color: #171721;
    background-image: url(../images/header-bg.png);
    background-repeat: no-repeat;
}


/* *********  Navigation Control, div "bod" quote banner, and footer  ********** */ 


#nav {
	display: flex;
    justify-content: space-between;

}

#nav li {
	padding-right: 1em;
    padding-left: 1em;
    
}


#nav2 {
	display: flex;
    justify-content: space-between;

}

#nav2 li {
	padding-right: 1em;
    padding-left: 1em;
    
}

#bod {
    background-color: #333F50;
    padding-top: 1em;
    padding-left: 0.5em;
    padding-right: 0.5em;
    padding-bottom: 0.75em;
}

#footer {
    background-color: #333F30;
    padding-left: 1em;
    padding-bottom: 0em;
  }

#footer p {
    font-size: 1rem;
}

#validation {
                text-align: right;
    color: aqua;
    text-decoration: none;
}

.refs {
    color: aqua;
    text-decoration: none;
    
}

                                                                 /* *********              Main Page Picture slider          ********** */ 


input[type="radio"] {
    display: none;
}

.container {
    background: linear-gradient(to bottom, #333F50, #333F60);
    position: relative;
    height: 90vh;
    width: 100%;
    padding: 1em;
}

.slide-wrapper {
    position: relative;
    margin: 0 auto;
    padding: 0em;
    width: 40%;
    height: 80%;
    border-radius: 20px;
    box-shadow: 0px 1px 2px 0px rgb(53, 53, 53);
    overflow: hidden;
}

/*  SLIDES IMAGES 'cubic-bezier' is a transition effect with variable speed from start to end:  */


#slide-roll {
    background: inherit;
    position: absolute;
    top: 0;
    left: 0;
    width: 400%;
    height: 100%;
    z-index: 100;
    transition: left .5s cubic-bezier(0.455, 0.03, 0.515, 0.955);
    /* flex */
    display: flex;
}

.slide {
    width: 50%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

/* backgrounds */

.slide-1 {
    background-image: url(../images/harrysplash.png);
}

.slide-2 {
    background-image: url("../images/hermionesplash.png");
}

.slide-3 {
    background-image: url("../images/ronsplash.png");
}

.slide-4 {
    background-image: url("../images/voldemortsplash.png");
}

/* RADIO BUTTONS */

.btn,
.btn::after {
    border-radius: 50%;
    transition: all .5s cubic-bezier(0.785, 0.135, 0.15, 0.86);
}

.btn {
    border: 1px solid rgba(0, 0, 0, 0.281);
    background: rgb(0, 0, 0);
    box-shadow: 0px 2px 2px rgba(56, 56, 56, 0.822);
    position: absolute;
    bottom: 12%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    transform: scale(1.1);
    z-index: 1000;
}

.btn:nth-of-type(1) {
    left: 38%;
}

.btn:nth-of-type(2) {
    left: 45%;
}

.btn:nth-of-type(3) {
    left: 52%;
}

.btn:nth-of-type(4) {
    left: 59%;
}

.btn:hover {
    transform: scale(1.4);
}

/* buttons Atom! */

.btn::after {
    content: "";
    display: inline-block;
    border: 1px solid red;
    background: rgb(255, 60, 25);
    width: 20px;
    height: 20px;
    margin: 3px 3px;
    transform: scale(.5, .5);
    box-shadow: 0px 1px 5px rgba(56, 56, 56, 0.822);
}

/* LOGIC OPTIONS - funtion of slides, and allows buttons 'labels' to function via radio buttons*/

/* slide function logic */

input[type="radio"]:checked#slide-2-trigger~div.slide-wrapper>div#slide-roll {
    left: -100%;
}

input[type="radio"]:checked#slide-3-trigger~div.slide-wrapper>div#slide-roll {
    left: -200%;
}

input[type="radio"]:checked#slide-4-trigger~div.slide-wrapper>div#slide-roll {
    left: -300%;
}

/* button function logic */

input[type="radio"]:checked+label.btn {
    transform: scale(1.2);
    border: 1px solid rgba(53, 53, 53, 0.308);
}

input[type="radio"]:checked+label.btn::after {
    transform: scale(1.1, 1.1);
    background: rgb(255, 60, 25);
}

/*=====================================================================================
                MEDIA QUERIES
=======================================================================================*/

@media only screen and (max-width: 750px) {
    .slide-wrapper {
        width: 90%;
        height: 100%;
    }
    .btn:nth-of-type(1) {
        left: 93%;
        bottom: 60%;
    }
    .btn:nth-of-type(2) {
        left: 93%;
        bottom: 50%;
    }
    .btn:nth-of-type(3) {
        left: 93%;
        bottom: 40%;
    }
    .btn:nth-of-type(4) {
        left: 93%;
        bottom: 30%;
    }
}

@media only screen and (max-width: 450px) {
    .btn:nth-of-type(1) {
        left: 91%;
    }
    .btn:nth-of-type(2) {
        left: 91%;
    }
    .btn:nth-of-type(3) {
        left: 91%;
    }
    .btn:nth-of-type(4) {
        left: 91%;
    }
}

/*  SLIDER CONTAINER END */




/* *********              Character Bio Settings          ********** */ 


.char {
     float: left;
     max-width: 13em;
    
}

.char2 {
     float: right;
     max-width: 13em;
    
}

.bio {
    text-align: justify;
    padding-bottom: 2em;
    background-color: #FF6161;
    background-image: url(../images/biobg.png);
    background-repeat: no-repeat;
    padding-left: 1em;
    padding-right: 1em;
}
        
strong {
    font-size: 1.75rem;
}
        

/* *****           LORE entry settings *** li-font setting to match p elements    ***** */ 


.lore {
    text-align: justify;
    font-size: 1.5rem;
    padding-top: 0.5em;
    padding-bottom: 2em;
    background-color: #6FAC46;
    background-image: url(../images/potterbooks.png);
    background-repeat: no-repeat;
    padding-left: 1em;
    padding-right: 1em;
}

.lorp {
     float: left;
     max-width: 13em;
    
}

/* *****           ARTEFACTS entry settings *** li-font setting to match p elements    ***** */ 

#horcrux {
    color: #171721;
    background-color: #00B6F6;
    background-image: url(../images/mom.png);
    background-position:left;
    background-repeat: no-repeat;
}

.arte {
    text-align: justify;
    font-size: 1.5rem;
    color: #CAC8C8;    
    padding-top: 0.5em;
    padding-bottom: 2em;
    background-color: #152D4C;
    background-image: url(../images/mom.png);
    background-position: center;
    background-repeat: no-repeat;
    padding-left: 1em;
    padding-right: 1em;
}

.artp {
     float: left;
     max-width: 20em;
    
}
        


/* *****           HOGWARTS page entry settings *** li-font setting to match p elements    ***** */ 

#school {
    color: #171721;
    background-color: #F8F200;
}

.hogs {
    text-align: justify;
    font-size: 1.5rem;
    color: #1E2F13;    
    padding-top: 0.5em;
    padding-bottom: 2em;
    background-color: #DDCD01;
    background-image: url(../images/hogslogo.png);
    background-position: center;
    background-repeat: no-repeat;
    padding-left: 1em;
    padding-right: 1em;
}

.hogp {
     float: left;
     max-width: 20em;
    
}
        

        /* *********              Additional cosmetic changes            ********** */  
    /* *********              display: grid and column set up for back to top button floating function         ********** */  

body {
	font-family: "Open Sans";
	max-width: 65em;
	margin: auto;
    display: grid;
    grid-template-columns: auto 0px;
}



        p {
            font-size: 1.50rem;
            }


        h1 {
           font-size: 2em;
	       text-align: center;
           color: #fcc113;
            
        
           }
        
        h2 {
           font-size: 1.6em;
	       text-align: center;
           color: #fbd603;
           
            
           }  
        
      /* *********              Back to top function code, division in grid          ********** */     

.top {
  --offset: 50px; 

  position: sticky;
  bottom: 20px;      
  margin-right: 10px; 
  place-self: end;
  margin-top: calc(100vh + var(--offset));

  /* visual button styling */
  width: 45px;
  aspect-ratio: 1/1;
  background: #ff8b24;
  border-radius: 10px;
}


/* Content empty on purpose! */

.top:before {
  content: "";
  position: absolute;
  inset: 30%;
  transform: translateY(20%) rotate(-45deg);
  border-top: 5px solid #fff;
  border-right: 5px solid #fff;
}





