@import url('https://fonts.googleapis.com/css2?family=Source+Code+Pro:ital,wght@0,200..900;1,200..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300..900;1,300..900&display=swap');

html { 
  -webkit-text-size-adjust: none;
  -ms-text-size-adjust:none;
}

@font-face {
	font-family: 'acww';
	src: url("acww.woff2") format("woff2");
}

@keyframes slidein { /* sidebar open animation */ 
  0%    {clip-path: inset(0 100% 0 0);}
  100%  {clip-path: inset(0);}
}

@keyframes slideout { /* sidebartoggle open animation */ 
  0%    {transform: translateX(0);}
  100%  {transform: translateX(210px);}
}

/* general format -- general format -- general format -- general format -- general format */

p, li, .email{
  font-size:15px;
  font-family: 'Lucida Sans', sans-serif;
  font-weight:400;
  margin:4px;
}

b{
  text-decoration: underline;
}

ul{
  padding-left:32px;
}

hr{
  border-style:solid none none none;
  margin:10px 0;
}

a{
  text-decoration:none;
}

.ocbar img{
  height:300px;
}

/* sidebar content -- sidebar content -- sidebar content -- sidebar content -- sidebar content*/

#sidebar img{
  width: 100%;
  margin-bottom:20px;
  border-radius: 50%;
  aspect-ratio: 1/1;
  object-fit: cover;
}

#sidebar button{ 
  background-color:pink;
  color:black;
  width:100%;
  margin:5px 0;
  padding:2px;
  border:none;
  font-size:18px;
  font-family: Monospace;
  font-weight:600;
  word-spacing:-2px;
}

#sidebar button:hover{
  animation: bob 1s infinite linear;
  background:rgba(255, 255, 255, 0.5);
}

#sidebar .dropdown button {
  background-color: #f1f1f1;
  padding:2px 16px;
  border-radius: 10px;
  font-weight:200;
  text-align:left;
  font-size:16px;
}

#sidebar .dropdown{
  margin:10px 0 10px 30px;
}

@keyframes bob {
  0%   {transform: translateY(-2px);}
  49%  {transform: translateY(-2px);}
  50%  {transform: translateY(2px);}
  99%  {transform: translateY(2px);}
  100% {transform: translateY(-2px);}
}

/* when hover on category, highlight category buttons */
#sidebar .hover:hover .dropdown button {
  background-color: pink;
} 

/* when hover on category button, make text pinker */
#sidebar .dropdown a button:hover {
  color:rgb(99, 15, 15);
}

/* box -- box -- box -- box -- box -- box -- box -- box -- box -- box -- box -- box -- box -- box -- box*/

.box{
  background-color: aliceblue;
  width: calc(100% - 47px);
  margin:0 20px 32px;
  padding:2px;
  border-radius: 10px;
  border:1.5px black solid;
  position:relative;
  display:inline-block;
  text-align:center;
}

.box h2{
  font-family: Monospace;
  font-weight:500;
  font-size:16px;
  color:rgb(52, 15, 15);
  background-color:pink;
  padding:4px 16px;
  width: calc(100% - 32px);
  margin:0 0 10px;
  border-radius: 6px 6px 0 0;
  text-align: center;
  letter-spacing: 1px;
}

.box p, .box li{
  line-height: 16px;
  text-align: left;
  margin: 10px;
}

.box li{
  padding:8px 4px 8px 8px;
  margin:-8px;
}

.box li a{
  color:black;
}

.box ul{
  margin: 8px;
}

.box img{
  width:200px;
  text-align:center;
  aspect-ratio: 1/1;
  object-fit: cover;
}

/* survivors page -- survivors page -- survivors page -- survivors page -- survivors page*/

.box .dropdown{ /* survivors descriptions */
  background-color: aliceblue;
  width:48%;
  border:solid black 2px;
  border-radius:20px;
  padding:10px;
  margin:0;
  margin-top:-20px;
  position:absolute;
  left:50.5%;
  display:none;
  z-index: 1;
}

