@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,600;1,400&display=swap');

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

/* Mobile First */
body {
  /* padding: 10px; */
  /* font-family: Arial, Helvetica, sans-serif; */
  font-family: 'Open Sans', sans-serif;
  /* background-color: lightblue; */
  font-size: 1.2rem; 
  
  background-color: yellow;
  overflow: auto;
}

#login-section .container{
  background-color: #888888;
}

.container a {
  text-decoration: none;
  color: #3d3636;
}
.hide {
  display: none;
}

.red {
  color: red;
}

.right {
  float: right;
}

pre {
  white-space: pre-wrap;
  overflow-wrap: break-word;
}

.container {
  max-width: 1600px;
  margin: 0px auto;
  padding: 20px;
  background-color: #f7f8fc;
  min-height: 100vh;
  /* height: 100%; */
  
}

.container h1 {
  text-align: center;
}

form {
  padding: 20px 10px;
  text-align: end;
}

form .row {
  margin: 10px 0;
  /* text-align: right; */
}

input {
  padding: 8px;
  font-size: 1.5rem;
}

select {
  text-align: center;
  border: none;
  border-radius: 0;
  padding: 8px;
  background: rgb(1, 104, 104);
  color: rgb(245, 245, 245);
  font-size: 1.5rem;
  cursor: pointer;
  -webkit-appearance: none;
  outline: none;
  margin-left: 9px;
  border-radius: 5px;
}

select:hover {
  background-color: rgb(187, 69, 27);
}

#page-input {
  width: 80px;
}

input[type=checkbox] {
  display: none; /* Hide the default checkbox */
}

/* Style the artificial checkbox */
label span {
  height: 18px;
  width: 18px;
  border: 2px solid grey;
  display: inline-block;
  position: relative;
  top: 2px;
  right: 2px;
  margin-left: 16px;
}

/* Style its checked state...with a ticked icon */
[type=checkbox]:checked + span:before {
  content: '\2714';
  position: absolute;
  top: -15px;
  left: 0;
  font-size: 1.6rem;
  color: coral;
}


textarea {
  font-size: 1.2rem;
  width: 100%;
  padding: 10px;
}

button {
  margin-top: 10px;
  padding: 8px 20px;
  background-color: darkcyan;
  font-size: 1.5rem;
  color: whitesmoke;
  border: none;
  cursor: pointer;
  transition: all .2s;
  border-radius: 5px;
}

button:disabled,
button:disabled:hover,
#load-btn:disabled:hover,
#search-btn:disabled:hover,
#add-btn:disabled:hover {
  background-color: lightgray;
  cursor: auto;
}

button:hover, #add-btn:hover {
  background-color: rgb(187, 69, 27);
}

hr {
  border: 2px solid lightgrey;
}

#output {
  padding: 20px 0px;
}

ul {
  list-style-type: none;
}

#preview-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  /* grid-template-columns: repeat(2, 1fr); */
  /* justify-items: center; */
  justify-items: center;
  gap: 20px;
  /* 4 columns */
  /* width: 1280px; */
  /* 5 columns */
  width: 1600px;
  max-width: 100%;
  margin: 20px auto;
}

.card {
  margin-top: 18px;
  /* border: 1px solid lightgray; */
  border-radius: 10px;
  /* max-width: 600px; */
  box-shadow: 5px 10px 15px #888888;
  transition: ease-in-out 0.2s all;
  overflow: hidden;  
  align-self: start;
  background-color: antiquewhite;
  max-width: 480px;
  position: relative;
}

.card:hover {
  box-shadow: 5px 10px 25px #888888;
  scale: 1.01;
}

.card-header {
  position: relative;
  /* border: 3px solid black; */
}

.card-header img {
  width: 100%;
  /* height: 300px; */
  /* object-fit: cover; */
  /* border-radius: 10px; */

  /* no gap */
  /* display: block;   */
}

.card-header .icon{
  position: absolute;
  bottom: 5px;
  right: 8px;
  width: 40px;
}

.card-body {
  padding: 16px;
  /* border: 1px solid red; */
  /* background-color: antiquewhite; */
  overflow-wrap: break-word;
}

.card-body .icon img{
  width: 30px;
}

.card-body .exist {
  width: 120px;
}

.card-body img {
  width: 100%;
}


.card-body .site-name {
  font-size: 1.3rem;
  font-weight: bold;
  /* border: 1px solid red; */
  /* margin-left: 8px; */
  vertical-align: 25%;
}

.card-body .title {
  color: rgb(80, 78, 173);
  font-weight: bold;
  font-size: 1.1rem;
}

.card-body p {
  margin-top: 8px;
  font-size: 1.1rem;
  line-height: 1.8rem;
}

.card-body .link, .card-body .channel-link {
  margin-top: 20px;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.card-body .link a, .card-body .channel-link a{
  color: rgb(114, 151, 189);
  text-decoration: none;
}

.card-body .link a:hover, .card-body .channel-link a:hover {
  text-decoration: underline;
}

.card .box-overlay {
  position: absolute;
  /* top: 0px; */
  bottom: -100%;
  left: 0px;
  padding: 10px;
  color: whitesmoke;
  /* background-color: rgba(0, 139, 139, 0.8); */
  background-color: rgba(124, 119, 117, 0.5);
  width: 100%;
  height: 100%;
  cursor: default;
  transition: ease-out all .3s;
}

.card.edit-mode:hover  {
  scale: 1;
}

.card.edit-mode:hover .box-overlay {
  /* width: 50%; */
  display: block;
  bottom: 0px;
}

.box-overlay button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 5px;
  font-size: 2.4rem;
}

@media (min-width: 800px) {
  body {
    background-color: transparent;
  }

  #preview-container {
    justify-items: normal;
    /* justify-items: center; */
    /* grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));; */
  }
}

