@font-face {
  font-family: 'MyFont';
  src: url('../Font/BebasNeue-Regular.ttf') format('truetype');
}

body {
  background-color: rgb(213, 48, 63);
  margin: 0;
  padding: 0;
  font-family: 'MyFont', sans-serif;
}

.buttonTop {
  position: relative;
  margin-top: 0px;
  z-index: 5;
  display: flex;
  justify-content: center;
  gap: 50px;
  align-items: center;
}

.buttonTop .TopHead {
  position: absolute;
  top: 0;
  left: 0;
  height: 75px;
  width: 100%;
  background-color: white;
  z-index: 0;
}

.buttonTop button {
  position: relative;
  z-index: 1;
  padding: 10px 5px;
  top: 10px;
  background: none;
  border: none;
  color: rgb(213, 48, 63);
  font-weight: bolder;
  font-size: 40px;
  font-family: 'MyFont', sans-serif;
}

.buttonTop button:hover {
  position: relative;
  z-index: 1;
  padding: 10px 5px;
  top: 20px;
  background: none;
  color: black;
}

.buttonTop h1 {
  position: absolute;
  z-index: 1;
  padding: 10px 5px;
  top: -30px;
  background: none;
  left: 0px;
  color: rgb(213, 48, 63);
  font-size: 50px;
}

.buttonTop h1:hover {
  position: absolute;
  z-index: 1;
  padding: 10px 5px;
  top: -30px;
  background: none;
  left: 0px;
  color: rgb(0, 0, 0);
  font-size: 50px;
  transform: scale(1.05);
}


.Webtext {
  position: relative;
  margin-top: 200px;
  z-index: 5;
  font-size: 50px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;

}

.Webtext h1 {
  margin-top: 0px;
  top: 40px;
  text-align: center;
  z-index: 5;
}

.Webtext p {
  margin-top: 0;
  font-size: 16px;
  text-align: center;
  max-width: 600px;
  z-index: 5;
}

.Webtext .Web_textbackground {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 500px;
  width: 700px;
  background-color: hsla(0, 0%, 100%, 0.824);
  z-index: -1;
}


.Webtext>div:hover h1,
.Webtext>div:hover p {
  color: rgb(213, 48, 63);
  transform: scale(1.05);
  transition: color 0.3s ease, transform 0.3s ease;
}

.Webtext>div:hover .Web_textbackground:hover {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 500px;
  width: 700px;
  background-color: hsla(0, 0%, 100%, 0.847);
  z-index: -1;
}

.Webtext>div:hover p {
  color: rgb(213, 48, 63);
  transform: scale(1.05);
  transition: color 0.3s ease, transform 0.3s ease;
}

.Last_info {
  position: relative;
  margin-top: 50px;
  top: 10px;
  z-index: 5;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 70px;
  color: black;
}

.Down-Black-box {
  position: relative;
  min-height: 100vh;
  /* no bottom: -100px needed */
  padding-bottom: 100px;
  /* reserve space for the footer */
}

.Down-Black-box p {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 100px;
  /* if you want fixed height */
  width: 100%;

  background-color: rgb(0, 0, 0);

  display: flex;
  justify-content: center;
  align-items: center;

  font-size: 24px;
  color: rgb(213, 48, 63);
  margin: 0;
  /* remove default margin */
  z-index: 0;
}

.Down-Black-box p:hover {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 100px;
  /* if you want fixed height */
  width: 100%;

  background-color: rgb(0, 0, 0);

  display: flex;
  justify-content: center;
  align-items: center;

  font-size: 24px;
  color: rgb(255, 255, 255);
  margin: 0;
  /* remove default margin */
  z-index: 0;
  transform: scale(1.05);

}

.photo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  margin-top: 20px;
}

.photo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.photo-item p {
  font-size: 28px;
  font-weight: bold;
  font-family: 'MyFont', sans-serif;
  margin: 0 0 5px 0;
  /* space below the text */
}

.photo-item p:hover {
  color: white;
  font-size: 28px;
  font-weight: bold;
  font-family: 'MyFont', sans-serif;
  margin: 0 0 5px 0;
  /* space below the text */
  transform: scale(1.05);

}