.box .dropdown:after{ /* speech bubble wedge */
  content: '';
  width: 0px;
  height: 0px;
  position: absolute;
  border-left: 10px solid transparent;
  border-right: 15px solid aliceblue;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  left: -22px;
  top: 25px;
}

.box .dropdown:before{ /* speech bubble wedge */
  content: "";
  width: 0px;
  height: 0px;
  position: absolute;
  border-left: 10px solid transparent;
  border-right: 15px solid black;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  left: -24.5px;
  top: 25px;
}

.box .hover:hover .dropdown {
  display:block;
}
.box .hover:hover li{
  background-color: rgb(214, 221, 228)
}

.listanddesc{ /* two-box survivors layout */
  display:flex;
  margin:20px;
  position: relative;
}

.listanddesc div{
  flex-basis:50%;
}

/* sections -- sections -- sections -- sections -- sections -- sections -- sections -- sections*/

body{
  background-image: url(img/mountains.jpg);
  background-size: 100%;
  object-fit:cover;
  font-size:0;
  margin:0;
  width:100%;
  height:100%;
  position:absolute;
}

#content{
  background-color: white;
  width:900px;
  height:100%;
  margin:0 auto;
  display:flex;
  box-shadow: -10px 10px rgb(236, 171, 182);
}

#sidebar, #mainbar, #header{
  display:inline-block;
}

#sidebar{
  background: linear-gradient(0deg,aliceblue 0%, rgba(255, 196, 196, 1) 100%);
  height: calc(100% - 40px);
  width:210px;
  padding:20px;
}

#header{
  background-image: url(img/banner.jpg);
  background-size: 100%;
  object-fit:cover;
  height:200px;
  width: 100%;
  position:relative;
  vertical-align:bottom;
}

#mainbar{
  background: linear-gradient(180deg,rgb(0, 0, 0) 0%, rgb(0, 32, 22) 100%);
  height: calc(100% - 230px);
  width: 100%;
  overflow-y:scroll;
  overflow-x:hidden;
}

#mainhead{
  width: calc(100% - 250px);
  z-index:2;
}

#mainhead, #mq{
  z-index:3;
}

#sidebarshadow{
  display:none;
}

/* other page stuff -- other page stuff -- other page stuff -- other page stuff -- other page stuff -- other page stuff */

.ocbar p, .ocbar h2{
  font-size:16px;
  color:white;
  text-align:center;
  margin:30px;
}

.ocbar h2{
  font-size:32px;
}

.table{
  display:flex;
  position:relative;
  width: calc(100% - 20%);
  justify-content: center;
  margin:2px 10% 0;
}

.table p{
  padding:10px;
  border:1px solid black;
}

.table p:nth-child(odd){
  width: 20%;
  margin:0;
}

.table p:nth-child(even){
  border-style: solid solid solid none;
  width: 80%;
  margin:0;
}

.notes{
  font-size:12px;
  margin-top:3px;
  line-height:120%;
  display:none;
}

.hover:hover .notes{
  display:block;
}

.email{
  color:blue;
}

.email > span:nth-child(2), .email > span:nth-child(4), .email > span:nth-child(6) {
	display: none;
}

@keyframes mq{
  0% {right:-150px}
  100% {right:674px;}
}

#mq{
  width:100%;
  height:30px;
  color:white;
  background-color: rgb(0, 0, 0);
  margin:0;
  position:relative;
  overflow:hidden;
  white-space: nowrap;
  text-align: right;
}

#mq p{
  margin:auto 5px;
  font-size:14px;
  font-family: 'acww', sans-serif;
  letter-spacing: 0.3px;
  word-spacing: 5px;
  position:relative;
  animation: mq 12s linear infinite;
}

#kofan{
  vertical-align: top;
  margin:-8px 0 0 10px;
  border-radius: 0 0 5px 0;
  float:right;
  width:30%;
}

