@font-face 
{
    font-family: 'Derzhprom';
    src: url('/fonts/DERZHPROM-Regular.7fb7be635770.woff2') format('woff2'),
    src: url('/fonts/DERZHPROM-Regular.7fb7be635770.woff') format('woff');
}

body{
background-color: #000000;
}   




/* Dark Mode Toggle Button */
.dark-mode-button {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: #fff;
    color: #000;
    border: 2px solid #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    z-index: 1000;
}

/* Default Light Mode (no class needed on body) */
body {
    background-color: #ffffff;
    color: #000000;
}

/* Dark Mode Styling */
body.dark-mode {
    background-color: #000000;
    color: #ffffff;
}

/* Ensure .grid-container has the same dark background as the body */
body.dark-mode .grid-container {
    background-color: #000000; /* Match body color */
    color: #ffffff; /* Text color */
}

/* Caption background adjustment in dark mode */
body.dark-mode .caption {
    background-color: rgba(0, 0, 0, 0.8); /* Slightly more opaque for readability */
    color: #ffffff;
}

/* Dark mode styling for text spans */
body.dark-mode s2, body.dark-mode s3 , body.dark-mode h3 span, body.dark-mode h4 span {
   
    color: white;
}

/* Button Hover Effect */
.dark-mode-button:hover {
    background-color: #000;
    color: #fff;
}









/* Grid container setup - Centering grid on the viewport */
.grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Two equal-width columns */
    gap: 70px; /* Space between the grid items */
    justify-content: center; /* Center the items horizontally in the grid */
    align-items: center; /* Center items vertically in the grid */
    width: 72%; /* The grid container takes up 70% of the viewport width */
    margin: -1% auto 5% auto; /* Center the grid container with margin */
    padding: 20px; /* Add padding around the grid */
}

/* Each grid item - item1 */
.item1 {
    width: 100%;
    transition: transform 0.3s ease-in-out;
    overflow: hidden;
    display: flex;
    justify-content: center; /* Center horizontally if needed */
}

/* Each grid item - item1 */
.item2 {
    width: 100%;
    transition: transform 0.3s ease-in-out;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Image styling to maintain aspect ratio and responsive scaling */
.item1 img, .item2 img {
    width: 100%; /* Ensure image fits its container */
    height: auto; /* Maintain aspect ratio */
    object-fit: cover;
}

/* Ensure .item2 spans two columns on larger screens */
.item2 {
    grid-column: span 2; /* Span two columns horizontally */
    grid-row: span 1; /* Span one row vertically */
}

/* Styling for item-text */
.item-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Align text to the top */
    text-align: left;
    width: 100%;
}

.item-text h1 {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif,bold;
    line-height: 1.2;
    font-size: 1.25em;
    text-align: left; /* Align p text to the left */
    width: 100%; /* Ensure it takes up the full width of the container */
}


.item-text p {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.2;
    font-size: 1.25em;
    text-align: left; /* Align p text to the left */
    width: 100%; /* Ensure it takes up the full width of the container */
}

.item-text s1 {
    font-family: 'Derzhprom';
    font-size: 4.5vw;
    
    text-align: center;
    width: 100%; /* Full width for centering */
    display: inline-block; /* Center text within the block */
}

.item-text s2 {
    font-family: 'Derzhprom';
    font-size: 20vw;
    
    text-align: center;
    width: 100%; /* Full width for centering */
    display: inline-block; /* Center text within the block */
}

.item-text s3 {
    font-family: 'Derzhprom';
    font-size: 2vw;
    text-align: left;
    width: 100%;
    margin-top: 0; /* Remove extra top margin */
    display: inline-block;
}

/* Container for s3 to align it to the top */
.s3-wrapper {
    display: flex;
    align-items: flex-start; /* Ensure s3 aligns to the top */
    width: 100%;
}

/* Media query for smaller screens */
@media (max-width: 768px) {
     .grid-container {
        grid-template-columns: 1fr; /* Single column layout */
        width: 80%; /* Adjust grid width */
        padding: 20px;
        gap: 30px;
    }

    /* Ensure each item takes up one cell on smaller screens */
    .item1, .item2 {
        grid-column: span 1; /* Span one column */
        width: 100%;
    }

    /* Adjust text size for smaller screens */
    .item-text p {
        text-align: left;
        font-size: 3.5vw;
    }
    
    .item-text s1 {
        font-size: 7vw;
    }
    
    .item-text s2 {
        font-size: 21vw;
    }
    
    .item-text s3 {
        font-size: 3.5vw;
    }
}







  /* Position and resize the TOMAIN_stone on larger screens */
  .Back_arrow {
    left: 10px;
    
  }
  
  .TOWORKS_stone {
    right: 10px;
  }
  
  .TOMAIN_stone {
    left: 10px;
  }
  
  .TOABOUT_stone {
    right: 10px;
  }
  
  /* Default sizes for larger screens */
  .TOMAIN_stone img, .TOABOUT_stone img, .Back_arrow img , .TOWORKS_stone img {
    width: 189px;
    height: 106px;
  }



  
  /* Responsive adjustments */
  @media (max-width: 768px) {
    /* Adjust positioning and size on medium screens */
    .TOMAIN_stone, .TOABOUT_stone, .Back_arrow, .TOWORKS_stone {
      top: 5px;
    }
  
    .TOMAIN_stone img, .TOABOUT_stone img, .Back_arrow img, .TOWORKS_stone img {
      width: 100px; /* Scale down for smaller screens */
      height: auto; /* Maintain aspect ratio */
    }
  }
  



  .bottom-left-WORKS 
  {
    float: left;
    font-size: 50px;
    font-family: Arial, Helvetica, sans-serif;
    bottom: 0;
  }

  .bottom-right-WORKS 
  {
    float: right;
    font-size: 50px;
    font-family: Arial, Helvetica, sans-serif;
    bottom: 0;
  }