/* Name: Benjamin Gallegos
Class: Intermediate Web Programming
Assignment: Semester Project */

/* This semester project is based on JavaScript code we learned in class, using it in an application like a JavaScript/HTML/CSS Random Color Palette Generator. Credit to the tutorial I followed online for this project: Source: YouTube/Channel: Tyler Potts/Link: https://www.youtube.com/watch?v=y9F-XzrYIrs&list=PL2V0XMPQmXlFzTI7VMHHIGbAeqm9hAZcL&index=7&t=29s */

/* Google Font-- Varela Round: oogle Fonts: Varela Round; Link: https://fonts.google.com/specimen/Varela+Round  */
.varela-round-regular {
    font-family: "Varela Round", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-weight: bold;
  }
  
/* Defining set CSS variables for use throughout the application for consistency, changed colors from tutorial */
:root {
    /* using css variables for standard options below */
    --primary: #ff1a1a;
    --secondary: #4fffed;
    --light: rgb(55, 55, 55);
    --grey: rgb(255, 255, 255);
    --dark: #c9def6;
}

/* All elements have the following qualities */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Varela Round", sans-serif;
    font-weight: 400;
    font-style: normal;
}

/* Nav Edits */
nav{
    font-family: "Varela Round", sans-serif;
    font-weight: 400;
    font-style: normal;
  }
  
  /* style for the navbar */
  .home_nav {
    overflow: hidden;
    background-color: rgb(200, 200, 200);
    font-size: .9rem;
  }
  
  .home_nav a {
    float: left;
    color: #000000;
    text-align: center;
    padding: 18px 50px;
    text-decoration: none;
    font-size: 1.1em;
  }
  
  .home_nav a:hover {
    background-color: #f16c6c;
    color: rgb(255, 255, 255);
  }
  
  .home_nav a.active {
    background-color: #f16c6c;
    color: white;
  }

/* Edits on buttons and inputs */
button, input{
    appearance: none;
    border: none;
    outline: none;
    background: none;
    color: inherit;
}

button{
    cursor: pointer;
}

#showHideButtons{
    text-align: center;
    font-size: 1.5rem;
    transition: 1s ease-out;
}

#hideOne{
    color: var(--primary);
    padding-left: 20px;
    padding-right: 20px;
    font-size: 1.5rem;
    border: solid #e3e3e3;
    background-color: #e3e3e3;
    border-radius: 7px;
    box-shadow: 2px 2px 4px var(--primary);
    text-shadow: 1px 1px 2px black;
}

#hideTwo{
    color: var(--primary);
    padding-left: 20px;
    padding-right: 20px;
    font-size: 1.5rem;
    border: solid #e3e3e3;
    background-color: #e3e3e3;
    border-radius: 7px;
    box-shadow: 2px 2px 4px var(--primary);
    text-shadow: 1px 1px 2px black;
}

#hideThree{
    color: var(--primary);
    padding-left: 20px;
    padding-right: 20px;
    font-size: 1.5rem;
    border: solid #e3e3e3;
    background-color: #e3e3e3;
    border-radius: 7px;
    box-shadow: 2px 2px 4px var(--primary);
    text-shadow: 1px 1px 2px black;
}

#hideFour{
    color: var(--primary);
    padding-left: 20px;
    padding-right: 20px;
    font-size: 1.5rem;
    border: solid #e3e3e3;
    background-color: #e3e3e3;
    border-radius: 7px;
    box-shadow: 2px 2px 4px var(--primary);
    text-shadow: 1px 1px 2px black;
}

#hideFive{
    color: var(--primary);
    padding-left: 20px;
    padding-right: 20px;
    font-size: 1.5rem;
    border: solid #e3e3e3;
    background-color: #e3e3e3;
    border-radius: 7px;
    box-shadow: 2px 2px 4px var(--primary);
    text-shadow: 1px 1px 2px black;
}

#resetButtonOne{
    color: var(--primary);
    padding-left: 20px;
    padding-right: 20px;
    font-size: 1.5rem;
    border: solid #e3e3e3;
    background-color: #e3e3e3;
    border-radius: 7px;
    box-shadow: 2px 2px 4px var(--primary);
    text-shadow: 1px 1px 2px black;
}

#resetButtonTwo{
    color: var(--primary);
    padding-left: 20px;
    padding-right: 20px;
    font-size: 1.5rem;
    border: solid #e3e3e3;
    background-color: #e3e3e3;
    border-radius: 7px;
    box-shadow: 2px 2px 4px var(--primary);
    text-shadow: 1px 1px 2px black;
}

#resetButtonThree{
    color: var(--primary);
    padding-left: 20px;
    padding-right: 20px;
    font-size: 1.5rem;
    border: solid #e3e3e3;
    background-color: #e3e3e3;
    border-radius: 7px;
    box-shadow: 2px 2px 4px var(--primary);
    text-shadow: 1px 1px 2px black;
}

#resetButtonFour{
    color: var(--primary);
    padding-left: 20px;
    padding-right: 20px;
    font-size: 1.5rem;
    border: solid #e3e3e3;
    background-color: #e3e3e3;
    border-radius: 7px;
    box-shadow: 2px 2px 4px var(--primary);
    text-shadow: 1px 1px 2px black;
}

#resetButtonFive{
    color: var(--primary);
    padding-left: 20px;
    padding-right: 20px;
    font-size: 1.5rem;
    border: solid #e3e3e3;
    background-color: #e3e3e3;
    border-radius: 7px;
    box-shadow: 2px 2px 4px var(--primary);
    text-shadow: 1px 1px 2px black;
}

