
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: "Comic Sans MS";
}


.navbar {
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: flex-start;
}


.navbar a {
    float: left;
    display: block;
    color: #000000;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    border: 1px solid rgb(0, 0, 0);
    border-radius: 7px;
    margin-right: 20px;
    margin-top: 5px;
    margin-left: 7px;
}

.navbar a:hover {
    background-color: rgba(206, 206, 206, 0.5);
    color: rgba(255, 255, 255, 0.8);
    text-decoration: underline;
}

.navbar a:last-child {
    margin-right: 0;
}


.container {
    position: relative;
    margin-top: 250px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 20px;
    justify-items: center;
    align-items: center;
    padding-bottom: 20px;
    padding-right: 7px;
    z-index: 10;
}


.Block {
    position: relative;
    display: inline-block;
    width: 630px;
    height: 300px;
    margin: 10px;
    border-radius: 10px;
    overflow: hidden;
    z-index: 10;
}


.Block img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 5px solid rgba(0, 0, 0, 0.8);
    border-radius: 15px;
    transition: transform 0.8s ease;
    z-index: 5;
}


.slider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(9, 223, 223, 1);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-radius: 10px;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 15;
}


.slider .content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px; 
}


.slider h2 {
    margin: 0; 
    padding: 0;
}

.slider p {
    margin: 0;
    padding: 5px;
    text-align: center;
}

.slider a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    padding: 5px 10px;
    border: 1px solid #333;
    border-radius: 5px;
    background-color: white;
    color: #333;
}


.Block:hover .slider {
    opacity: 1;
}


.background-image {
    position: absolute;
    width: 100%;
    height: 1000px;
    margin-top: 0;
    z-index: -1;
}


h1.center {
    position: absolute;
    top: 27%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    margin: 0;
    text-align: center;
    z-index: 20;
    font-size: 70px;
    text-shadow: 
        -1px -1px 0 black,
         1px -1px 0 black,
        -1px  1px 0 black,
         1px  1px 0 black;
}

.end {
    width: 100%;
    height: 75px;
    margin: 0;
    margin-top: 50px;
    background-color: #e6ccb3;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}
