/* ===== Global Styles ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  overflow: hidden;
  font-family: 'press_start_2pregular', sans-serif;
  cursor: url(../media/UI/cursor.png), auto !important;
}

a, button {
  cursor: url(../media/UI/pointer.png), pointer !important;
}

input,
textarea,
select,
[contenteditable] {
  cursor: url(../media/UI/beam.png), auto !important;
}

input:focus,
textarea:focus,
select:focus,
[contenteditable]:focus {
  cursor: url(../media/UI/beam.png), auto !important;
}

label {
  cursor: url(../media/UI/cursor.png), auto !important;
}


main {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  justify-content: center;
  align-items: center;
}

.container {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 10px;
  box-sizing: border-box;
  overflow: hidden;
  padding-bottom: calc(80px + 20px);
}

pre {
  position: absolute;
  bottom: 100px;
  left: 0px;
  min-height:200px;
  max-height: 600px;
  overflow-y: scroll;
  padding: 20px;
  border-radius: 10px;
  font-family: "Courier New", Courier, monospace;
  font-size: 16px;
  z-index: 99;
}

.noshow {
  display: none;
}

/* ===== Scrollbar Customization ===== */

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 6px; 
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* ===== Cookie Consent Dialog ===== */

#cookieConsentDialog {
  display: none;
}

#cookieConsentDialog .cookieOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.8);
  z-index: 998;
  display: none;
}


#cookieConsentDialog .cookieDialog {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  max-width: calc(100% - 40px);
  max-height: calc(100% - 40px);
  overflow-y: auto;
  border-radius: 12px;
  background-color: rgba(4, 4, 94, 0.20);
  box-shadow: 3px 3px rgba(136, 135, 135, 0.384) inset, 3px 3px rgba(105, 105, 105, 0.164);
  text-align: left;
  color: black;
  z-index: 999;
  padding: 20px;
  box-sizing: border-box;
}

#cookieConsentDialog .switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

#cookieConsentDialog .switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

#cookieConsentDialog .checkboxSlider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #7e0e0e;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

#cookieConsentDialog .checkboxSlider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

#cookieConsentDialog input:checked + .checkboxSlider {
  background-color: #64c633;
}

#cookieConsentDialog input:focus + .checkboxSlider {
  box-shadow: 0 0 1px #64c633;
}

#cookieConsentDialog input:checked + .checkboxSlider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

#cookieConsentDialog .checkboxSlider.round {
  border-radius: 34px;
}

#cookieConsentDialog .checkboxSlider.round:before {
  border-radius: 50%;
}


#cookieConsentDialog .cookieClose {
  text-decoration: none;
  float: right;
}

#cookieConsentDialog .cookieIn {
  width: 100%;
  height: 100%;
  display: table-cell;
  vertical-align: middle;
  text-align: center;
}

#cookieConsentDialog .cookieBox {
  margin: 0 auto;
  max-width: 700px;
  padding: 40px;
  border-radius: 12px;
  background-color: #ffffff;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
  text-align: left;
  position: relative;
}

#cookieConsentDialog .cookieBox h2 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

#cookieConsentDialog .cookieBox p {
  font-size: 0.7rem;
  margin-bottom: 5px;
}

#cookieConsentDialog  table {
  border-collapse: separate;
  border-spacing: 0 10px;
  width: 100%;
  margin-bottom: 5px;
}

#cookieConsentDialog  tr {
  background-color: #f4f4f4;
  border-radius: 8px;
  border: 2px solid rgba(56, 56, 56, 0.342);
  display: flex;
  justify-content: space-between;
  padding: 5px 10px;
}

#cookieConsentDialog  td, th {
  padding: 8px;
  font-size: 0.7rem;
}

#cookieDialog_buttonbar {
  display: flex;
  justify-content: space-around;
  margin-top: 20px;
  flex-wrap: wrap;
  gap: 5px;
}

.cookieNoticeButton {
  font-weight: bold;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  width: 100%;
  min-width: 120px;
  margin-bottom: 10px;
  padding: 12px;
  font-size: 1rem;
}

.cookieNoticeButton.gray {
  background-color: #d4d4d4;
  color: #333;
}

.cookieNoticeButton.gray:hover {
  background-color: #9e9d9d;
  transform: scale(1.03);
}

.cookieNoticeButton.green {
  background-color: #64c633;
  color: white;
}

.cookieNoticeButton.green:hover {
  background-color: #57b02c;
  transform: scale(1.03); 
}

.cookieBox a {
  color: #241672;
  text-decoration: underline;
}

