/*initial*/
*{
    box-sizing: border-box;
}

html{
    scroll-behavior: smooth;
}

body{
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    overflow-x: hidden;
}



/*MAIN*/
#main_bgr{
    z-index: 1;
    background-image: url('assets/gp_main_pic3.jpg');
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background-size: cover;
}

#main_header{
    z-index: 2;
    width: fit-content;
    height: fit-content;
    padding: 8px;
    margin: auto;
    position: relative;
    margin-top: 15px;
    background-color: rgba(128, 128, 128, 0.562);
    color: white;
    font-weight: bold;
    text-align: center;
    font-size: 50px;
    border-radius: 5px;
}
.what{
    z-index: 2;
    width: fit-content;
    height: fit-content;
    padding: 8px;
    margin: auto;
    position: relative;
    margin-top: 30%;
    background-color: rgba(128, 128, 128, 0.562);
    color: white;
    font-weight: bold;
    text-align: center;
    font-size: 35px;
    border-radius: 5px;
}
.down_arrow{
    z-index: 2;
    width: fit-content;
    height: fit-content;
    position: relative;
    margin: auto;
    background-color: rgba(128, 128, 128, 0.562);
    border-radius: 50%;
    margin-top: 4%;
    transition: all ease-out 0.5s;
}
.down_arrow:hover{
    background-color: rgba(95, 95, 95, 0.562);
}
.down_arrow img{
    width: 80px;
    margin-top: 10px;
}

#main_content{
    z-index: 2;
    width: 100%;
    height: 100%;
    position: relative;
    margin-top: 6%;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    background-image: linear-gradient(white, black 70%);
}



/*CONTENT*/

/*Morče source*/
.morce_box{
    max-width: 70%;
    height: fit-content;
    background-color: rgba(154, 154, 154, 0.167);
    border-radius: 8px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: space-between;
    justify-self: start;
}
.morce_content{
    width: fit-content;
    padding: 6px;
}

.morce_img{
    border-radius: 8px;
    margin: 15px;
}
.morce_img img{
    border-radius: 8px;
    width: 350px;
    height: 210px;
}



/*Co je morče*/
.what_morce_box{
    justify-self: start;
}

.what_morce_img{
    position: relative;
    width: 350px; 
    height: 210px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 8px;
}

.what_morce_img_visible, .what_morce_img_hiddenhover{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image covers the container without distortion */
    transition: opacity 0.5s ease; /* Smooth transition */
}
.what_morce_img_hiddenhover{
    opacity: 0;
}
.what_morce_img:hover .what_morce_img_hiddenhover{
    opacity: 1;
}

.what_morce_text {
    position: relative;
    text-align: center;
    width: fit-content;
    height: fit-content;
    margin: auto;
}
.what_morce_text p{
    transition: opacity 0.4s ease;
    position: relative;
}

.what_morce_text_hidden{
    opacity: 0;
    cursor: default;
}


/*Kde morče*/
.where_morce_box{
    justify-self: end;
    margin-top: 3%;
    background-color: rgba(131, 131, 131, 0.211);
}

.where_morce_image_switch{
    margin-top: 10px;
}
.where_morce_image_switch button {
  padding: 5px 10px;
  margin: 0 5px;
  border: none;
  border-radius: 5px;
  background-color: #8b8b8b;
  color: white;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.where_morce_image_switch button:hover {
  background-color: #585858;
}
.where_morce_image_switch button.clicked{
    background-color: #303030;
}


/*Jak morče*/
.how_morce_box{
    justify-self: start;
    margin-top: 3%;
    background-color: rgba(125, 125, 125, 0.549);
}

.how_morce_content_link{
    color: black;
    text-decoration: none;
    transition: all 0.4s ease-out;
}
.how_morce_content_link:hover{
    cursor: none;
}
.how_morce_content_show{
    opacity: 0;
    transition: all 0.4s ease-out;
}


/*Proč morče*/
.why_morce_box{
    justify-self: end;
    margin-top: 3%;
    background-color: rgba(110, 110, 110, 0.782);
}













/*FINAL DESTINATION*/

.final_destination_box{
    max-width: 70%;
    height: fit-content;
    border-radius: 8px;
    text-align: center;
    margin: auto;
    margin-top: 85%;
}
.final_destination_header{
    color: darkred;
}
.final_destination_img{
    width: 300px;
    border-radius: 8px;
}
.final_destination_run_button{
    width: fit-content;
    height: fit-content;
    border-radius: 5px;
    background-color: darkred;
    color: black;
    margin: auto;
    padding: 3px;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}
.final_destination_run_button:hover{
    background-color: rgba(139, 0, 0, 0.795);
}