
html{
  font-size: 1rem;
}

body {
  background: url('./imgs/climbing-bg.jpeg') no-repeat center center fixed;
  background-size: cover;
  color: #212529;
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  margin: 0;
  padding: 0;
  font-size: 1rem;
  line-height: 1.6;
}


section, article {
  padding: 2rem;
  background-color: rgba(255, 255, 255, 0.85);
  border-radius: 1rem;
  margin: 2rem auto;
  max-width: 75rem;
}

.techniques-grid {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
}

@media (max-width: 599px) {
  .techniques-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 600px) and (max-width: 991px) {
  .techniques-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 992px) {
  .techniques-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}


.technique-card {
  background: #f8f9fa;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 0.25rem 0.625rem rgba(0, 0, 0, 0.1);
  position: relative;
  display: flex; 
  align-items: flex-start; 
  flex-wrap: wrap;
  transition: transform 0.3s ease;
}

.technique-card:hover {
  transform: scale(1.02);
}

@media (min-width: 768px) {
  .technique-card {
    flex-direction: row-reverse;
  }
}


@media (max-width: 768px) {
  .technique-card {
    flex-direction: column; 
  }
}

.card-img-top,
img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0.5rem;
}


.card-img-top {
  max-width: 5rem;  
}

.technique-content {
  padding: 0.5rem;
}

.technique-content h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.technique-content p,
.technique-content ul {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}



.training-card {
  display: none; 
  background-color: #ffffffcc;
  border-radius: 1rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
  padding: 2rem;
  margin: 2rem 0;
  position: relative;
  transition: transform 0.3s ease;
}

.training-card.active {
  display: block;
}

.training-card:hover {
  transform: scale(1.02);
}


.training-card h2 {
  font-size: 1.5rem;
  margin-top: 0;
}


.button-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; 
  gap: 1rem;
  margin-top: 2rem;
  padding: 1rem;
  
}

.button-group button {
  display: flex;
  align-items: center; 
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.5rem;
  background-color: #919293;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s;
  justify-content: flex-start;

}

.button-group button:hover {
  background-color: #6e6d69;
}

.button-group img {
  width: 2.5rem; 
  height: 2.5rem; 
  margin-right: 0.5rem; 
  border-radius: 50%;
  flex-shrink: 0;
  
}


table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

video {
  width: 100%;
  height: auto;
  max-width: 50rem; 
  display: block;
  border-radius: 0.5rem; 
}

.video-wrapper {
  max-width: 50rem;
  margin: auto;
  display: block;
  text-align: center;
  
}

.video-wrapper iframe {
  width: 100%; 
  border-radius: 0.5rem; 
}


.video-container {
  display: flex;
  flex-direction: column; 
  justify-content: center;
  align-items: center;
  margin: 2rem auto;
}

.video-container video {
  width: 100%;                
  max-width: 50rem;           
  height: auto;               
  display: block;             
  border-radius: 0.5rem;      
}



figcaption {
  margin-top: 0.5rem;
  font-size: 1rem;
  color: #000;  
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  display: inline-block;
  
}

figure{
  text-align: center;
}

section h2 {
  margin-top: 0;
}



nav a {
  color: #212529; 
  text-decoration: none; 
  font-weight: 500;      
}


nav a:hover {
  color: #000; 
  text-decoration: none; 
}


.content-link {
  color: #007bff;
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.3s ease;
}

.content-link:hover {
  color: #0056b3;
}

.content-link:visited {
  color: #7a7a7a;
}


p,
ul,
ol,
li {
  text-align: left;
}

footer p{
  text-align: center;
  padding: 0rem;
}

p{
  padding: 1rem;
}


body.high-contrast {
  background: #000 !important;
  color: #fff !important; 
  font-size: 1.25rem; 
  line-height: 2; 
}

body.high-contrast footer{
  font-size: 1.1rem;
  color: #000; 
}

body.high-contrast section,
body.high-contrast article
 {
  background-color: #111 !important;
  color: #fff !important;
  border: 0.125rem solid #fff;
  font-size: 1.25rem;
}

body.high-contrast .technique-card,
body.high-contrast .training-card {
  background-color: #111 !important;
  color: #fff !important;
  border: 0.125rem solid #fff;
  font-size: 1.25rem !important; 
}



body.high-contrast .technique-card p,
body.high-contrast .technique-card ul,
body.high-contrast .technique-card li,
body.high-contrast .training-card p,
body.high-contrast .training-card ul,
body.high-contrast .training-card li {
  font-size: 1.25rem !important;
}


body.high-contrast .technique-card h2,
body.high-contrast .training-card h2{
  font-size: 1.75rem !important;
}

body.high-contrast .training-card a,
body.high-contrast aside a.content-link{
  color: #2790f9 !important; 
}

body.high-contrast nav a,
body.high-contrast .content-link,
body.high-contrast a {
  color: #003366 !important; 
  text-decoration: underline;
}

body.high-contrast nav a:hover,
body.high-contrast .content-link:hover {
  color: #cc0000 !important; 
}

body.high-contrast nav a.active {
  color: #cc0000 !important; 
  font-weight: bold;
}

body.high-contrast .content-link:visited {
  color: #cc0000 !important;
}

body.high-contrast button {
  background-color: #fff !important;
  color: #000 !important;
  font-weight: bold;
  font-size: 1.25rem;
}

body.high-contrast figcaption {
  color: #fff !important;
}

body.high-contrast table {
  background: #000;
  color: #fff;
  border: 0.125rem solid #797878;
}

body.high-contrast table caption{
  color: #fff;
  font-size: 1.25rem;
}

body.high-contrast figcaption{
  font-size: 1.25rem;
}



#toggle-contrast {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  width: 3.75rem; 
  height: 3.75rem;
  background-color: #444;
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.3); 
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color 0.3s, transform 0.3s;
}

#toggle-contrast:hover {
  background-color: #222;
  transform: scale(1.1);
}

.skip-link {
  position: absolute;
  top: -3rem; 
  left: 0;
  background: #000;
  color: #fff;
  padding: 0.5rem;
  z-index: 1000;
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
}
