/* Author: Selvahini Kamalarajan 
Date: December 5, 2023 
File Name: CSS Style Sheet
Description: Informational website about the implications of privacy and information technology usage */

* {
  /*Styles all elements on webpages*/
  box-sizing: border-box;
  margin: 0;
}

html {
  height: 100%;
  width: 100%;
  font-family: 'Poppins', sans-serif;

}
/* Styles elements for body section of webpage */
body {
  height: 100%;
  background: white;
  overflow-x: hidden;
}

/* Styles header text */
h1 {
  color: white;
}

/* Styles format for 2 columns on webpage */
.row {
  display: flex;
  padding: 10px 70px;
}

/* Flexbox for 2 column display */
.column {
  flex: 50%;
  padding: 20px;

}

/* Flexbox for 3 column display */
.column3 {
  flex: 33.33%;
  float: left;
  padding: 10px;
  border: 1px solid #9fadad;
}

/* Style caption text for images */
figcaption {
  background-color: #e9e9e9;
  color: black;
  padding: 3px;
  text-align: center;
}

/* Styles hero banner for webpages */
.banner {
  overflow: hidden;
  position: absolute;
  width: 100%;
  padding: 50px;
  bottom: 0;
  font-size: 35px;
  text-align: center;
}

/* Styles buttons for webpages */
.on-click {
  background: #008080;
  float: right;
  border: none;
  border-radius: 5px;
  padding: 10px;
  color: white;
  font-family: inherit;
  font-size: 24px;
  transition-duration: 0.5s;
  margin-top: 15px;
}

/* Hover effects for buttons */
.on-click:hover {
  background: #66FCF1;
  border: 2px solid #008080;
  color: #000000;
  cursor: pointer;
}

/* Customizing submit button for quiz */
#submit {
  margin-top: 8px;
  margin-right: 16px;
  background-color: #008080;
  border: none;
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.5s;
  padding: 9px;
  text-align: center;
  text-decoration: none;
  font-size: 17px;
  color: white;
}
/* Adds hover effects for submit button */
#submit:hover {
  background-color: #66FCF1;
  border: 2px solid #008080;
  color: white;
  cursor: pointer;
}
/* Resizes image for Privacy Policy quiz in index.html */
.picture {
  width: 400px;
}
/* Styles gray section with padding and border */
.gray-padded {
  background-color: #e9e9e9;
  float: center;
  text-align: center;
  margin: auto;
  padding: 20px;
  width: 50%;
  box-sizing: border-box;
  border: 1px solid #c2bdbd;
}

/*dropdown menu in nav bar 
RESOURCE: https://www.w3schools.com/howto/howto_css_dropdown_navbar.asp*/
.mainheader {
  height: 25px;
  position: fixed;
  display: block;
  z-index: 10;
  background-color: #e9e9e9;
  width: 100%;
  font-size: 17px;
  top: 0;
}
/* Styles the navigation bar */
.nav {
  /*Prevents horizontal scrolling and sets fixed position*/
  overflow: hidden;
  margin: 0;
  /* padding: 0; */
  background-color: #e9e9e9;
  /* position: fixed;
  top: 0; */
  width: 100%;
  z-index: 1;
  /*appears on top in z-direction*/
}

/* Align citations link in nav bar to the right */
.nav a.nav-right {
  float: right;
  color: black;
}

/*Styling the nav links */
.nav a {
  /*Display block element, sets colour, padding and positions nav links left */
  float: left;
  display: block;
  text-align: center;
  color: black;
  padding: 18px 20px;
  text-decoration: none;
  font-size: 17px;
}
/*  Styling dropdown section */
.dropdown {
  float: left;
  overflow: hidden;
}
/*  Styling dropdown button in section */
.dropdown .dropdown-button {
  display: inline-block;
  font-size: 17px;
  border: none;
  outline: none;
  color: black;
  padding: 18px 20px;
  background-color: inherit;
  font-family: inherit;
  margin: 0;
}
/*  Adds hover effect nav bar and dropdown button */
.nav a:hover,
.dropdown:hover .dropdown-button {
  background-color: #008080;
  color: white;
}
/* Styles dropdown menu section */
.dropdown-menu {
  display: none;
  position: absolute;
  background-color:#e9e9e9;
  min-width: 160px;
  z-index: 1;
}
/* Styles dropdown menu links */
.dropdown-menu a {
  float: none;
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
}
/* Adds hover effect to dropdown menu links */
.dropdown-menu a:hover {
  background-color: #008080;
  color: white;
}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-menu {
  display: block;
}
/*Used to style sections in website with padding */
.container {
  padding-bottom: 20px;
  padding-left: 70px;
  padding-right: 70px;
}
/* Styles footer content  */
footer {
  margin-top: 40px;
  overflow: hidden;
  width: 100%;
  background: #333333;
  color: white;
  padding: 50px 70px;
  display: flex;
}
/* Style and padding for 3 column layout */
.col-3 {
  flex-grow: 2;
  float: left;
  flex: 33.33%;
  padding: 20px;
  color: white;
}
/*  Styles links in 3 column layout */
.col-3 a {
  display: flex;
  color: white;
}
/* Display content in 4-column layout */
.col-4 {
  flex-grow: 3;
  float: left;
  flex: 25%;
  padding: 10px;
  color: white;
}
/*Resources Used: https://www.w3schools.com/howto/howto_css_column_cards.asp  */
/*Styling card for information */
.card {
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
  padding: 40px;
  text-align: center;
  background-color: #008080;
  height: 400px;
  border-radius: 15px;
  color: white;
}
/* Show hover effects on card */
.card:hover {
  box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
}

/* BACK TO TOP SCROLL BUTTON */
.top-scroll {
  position: fixed;
  padding: 10px;
  bottom: 20px;
  right: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #008080;
  text-decoration: none;
  border-radius: 5px;
  color: white;
}
/* Styles back to top button */
.top-scroll span {
  color: white;
  font-size: 20px;
}
/* Styles container with gray background */
.gray-bg {
  background-color: #e9e9e9;
  border: 1px solid #9fadad;
}
/* Styling a dark section with border radius  */
.dark-padded {
  background: #333333;
  color: white;
  padding: 40px;
  width: 90%;
  border-radius: 15px;
  margin: 0 auto;
}
/* Styles container for section with dark background without border radius */
.dark-bg {
  background-color: #333333;
  padding-bottom: 20px;
  padding-left: 70px;
  padding-right: 70px;
  padding-top: 20px;
}
/* Styles links to be white in surveillance.html */
li span {
  color: white;
}
/*RESOURCES FOR ACCORDION DROPDOWN SECTIONS: https://www.youtube.com/watch?v=oCx4gtYe410  */
#accordion li {
  list-style: none;
  width: 100%;
  margin-bottom: 10px;
  padding: 10px;
}
/* Styles accordion labels */
#accordion li label {
  display: flex;
  align-items: center;
  padding: 10px;
  justify-content: space-between;
  cursor: pointer;
  color: white;
}

#accordion label+input[type="radio"] {
  display: none;
}
/* Styles accordion label content */
#accordion .content {
  padding: 0 10px;
  line-height: 26px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s;
}

#accordion label+input[type="radio"]:checked+.content {
  max-height: 400px;
}