:root{
  --darkbox: rgba(54,22,18,0.3);
  --div: rgba(37,20,80,0);
  --text:rgba(170,170,170,1);
  --b-light: rgba(54,22,18,0.9);
  --b-dark: rgba(20,8,6,0.9);
  --out: rgba(54,22,18,1);
}

*{ box-sizing: border-box; }

html,body{
  margin:0;
  padding:0;
  min-height:100%;
  font-family: 'Courier New', Courier, monospace;
  font-size: 15px;
  color: var(--text);
  background-image: url('https://samandk.com/dog-studio/dog.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

a{
  text-decoration: none;
  font-weight: bold;
}
a:hover{
  color: var(--text);
  text-decoration: underline;
}

#page{
  max-width: 880px;
  margin: 0 auto;
  padding: 24px 16px 0;
}

#titlebar{
  text-align:center;
  padding: 8px 0;
  margin: 0 0 20px;
  border: 1px solid var(--b-light);
  background: none;
}
#titlebar .site-name{
  font-family: 'Courier New', Courier, monospace;
  font-size: 38px;
  margin: 0;
  letter-spacing: 2px;
  color: var(--text);
  font-weight: bold;
}

#links{
  display:flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: 0 0 18px;
}
#links a{
  flex: 1 1 auto;
  text-align:center;
  font-size: 13px;
  font-weight: bold;
  letter-spacing: .3px;
  color: var(--text);
  background: var(--darkbox);
  border-style: solid;
  border-width: 3px;
  border-top-color: var(--b-light);
  border-left-color: var(--b-light);
  border-bottom-color: var(--b-dark);
  border-right-color: var(--b-dark);
  border-radius: 0;
  padding: 8px 10px;
}
#links a:hover{
  background: var(--darkbox);
  border-top-color: var(--b-dark);
  border-left-color: var(--b-dark);
  border-bottom-color: var(--b-light);
  border-right-color: var(--b-light);
  color: var(--text);
  text-decoration: none;
}

#layout{
  display:flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap;
}

#box2{
  background: none;
  border: none;
  padding: 0;
}
#bigshits{
  flex: 2 1 480px;
  display: flex;
  flex-direction: column;
}
#box2{ width: 100%; }

#btn-row{
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
}
#btn-row .link-btn{
  width: 96px;
  height: 48px;
  display: block;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}
#btn-download{ background-image: url('https://samandk.com/dog-studio/Download.png'); }
#btn-download:hover{ background-image: url('https://samandk.com/dog-studio/Download1.png'); }

#btn-github{ background-image: url('https://samandk.com/dog-studio/Github.png'); }
#btn-github:hover{ background-image: url('https://samandk.com/dog-studio/Github1.png'); }

#btn-discord{ background-image: url('https://samandk.com/dog-studio/Discord.png'); }
#btn-discord:hover{ background-image: url('https://samandk.com/dog-studio/Discord1.png'); }

#feattg{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.feattm{
  border: 0px solid var(--out);
  padding: 10px;
  text-align: center;
  position: relative;
}

.feattb{
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center;
  display: block;
  margin: 0 0 10px;
  border: 2px solid var(--out);
  cursor: pointer;
  transition: filter .15s ease;
}
.feattb:hover{ filter: brightness(0.5); }

.feattm::after{
  content: "Click to enlarge";
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: bold;
  font-size: 15px;
  letter-spacing: .3px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease;
}
.feattm:has(.feattb:hover)::after{ opacity: 1; }

.featcp{
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
}

#ligma{
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
#ligma.active{ display: flex; }

#ligma > img{
  max-width: 90%;
  max-height: 90%;
  border: 3px solid var(--out);
  cursor: zoom-in;
  transition: transform .2s ease;
}
#ligma > img.zoomed{
  cursor: grab;
}
#ligma > img.zoomed.dragging{
  cursor: grabbing;
  transition: none;
}

#ligma-close{
  position: absolute;
  top: 50px;
  right: 50px;
  cursor: pointer;
}
#ligma-close img{
  width: 32px;
  height: 32px;
  display: block;
}
#ligma-close:hover img{
  opacity: .8;
}

@media (max-width: 620px){
  #feattg{ grid-template-columns: 1fr; }
}

h1{
  font-family: 'Courier New', Courier, monospace;
  font-size: 18px;
  color: var(--text);
  background: var(--div);
  text-align: center;
  letter-spacing: .3px;
  margin: 0 0 12px;
  padding: 6px 4px;
  border: 0px solid var(--out);
  border-radius: 0;
}
#box2 h1:first-child{ margin-top:0; }
#box2 h1:not(:first-child){ margin-top: 18px; }

p{ line-height: 1.6; margin: 8px 0; text-align: center; font-size: 14px; }

@media (max-width: 620px){
  #titlebar .site-name{ font-size: 26px; }
  #layout{ flex-direction: column; }
  #links{ flex-direction: column; }
}