.essayimg{
  vertical-align: top;
  width:30%;
  height:100%;
  object-fit:cover;
  float:right;
  aspect-ratio:auto;
}

.title{
  background:rgba(255, 252, 91, 0.411);
  padding:5px;
}

#didimg{
  width:80%;
  aspect-ratio: 16/9;
  transition-duration: 0.3s;
  filter: brightness(90%);
}

#didimg:hover{
  filter: brightness(100%);
}

.collapsible{
  cursor: pointer;
  color:blue;
  text-decoration:underline;
  padding:10px;
}

.collapsibleactive{
  color: purple;
  background-color: rgba(0, 0, 0, 0.1);
}

.collapsible:after {
  content: '\02795'; /* Unicode character for "plus" sign (+) */
  float: right;
  margin-right: 10px;
  right:10px;
  position:absolute;
}

.collapsibleactive:after {
  content: "\2796"; /* Unicode character for "minus" sign (-) */
}

.collapse {
  display: none;
  overflow: hidden;
  padding:0 55px;
  margin-bottom:20px;
}

a:hover, .box li a:hover{
  color:rgb(255, 136, 156);
  text-decoration: underline;
}

#essay h2{
  padding: 12px 16px; font-family:Rubik; font-weight:400; margin:0;
}

#essay img{
  border-radius:0 0 6px 0;
  object-position:30%;
}

#essay .notes{
  text-align:right;
  z-index:5;
  display:block;
}

#essay .centerer{
  margin: auto 5px;
}

/* MEDIA QUERIES -- MEDIA QUERIES -- MEDIA QUERIES -- MEDIA QUERIES -- MEDIA QUERIES -- MEDIA QUERIES -- MEDIA QUERIES */

@media only screen and (max-width: 650px) { 
  #sidebartoggle{
    content: '';
    width:30px;
    height:0;
    border:pink solid 30px;
    border-radius: 30px;
    left:-30px;
    position:absolute;
    z-index:4;
    top:100px;
    box-shadow: rgba(0, 0, 0, 0.15) 2px 2px 10px;
  }

  #sidebartoggle h1{
    color:black;
    font-size:28px;
    font-family:sans-serif;
    line-height:0;
    margin:0 12px 0;
    text-align: center;
  }

  #sidebar{
    display:none;
    position:absolute;
    z-index: 5;
    overflow-x:hidden;
  }

  #sidebarshadow{
    background-color: rgba(0, 0, 0, 0.4);
    position:absolute;
    height:100%;
    width:100%;
    z-index:4;
  }

  #mainbar, #content, #header, #mainhead{
    width:100%;
  }

  #mainbar{
    overflow-y:hidden;
    height:auto;
  }

  #mainhead{
    overflow-y: scroll;
  }

  .listanddesc{
    flex-flow:wrap-reverse;
    margin:0 10px 10px;
  }

  .listanddesc div{
    flex-basis:100%;
  }

  .box .dropdown{
    width:100%;
    left:0;
    margin-top:25px;
    position:absolute;
  }
  
  .box .dropdown:after, .box .dropdown:before{
    display:none;
  }

  .box{
    width:95%;
    margin: 0 calc(2.5% - 4px) 32px;
  }
  
  #didrep{
    margin:auto;
  }

  .box img{
    width:150px;
  }
  
  .collapse {
    padding:0;
  }
  
  #essay img{
    height:100%;
    width:40px;
  }
  
  #essay .centerer{
  margin: auto 0;
}
}

@media only screen and (max-height: 800px) { 
  #sidebar img{
    width:80%;
    margin: 0 10% 20px;
  }

  #sidebar{
    overflow-y:scroll;
  }
}

@media only screen and (max-width: 290px) { 
  .box img{
    width:60%;
  }
}

@media only screen and (min-width: 650px) { 
  #sidebar{
    display:block;
  }
}