/* RESET + BASE STYLES */


body {
  margin: 0;
  padding: 0;
  font-family: sans-serif;
  background: #3a2020 url('cool.png') repeat;
  background-size: auto;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  margin-top: 0.4em;
  margin-bottom: 0.4em;
}

h2 {
  margin-top: 0.1em;
  margin-bottom: 0.1em;
}

/* LAYOUT */
.page-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  background-color: white;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 20px;
}

.left-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px;
}

.main-layout,
#wrapper,
.content-container,
.main-area,
.main-content {
  display: flex;
  flex-direction: row;
  gap: 0px;
  flex-wrap: wrap;
  width:100%;
}

.main-content {
  flex: 1;
  flex-direction: column;
  background-color: #884c4c;
  border: 2px solid #6b1616;
  padding: 0.5vw;
  border-radius: 10px;
  color: white;
  font-size: clamp(16px, 2vw, 22px);
  box-sizing: border-box;
  min-width: 0;
  max-width: 250000px;
  margin: 0;
}

.right-sidebar {
  flex: 0 0 270px;
  display: flex;
  flex-direction: column;
  background-color: #eee;
  padding: 10px;
  border-left: 2px solid #ccc;
  box-sizing: border-box;
  overflow: hidden;
  height: 100vh;
}

.right-sidebar.hidden {
  transform: translateX(100%);
  position: absolute;
  right: 0;
  top: 0;
  z-index: 1000;
}

.iframe-wrapper {
  flex-grow: 1;
  position: relative;
  width: 100%;
  padding-bottom: 150%;
  height: 0;
}

.iframe-wrapper iframe,
.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(0,0,0,0.2);
  margin-top: 10px;
}

.header-group {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.header-gif {
  width: 25%;
  max-width: 250px;
  height: auto;
  border-radius: 10px;
}

.welcome-box {
  background-color: #fff7d6;
  border: 2px solid #ffcc00;
  padding: 15px;
  max-width: 400px;
  border-radius: 10px;
  text-align: left;
  box-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.video-column {
  flex: 0 0 180px;
  display: flex;
  flex-direction: column;
  padding: 10px;
  background-color: #ffe6e6;
  border: 2px solid #ff9999;
  gap: 10px;
}

.video-column img {
  width: 100%;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.video-column img:hover {
  transform: scale(1.03);
}

.video-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #ff4d4d;
  color: white;
  text-decoration: none;
  max-width: 300px;
  width: 160px;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  font-family: monospace;
  box-shadow: 2px 2px 0px #aa0000;
  transition: all 0.1s ease;
}

.video-button:hover {
  background-color: #ff1a1a;
  box-shadow: 1px 1px 0px #800000;
  transform: translateY(1px);
}

.btn-hov {
  transition: transform 0.2s ease;
  width: 100px;
}

.btn-hov:hover {
  transform: scale(1.05);
}

.video-column-toggle {
  display: none;
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1001;
  background: #ff4d4d;
  color: white;
  border: none;
  padding: 10px;
  border-radius: 6px;
  font-weight: bold;
}

.video-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.upload-date {
  font-size: 14px;
  color: #ddd;
}

@media (max-width: 600px) {
  .page-layout {
    flex-direction: column;
  }

  .header-flex,
  .header-group {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .welcome-box,
  .header-gif {
    width: 100%;
    max-width: 100%;
  }

  .video-column,
  .right-sidebar {
    display: none;
  }

  .video-column-toggle {
    display: block;
  }

  .right-sidebar.show {
    display: block;
    position: absolute;
    transform: translateX(0);
    width: 100%;
    height: auto;
    z-index: 1000;
  }
}

@media (max-width: 1000px) {
  .right-sidebar {
    display:none;
  }
}
.video-sidebar-wrapper {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.video-sidebar-wrapper iframe {
  width: 100%;
  max-width: 180px;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.2);
}