.photo {
  width: 300px;
  height: 300px;
  border: 2px solid #000000;
  border-radius: 10px;
  transition: transform 0.3s;
}

.photo-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  width: 100%;
}

.photo-buttons:hover {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  width: 100%;
  transform: scale(1.05);
}

.photo-btn {
  flex: 1;
  margin: 0 2px;
  padding: 6px 0;
  border: none;
  border-radius: 4px;
  background-color: black;
  color: rgb(213, 48, 63);
  cursor: pointer;
  font-size: 14px;
}

.photo-btn:hover {
  flex: 1;
  margin: 0 2px;
  padding: 6px 0;
  border: none;
  border-radius: 4px;
  background-color: white;
  color: rgb(213, 48, 63);
  transform: scale(1.00);
  cursor: pointer;
  font-size: 14px;
}

.photo:hover {
  transform: scale(1.05);
}

.pagination {
  text-align: center;
  margin-top: 20px;
}

.pagination a {
  display: inline-block;
  margin: 0 5px;
  padding: 8px 12px;
  text-decoration: none;
  color: #000;
  border: 2px solid #000;
  border-radius: 8px;
  transition: background-color 0.3s, color 0.3s;
}

.pagination a:hover {
  background-color: #000;
  color: #fff;
}

.pagination a.active {
  background-color: #000;
  color: #fff;
  font-weight: bold;
}

.Account_button {
  position: relative;
  margin-top: 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.Account_button form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  /* spacing between label-input group and button */
}

.Pass {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  /* space between label and input */
  font-size: 28px;
  font-weight: bold;
  font-family: 'MyFont', sans-serif;
}

.Account {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  /* space between label and input */
  font-size: 28px;
  font-weight: bold;
  font-family: 'MyFont', sans-serif;
}

.Account_button label {
  font-size: 28px;
  font-weight: bold;
  font-family: 'MyFont', sans-serif;
  display: block;
  text-align: center;
}

.Account_button input {
  font-size: 28px;
  font-weight: bold;
  font-family: 'MyFont', sans-serif;
  text-align: center;
  margin-bottom: 0;
  /* no extra bottom margin, gap handles spacing */
}

.Account_button h1 {
  background: black;
  color: rgb(213, 48, 63);
  padding-left: 5px;
  padding-right: 5px;
}

.Account_button h1:hover {
  background: white;
  color: black;
  padding-left: 5px;
  padding-right: 5px;
  transform: scale(1.05);
}

.Account_button button {
  justify-content: center;
  align-items: center;
  background-color: white;
  color: rgb(213, 48, 63);
  border-radius: 5px;
  width: 200px;
  height: auto;
  padding-bottom: 5px;
  padding-top: 5px;
  font-size: 28px;
  font-weight: bold;
  font-family: 'MyFont', sans-serif;
  cursor: pointer;
  border: none;
}

.Account_button button:hover {
  background-color: white;
  color: black;
  border-radius: 5px;
  width: 200px;
  height: auto;
  padding-bottom: 5px;
  padding-top: 5px;
  font-size: 28px;
  font-weight: bold;
  font-family: 'MyFont', sans-serif;
  transform: scale(1.05);
}


.upload-form {
  position: relative;
  margin-top: 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.upload-form h1 {
  background: black;
  color: rgb(213, 48, 63);
  padding-left: 5px;
  padding-right: 5px;
}

.upload-form h1:hover {
  background: white;
  color: black;
  padding-left: 5px;
  padding-right: 5px;
  transform: scale(1.05);
}

.upload-form input {
  background-color: white;
  color: rgb(213, 48, 63);
  border-radius: 5px;
  width: 400px;
  height: auto;
  padding-bottom: 5px;
  padding-top: 5px;
  font-size: 28px;
  font-weight: bold;
  font-family: 'MyFont', sans-serif;

}

.upload-form button:hover {
  background-color: white;
  color: black;
  border-radius: 5px;
  width: 200px;
  height: auto;
  padding-bottom: 5px;
  padding-top: 5px;
  font-size: 28px;
  font-weight: bold;
  font-family: 'MyFont', sans-serif;
  transform: scale(1.05);
}