@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;600&display=swap');
* {
  box-sizing: border-box;
}

/* Style the body */
body {
  font-family:'Open Sans', sans-serif;
  margin: 0;
}

/* Header/logo Title */
.header { 
  text-align: center; 
  color: white;
}
#logo {
  width: 6em;
  display: flex;
  align-items: center;
  margin-top: 7px;
  margin-left: auto;
  margin-right: auto;
}
#logo img {
  padding: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.header p{
  color: #000;
  margin-top: 0px;
}
/* Style the top navigation bar */
.navbar {
  display: flex;
  background-color: #333;
}

/* Style the navigation bar links */
.navbar a {
  color: white;
  padding: 14px 20px;
  text-decoration: none;
  text-align: center;
}

/* Change color on hover */
.navbar a:hover {
  background-color: #ddd;
  color: black;
}

/* Column container */
.row {  
  display: flex;
  flex-wrap: wrap;
}

/* Create two unequal columns that sits next to each other */
/* Sidebar/left column */
.side {
  flex: 31%;
  background-color: #f1f1f1;
  padding: 20px;
}

/* Main column */
.main {
  flex: 70%;
  background-color: white; 
}
.column {
  flex: 1;
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
/* Fake image, just for this example */
video {
  width: 250px;
  height: 350px;
  object-fit: cover;
  display: block;
  margin: 0 auto;
  cursor: move;
}
#click-photo,
#take-shot {
  background-color: #e75480;
  color: white;
  border: none;
  padding: 12px 24px;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease;
}

#click-photo:hover,
#take-shot:hover {
  background-color: #d63a6c;
}
#canvas {
  width: 250px;
  height: 350px;
  object-fit: cover;
  display: block;
  margin: 0 auto;
  cursor: move;
}
/* Footer */
.footer {
  padding: 20px;
  text-align: center;
  background: #ddd;
}
/*** slider navigation **/
.slider{ 
  width: 71%;
  margin-left: auto;
  margin-right: auto; 
}
.slider-nav{ 
  margin-left: auto;
  margin-right: auto;  
}
.slider-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: -webkit-box;
  display: flex;
  -webkit-box-pack: center;
  justify-content: center;
}
.slider-nav li {
  -webkit-box-flex: 2;
  flex: 2;
  text-align: center;
  display: -webkit-box;
  display: flex;
}
.slider img { 
  display: none;
  -webkit-box-shadow: 10px 10px 20px 0 rgba(94,47,59,0.2);
  -moz-box-shadow: 10px 10px 20px 0 rgba(94,47,59,0.2);
  box-shadow: 10px 10px 20px 0 rgba(94,47,59,0.2);
}
.slider img.active {
  display: block;
}
.slider-nav .arrow { 
  flex: 0 0 15%; 
  padding: 11px;
  background-color: #004aad;
  margin-right: 9px; 
  color: #FFF;
}
.slider-nav a {
  flex-basis: 100%;
  display: -webkit-box;
  display: flex;
  -webkit-box-align: center;
  align-items: center;
}
.slider-nav span {
  display: block;
  width: 100%;
}
/* Responsive layout - when the screen is less than 700px wide, make the two columns stack on top of each other instead of next to each other */
@media screen and (max-width: 700px) {
  .row, .navbar {   
    flex-direction: column;
  }
  .side{
    font-size: 11px;
  }
  .slider{
    margin: 0px;
    width: auto;
  }
  .slider-nav .arrow{
    flex: none;
  }
}



.clickframe{
  text-align: center;
}
.viewframe{
  text-align: center;
}
/** photoframe style **/
.framebg {
	margin: auto;
	background-image: url('images/photobooth_frame.png');
	box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
	overflow: hidden;
	width: 350px;
	height: 450px;
	margin: 2em auto;
	z-index: 100;
}
.card {
	margin: auto;
	background-image: url('../images/photobooth_frame.png');
	box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
	overflow: hidden;
	width: 350px;
	height: 450px;
	margin: 2em auto;
	z-index: 100;
}
/* Đổi style h2 để không viết hoa toàn bộ */
h2 {
  text-transform: none;
}
.guide h2{
  text-align: center;
}