/* setting body background color to css variable */
body{
    background: var(--light);
}

/* starting main edits, all items have padding and margin set below */
main{
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* description box of the application and credits to tutorial; setting box style */
#intro-box{
    background-color: #e3e3e3;
    border-radius: 10px;
    margin: 10px;
    padding: 10px;
}

.intro-text{
    color: #000000;
    font-weight: bolder;
    text-align: center;
}

/* Added <hr> tags for seperation of intro and application */
.divider{
    width: 70%;
    height: 5px;
    margin: auto;
    background-color: white;
}

/* Text Edits */
h1{
    color: var(--dark);
    font-size: 3.5rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 1rem;
    text-align: center;
    text-shadow: 5px 5px 5px black;
    /* letter-spacing: 5px; */
}

p{
    color: var(--grey);
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

/* "Space" button edits on color and slight animation */
.generator-button{
    color: var(--primary);
    font-size: inherit;
    font-weight: 700;
    transition: 0.3s ease-out;
}

.generator-button:hover{
    padding-left: 1rem;
    padding-right: 1rem;
}

h4{
    color: var(--grey);
    text-transform: uppercase;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Editing each palette box, focusing on separation from background and for accessibility viewing */
.colors{
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    row-gap: 1rem;
    column-gap: 1rem;
    gap: 1rem;
}

.color{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1rem;
    border-radius: 1rem;
    color: #fff;
    /* background-color: white; */
    transition: 0.4s ease-out;
    border: 2px solid transparent;

    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.outline{
    border: solid;
    padding: 8px;
    background-color: white;
    border-radius: 1rem;
    box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.5);
}

/* Event CSS edits; when color is copied, when lock is locked/toggled */
.color.copied{
    border-color: hsl(226, 100%, 50%);
    border-width: 5px;
}

.lock-toggle {
    transition: 0.3s;
}

.lock-toggle.is-locked{
    opacity: 1;
}

.color-input{
    text-align: center;
    font-size: 1.5rem;
    font-weight: bolder;
    letter-spacing: 2px;
    text-shadow: 1px 1px 3px black;
}

.copy-hex{
    font-size: 1.5rem;
    font-weight: bolder;
    letter-spacing: 2px;
    transition: 0.3s;
    text-shadow: 1px 1px 3px black;
}

/* Slight animation for hovering over the lock icons or the "copy" buttons */
.copy-hex:hover{
    font-size: 1.8rem;
}

.locks{
    width: 30px;
}

.locks:hover{
    width: 35px;
    transition: 0.3s;
}

/*Following has been edited out of the tutorial due to errors in running application on live server; tutorial mentions use for reaction of the site to different widths of screens*/
/* @media (min-width: 768px){
    .colors{
        grid-template-columns: repeat(2, 1fr);
    }
} */

/* @media (min-width: 1024px){
    .colors{
        grid-template-columns: repeat(4, 1fr);
    }

    .color{
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .color-input{
        margin-top: 1rem;
        margin-bottom: 1rem;
    }
} */


/* Using different backgrounds on the text input */
#lightBackground{
    background-color: white;
    margin: 15px;
    padding: 15px;
    border-radius: 10px;
}

#darkBackground{
    background-color: rgb(0, 0, 0);
    margin: 15px;
    padding: 15px;
    border-radius: 10px;
}

#greyBackground{
    background-color: rgb(120, 120, 120);
    margin: 15px;
    padding: 15px;
    border-radius: 10px;
}

#outputOne{
    font-size: 3rem;
    text-align: center;
}

#outputTwo{
    font-size: 3rem;
    text-align: center;
}

#outputThree{
    font-size: 3rem;
    text-align: center;
}

h3{
    font-size: 3rem;
    color: white;
    margin: 5px;
}

#colorInput{
    background-color: white;
    font-size: 2.5rem;
}

#submitBtn{
    margin: 5px;
    color: var(--primary);
    padding-left: 20px;
    padding-right: 20px;
    font-size: 1.5rem;
    border: solid #e3e3e3;
    background-color: #e3e3e3;
    border-radius: 7px;
    box-shadow: 2px 2px 4px var(--primary);
    text-shadow: 1px 1px 2px black;
}

#resetBtn{
    margin: 5px;
    color: var(--primary);
    padding-left: 20px;
    padding-right: 20px;
    font-size: 1.5rem;
    border: solid #e3e3e3;
    background-color: #e3e3e3;
    border-radius: 7px;
    box-shadow: 2px 2px 4px var(--primary);
    text-shadow: 1px 1px 2px black;
}

/* Footer Edits */
footer{
    left: 0;
    bottom: 0;
    width: 100%;
    background-color: rgb(30, 30, 30);
    color: rgb(254, 254, 254);
    text-align: center;

    margin-bottom: 0;
  }

  #footerText{
    font-family: "Poppins", sans-serif;
    font-weight: 100;
    font-style: normal;
    color: rgb(255, 255, 255);

    font-size: 1.4rem;
    text-align: center;

    padding-bottom: 50px;
  }

  #footerHeader{
    font-size: 1.8em;
  }

  #botLink{
    font-size: 1.4em;
  }

  a:link{
    color: rgb(86, 153, 240);
  }

  a:visited{
    color: rgb(86, 153, 240);
  }