@media (max-width: 768px) {
  #cookieConsentDialog .cookieDialog {
    position: absolute;
    top: 0;
    padding: 15px;
    font-size: 0.8rem;
    width: 100%;
    max-width: 100%; 
    transform: translate(-50%, 0);
    border-radius: 8px;
  }

  #cookieConsentDialog .cookieBox {
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  }

  #cookieConsentDialog .cookieBox h2 {
    font-size: 1rem;
    margin-bottom: 5px; 
    text-align: center;
  }

  #cookieConsentDialog .cookieBox p {
    font-size: 0.75rem;
    text-align: center;
  }

  #cookieDialog_buttonbar {
    flex-direction: column;
    gap: 10px;
    margin-top: 15px; 
    align-items: center;
  }

  .cookieNoticeButton {
    font-size: 0.9rem;
    padding: 10px;
    width: 80%;
    min-width: unset;
  }

  #cookieConsentDialog tr {
    flex-direction: column;
    align-items: flex-start; 
    gap: 5px; 
    border: none;
    padding: 5px 0; 
  }

  #cookieConsentDialog td, #cookieConsentDialog th {
    font-size: 0.7rem; 
    text-align: left;
    padding: 3px 0;
  }
}

/* ===== Privacy Page ===== */

#PrivacyContainer {
  flex: 1;
  background-color: whitesmoke;
  color: black;
  font-family: Verdana, sans-serif !important;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 20px;
  box-sizing: border-box;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  word-wrap: break-word;
  word-break: break-word;
}

.privacy-policy-container {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    line-height: 1.6;
}

#PrivacyContainer h2 {
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

#PrivacyContainer h3 {
    color: #34495e;
    font-size: 1.8rem;
    margin-top: 20px;
}

#PrivacyContainer p {
    font-size: 1rem;
    margin-bottom: 20px;
}

#PrivacyContainer ul {
    margin-left: 20px;
    list-style-type: disc;
}

#PrivacyContainer ul li {
    margin-bottom: 10px;
}

#PrivacyContainer .highlight {
    font-weight: bold;
    color: #252d79;
}

#PrivacyContainer a {
    color: #2980b9;
    text-decoration: none;
}

#PrivacyContainer a:hover {
    text-decoration: underline;
}

#PrivacyContainer section {
    margin-bottom: 40px;
}

/* ===== Custom Variables ===== */

:root {
  --gradient-sky-top: linear-gradient(
    #04000a 0%,
    #060010 6%,
    #07001a 11%,
    #060019 20%,
    #080c25 48%,
    #081029 55%,
    #08122b 57%,
    #09142d 62%,
    #0a1833 68%,
    #0a1731 69%,
    #0e213c 78%,
    #10243e 79%,
    #122844 81%,
    #162c4b 85%,
    #1d365a 92%,
    #1e3960 96%,
    #203d66 98%,
    #22406b 100%
  );

  --gradient-sky-bot: -webkit-linear-gradient(
    bottom,
    #060010 0%,
    #060010 6%,
    #07001a 11%,
    #060019 20%,
    #080c25 48%,
    #081029 55%,
    #08122b 57%,
    #09142d 62%,
    #0a1833 68%,
    #0a1731 69%,
    #0e213c 78%,
    #10243e 79%,
    #10243e 79%,
    #122844 81%,
    #162c4b 85%,
    #1d365a 92%,
    #1e3960 96%,
    #203d66 98%,
    #22406b 100%
  );
}

.BackBtn {
  background-color: #ffffff;
  border: 2px solid #ccc;
  padding: 20px;
  font-family: 'press_start_2pregular';
  color: black;
  box-shadow: inset 0 -4px 0 0 rgba(0, 0, 0, 0.2);
  transition: 0.1s;
  text-shadow: 0px 2px rgba(0, 0, 0, 0.2);
  appearance: none;
  outline: none;
  padding: 10px 10px;
  border-radius: 8px;
}

.BackBtn:hover {
  box-shadow: inset 0 -2px 0 0 rgba(0, 0, 0, 0.2);
  filter: brightness(75%);
}

.BackBtn:active {
  box-shadow: inset 0 0 0 0 rgba(0, 0, 0, 0.2);
  text-shadow: 0px 0px rgba(0, 0, 0, 0.2);
}

.BackBtn:focus {
  outline: 2px dashed #ffd000;
}

.IssueOccured {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: auto;
}

.IssueOccured h1 {
  font-size: 2.5rem;
  color: #2b44d4;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.IssueOccured img {
  margin: 20px;
  border-radius: 10%;
  opacity: 0.5;
  transition: opacity 0.3s ease, transform 0.3s ease;
  filter: grayscale(50%);
}

.IssueOccured img:hover {
  opacity: 1;
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .IssueOccured h1 {
      font-size: 2rem;
  }


  .IssueOccured img {
      width: 100%;
      max-width: 400px;
  }
}