/*
Theme Name: The Default Theme
Author: THE DEFAULT COMPANY LLC
Text Domain: thedefaulttheme
Author URI: https://www.twitch.tv/thedefaultstreamer
Description: Custom Template for The Default Website, created by TheDefaultStreamer.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: TheDefaultTag
*/

/* Base Styles - Original Pixel-Perfect Layout */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(180deg, white 0%, #D0DCDA 100%);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  padding-left: 38px;
}

/* Sidebar - Original with Fixed Top Image */
.sidebar-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 38px;
  height: 100%;
  z-index: 20;
  pointer-events: none;
}

.sidebar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 30;
  background-image: url("http://thedefaultco.com/wp-content/uploads/2025/06/Sidebar-Repeat.png");
  background-size: 38px;
  background-position: 0% 0%;
  background-repeat: repeat-y;
  pointer-events: auto;
}

.sidebar-top-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 384px;
  height: 1052px;
  z-index: 40;
  pointer-events: none;
}

.sidebar-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 50;
  background-image: url("http://thedefaultco.com/wp-content/uploads/2025/06/Sidebar-Top.png");
  background-size: contain;
  background-repeat: no-repeat;
}

/* Logo - Original */
.logo-button {
  position: fixed;
  top: 0;
  right: 10px;
  width: 140px;
  height: 140px;
  background: none;
  border: none;
  padding: 0;
  z-index: 30;
}

.logo-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Circle Buttons - Original */
.circle-buttons {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 70;
}

.circle-button {
  position: absolute;
  background: none;
  border: none;
  padding: 0;
  border-radius: 50%;
  pointer-events: auto;
}

.circle-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

#teamz-button {
  width: 185px;
  height: 185px;
  left: 167px;
  top: 67px;
}

#gamez-button {
  width: 143px;
  height: 143px;
  left: 83px;
  top: 268px;
}

#linkz-button {
  width: 101px;
  height: 101px;
  left: 47px;
  top: 452px;
}

#secret-button {
  width: 69px;
  height: 69px;
  left: 32px;
  top: 613px;
}

/* Content Items - Original */
.chat-board-button {
  position: absolute;
  top: 327px;
  right: calc(50% + 165px);
  width: 58px;
  height: 263px;
  background: none;
  z-index: 20;
}

.music-button {
  position: absolute;
  top: 420px;
  right: calc(50% + 140px);
  width: 309px;
  height: 273px;
  background: none;
  z-index: 20;
}

.bookshelf-button {
  position: absolute;
  top: 450px;
  left: calc(50% + 200px);
  width: 130px;
  height: 163px;
  background: none;
  z-index: 20;
}

.heists-button {
  position: absolute;
  top: 380px;
  left: calc(50% + 310px);
  width: 136px;
  height: 288px;
  background: none;
  z-index: 20;
}

/* Button Interactions */
button {
  cursor: pointer;
  transition: transform 0.2s ease;
  outline: none;
  z-index: 60;
  border: none;
}

button:hover {
  transform: scale(1.03);
}

button:active {
  transform: scale(0.98);
}

/* Mobile Scaling - Everything Halves at Breakpoint */
@media (max-width: 800px) {
  /* Create a scaling container for the entire site */
  body {
    transform: scale(0.5);
    transform-origin: top left;
    width: 200%;
    height: 200%;
    padding-left: 19px; /* Half of original 38px */
    overflow-x: hidden;
  }
  
  /* Fix sidebar positioning - CHANGED THIS SECTION */
  .sidebar-container {
    transform: scale(0.5); /* Changed from scale(1) */
    transform-origin: top left;
    width: 38px; /* Original size */
    left: 0;
  }
  
  .sidebar {
    background-size: 19px; /* Half of original 38px */
  }
  
  .sidebar-top-container {
    transform: scale(0.5);
    transform-origin: top left;
    width: 192px; /* Half of 384px */
    height: 526px; /* Half of 1052px */
  }
  
  /* Rest of your mobile styles remain unchanged... */
}

/* Prevent scaling on very small screens */
@media (max-width: 400px) {
  body {
    transform: scale(0.4);
    width: 250%;
    height: 250%;
    padding-left: 15.2px; /* 40% of 38px */
  }
  
  /* CHANGED THIS SECTION */
  .sidebar-container {
    transform: scale(0.4);
  }
  
  .sidebar {
    background-size: 15.2px; /* 40% of 38px */
  }
  
  .sidebar-top-container {
    transform: scale(0.4);
    width: 153.6px; /* 40% of 384px */
    height: 420.8px; /* 40% of 1052px */
  }
  
  html {
    font-size: 250%; /* Counteract scaling */
  }
}