/* Style lời chúc sinh nhật */
.guide {
  text-align: center;
  background-color: #fff0f5; /* màu hồng nhạt */
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(255, 182, 193, 0.4);
  padding: 24px;
  margin-bottom: 20px;
  color: #d63384;
  font-size: 18px;
  font-weight: 500;
}
.guide h2 {
  color: #c71585;
  font-size: 28px;
  margin-bottom: 16px;
}

.stepper-wrapper {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  text-align: center;
}
.stepper-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.stepper-item::before {
  position: absolute;
  content: "";
  border-bottom: 2px solid #ccc;
  width: 100%;
  top: 20px;
  left: -50%;
  z-index: 2;
}

.stepper-item::after {
  position: absolute;
  content: "";
  border-bottom: 2px solid #ccc;
  width: 100%;
  top: 20px;
  left: 50%;
  z-index: 2;
}

.stepper-item .step-counter {
  position: relative;
  z-index: 5;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ccc;
  margin-bottom: 6px;
}

.stepper-item.active {
  font-weight: bold;
}

.stepper-item.completed .step-counter {
  background-color: #004aad;
  color: #FFF;
}

.stepper-item.completed::after {
  position: absolute;
  content: "";
  border-bottom: 2px solid #004aad;
  width: 100%;
  top: 20px;
  left: 50%;
  z-index: 3;
}

.stepper-item:first-child::before {
  content: none;
}
.stepper-item:last-child::after {
  content: none;
}
.frame-selector button {
  background-color: #e75480;
  color: white;
  border: none;
  padding: 12px 24px;
  margin: 0 10px;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease;
}

.frame-selector button:hover {
  background-color: #d63a6c;
}

/* Đảm bảo các khung hình, card và #bnophoto có chiều rộng bằng nhau */
.frame-preview {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 350px;
  height: 450px;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  margin: 2em auto;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

#selected-frame {
  width: 100%;
  height: auto;
  object-fit: contain;
}
.cardwp,
#bnophoto {
  width: 350px;
  max-width: 100%;
  display: block;
  margin: auto;
}

/* Căn giữa nút bên dưới mỗi ảnh */
.frame-selector,
#click-photo,
#take-shot {
  margin-top: 16px;
}
/* Căn giữa nội dung bên trong #photoframe, bao gồm video hoặc ảnh preview */
.card-body {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}
/* === Rock Paper Scissors Game Section (centered) === */
.game-section {
  text-align: center;
  background-color: #fff0f5;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(255, 182, 193, 0.4);
  margin: 30px auto;           /* centers the block horizontally */
  max-width: 640px;            /* limits width for nice reading */
  width: calc(100% - 32px);    /* side padding on small screens */
  color: #d63384;
}

.game-section h2 {
  margin-top: 0;
}

.rps-buttons {
  margin-top: 16px;
  display: flex;               /* centers the buttons row */
  justify-content: center;
  align-items: center;
  gap: 12px;                   /* space between buttons */
  flex-wrap: wrap;             /* wrap on small screens */
}

.rps-choice {
  background-color: #e75480;
  color: #fff;
  border: none;
  padding: 12px 24px;
  font-size: 18px;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease, transform 0.05s ease;
}

.rps-choice:hover {
  background-color: #d63a6c;
}

.rps-choice:active {
  transform: scale(0.98);
}

.rps-result {
  margin-top: 18px;
  font-size: 20px;
  font-weight: 700;
}

/* Small screens: let the section breathe edge-to-edge a bit more */
@media screen and (max-width: 700px) {
  .game-section {
    margin: 20px 12px;
    width: auto;
  }
}