:root {
  --color-background: rgba(255,255,255,0.8);
  --color-hover: rgba(0,0,0,0.1);
  --color-accent: rgb(216, 0, 180);

  --color-heading: #FFF;
  --color-text: #333;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  position: relative;
  font-weight: normal;
}

/** style global **/

body {
  min-height: 100vh;
  color: var(--color-text);

  /* Bacground by Ashim DSilva */
  background-image: url("./img/background.jpg");
  
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu,
    Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  
  font-size: 15px;
  line-height: 1.5;
  font-weight: normal;
  text-align: center;
  
  display: flex;
  place-items: center;
  
  padding: 1rem;
}

a {
  text-decoration: none;
  color: var(--color-accent);
}

a,
input {
  transition: background-color 0.2s, opacity 0.2s;
}

input:focus-visible,
a:focus-visible,
button:focus-visible {
  outline-style: dashed;
  outline-color: var(--color-accent);
  outline-offset: 1px;
  outline-width: 2px;
  box-shadow: none;
}

ul,
li {
  padding:0;
  margin:0;
  list-style-type: none;
}

h1,
h2 {
  text-align:center;
}

main {
  max-width: 1280px;
  width:100%;
  margin: 0 auto;
}

/** Header **/

h1 {
  color: var(--color-heading);
  font-weight: 200;
  font-size:3rem;
  text-shadow:0px 1px 1px rgba(0,0,0,0.6);
  margin-bottom: 1rem;
}

main input {
  padding:0.66rem 1.5rem;
  border-radius:9999px;
  border:none;
  width:80%;
  max-width:640px;
  margin-bottom:1rem;
  background-color:var(--color-background);
  box-shadow:0px 2px 1px rgba(0,0,0,0.5);
  backdrop-filter: blur(6px);
  opacity:0.8;
}

main input:hover, main input:focus-visible {
  opacity: 1;
}

/** Featured Links handling **/

.featured {
  margin-bottom:1rem;
}

.featured a {
  display:inline-block;
  padding: 0.33rem 1.33rem;
  margin:0rem 0.33rem;
  border-radius:9999px;
  background-color: var(--color-accent);
  color:white;
  box-shadow:0px 2px 1px rgba(0,0,0,0.5);
  opacity:0.8;
  margin-bottom:1rem;
  backdrop-filter: blur(6px);
}

.featured a:hover {
  opacity: 1;
}

/** Columns Links handling **/

.cols {
  display:grid;
  grid-template-columns: 1fr;
  grid-gap: 1rem;
}


@media (min-width: 480px) {
  .cols {
    grid-template-columns: 1fr 1fr;
  }
}


@media (min-width: 640px) {
  .cols {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (min-width: 800px) {
  .cols {
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .cols {
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
  }
}

.linklist {
  background-color:var(--color-background);
  box-shadow:0px 2px 1px rgba(0,0,0,0.5);
  backdrop-filter: blur(6px);
  border-radius:6px;
  padding:0.66rem;
  text-align:left;
}

.linklist a {
  display:block;
  border-radius:3px;
  padding:0.11rem 0.33rem;
  width:100%;
}

.linklist a:hover {
  background-color:var(--color-hover);
}
