body {
    background-color: #1e1f22;
}


h1 {
    color: #20c1ce;
    text-align: center;
    letter-spacing: 15px;
    font-size: 75px;
    text-shadow: 0 0 20px #20c1ce;
    font-family: Consolas, monospace;
}

.box {
    position: relative;
    margin-left: auto;
    margin-right: auto;
    border: 5px solid #fa1e4b;
    box-shadow: 0 0 20px #fa1e4b;
    width: 700px;
}


.vonal {
    background-color: #fa1e4b;
    width: 80%;
    height: 5px;
    position: absolute;
    box-shadow: 0 0 20px #fa1e4b;
    z-index: -1;
}

.utvonal {
    display: block;
    position: relative;
    margin: auto;
    background-color: mediumpurple;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    box-shadow: 0 0 20px mediumpurple;
    transition: ease-in-out 200ms;
    font-family: Consolas, monospace;
}


.galeria {
    display: block;
    margin: auto;
    background-color: yellowgreen;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    box-shadow: 0 0 20px yellowgreen;
    transition: ease-in-out 200ms;
    font-family: Consolas, monospace;
}

.hirek {
    display: block;
    margin: auto;
    background-color: peru;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    box-shadow: 0 0 20px peru;
    transition: ease-in-out 200ms;
    font-family: Consolas, monospace;
}

.velemeny {
    display: block;
    margin: auto;
    background-color: indianred;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    box-shadow: 0 0 20px indianred;
    transition: ease-in-out 200ms;
    font-family: Consolas, monospace;
}

.kapcsolat {
    display: block;
    margin: auto;
    background-color: antiquewhite;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    box-shadow: 0 0 20px antiquewhite;
    transition: ease-in-out 200ms;
    font-family: Consolas, monospace;
}

.kezdo {
    display: flex;
    align-items: center;
    justify-content: space-around;
    margin-top: 125px;
    margin-bottom: 125px;
}

.egesz {
    border: 5px solid #fa1e4b;
    box-shadow: 0 0 20px #fa1e4b;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: auto;
    height: auto;
    margin: auto;
}

.vonat1 {
    position: absolute;
    bottom: 5px;
    width: 50px;
    height: 15px;
    background-color: #20c1ce;
    box-shadow: 0 0 10px #20c1ce;
    animation: animVon 8s infinite alternate linear;
}

.vonat2 {
    position: absolute;
    bottom: 5px;
    width: 50px;
    height: 15px;
    background-color: #20c1ce;
    box-shadow: 0 0 10px #20c1ce;
    animation: animVon 5s infinite alternate linear;
    animation-delay: 3s;
}

.vonat3 {
    position: absolute;
    bottom: 5px;
    width: 50px;
    height: 15px;
    background-color: #20c1ce;
    box-shadow: 0 0 10px #20c1ce;
    animation: animVon 10s infinite alternate linear;
    animation-delay: 5s;
}

.vonat4 {
    position: absolute;
    bottom: 5px;
    width: 50px;
    height: 15px;
    background-color: #20c1ce;
    box-shadow: 0 0 10px #20c1ce;
    animation: animVon 8s infinite alternate linear;
    animation-delay: 10s;
}

.utvonal > p:nth-child(1) {
    text-align: center;
    margin-top: 40%;
    font-size: 20px;
}

.galeria > p:nth-child(1) {
    text-align: center;
    margin-top: 30%;
    font-size: 20px;
}

.hirek > p:nth-child(1) {
    text-align: center;
    margin-top: 40%;
    font-size: 20px;
}

.velemeny > p:nth-child(1) {
    text-align: center;
    margin-top: 30%;
    font-size: 20px;
}

.kapcsolat > p:nth-child(1) {
    text-align: center;
    margin-top: 40%;
    font-size: 20px;
}

.utvonal:hover {
    transform: scale(1.75);
    transition: ease-in-out 200ms;
}

.utvonal:hover > p:nth-child(1) {
    transform: translateY(-35px);
    transition: ease-in-out 200ms;
}

.utvonal > p:nth-child(1) {
    transition: ease-in-out 200ms;

}

.utvonal > p:nth-child(2) {
    text-align: center;
    color: darkslategrey;
    font-family: Consolas, serif;
    position: relative;
    margin-left: 15px;
    margin-right: 15px;
    bottom: 45px;
    font-size: 14px;
    opacity: 0;
    transition: ease-in-out 200ms;
}

.utvonal:hover > p:nth-child(2) {
    opacity: 1;
    transition: ease-in-out 200ms;
}

.galeria:hover {
    transform: scale(1.75);
    transition: ease-in-out 200ms;
}

.galeria:hover > p:nth-child(1) {
    transform: translateY(-30px);
    transition: ease-in-out 200ms;
}

.galeria > p:nth-child(1) {
    transition: ease-in-out 200ms;

}

.galeria > p:nth-child(2) {
    text-align: center;
    color: darkslategrey;
    font-family: Consolas, serif;
    position: relative;
    margin-left: 15px;
    margin-right: 15px;
    bottom: 45px;
    font-size: 14px;
    opacity: 0;
    transition: ease-in-out 200ms;
}

.galeria:hover > p:nth-child(2) {
    opacity: 1;
    transition: ease-in-out 200ms;
}

.hirek:hover {
    transform: scale(1.75);
    transition: ease-in-out 200ms;
}

.hirek:hover > p:nth-child(1) {
    transform: translateY(-40px);
    transition: ease-in-out 200ms;
}

.hirek > p:nth-child(1) {
    transition: ease-in-out 200ms;

}

.hirek > p:nth-child(2) {
    text-align: center;
    color: darkslategrey;
    font-family: Consolas, serif;
    position: relative;
    margin-left: 15px;
    margin-right: 15px;
    bottom: 55px;
    font-size: 14px;
    opacity: 0;
    transition: ease-in-out 200ms;
}

.hirek:hover > p:nth-child(2) {
    opacity: 1;
    transition: ease-in-out 200ms;
}

.velemeny:hover {
    transform: scale(1.75);
    transition: ease-in-out 200ms;
}

.velemeny:hover > p:nth-child(1) {
    transform: translateY(-30px);
    transition: ease-in-out 200ms;
}

.velemeny > p:nth-child(1) {
    transition: ease-in-out 200ms;

}

.velemeny > p:nth-child(2) {
    text-align: center;
    color: darkslategrey;
    font-family: Consolas, serif;
    position: relative;
    margin-left: 15px;
    margin-right: 15px;
    bottom: 45px;
    font-size: 14px;
    opacity: 0;
    transition: ease-in-out 200ms;
}

.velemeny:hover > p:nth-child(2) {
    opacity: 1;
    transition: ease-in-out 200ms;
}

.kapcsolat:hover {
    transform: scale(1.75);
    transition: ease-in-out 200ms;
}

.kapcsolat:hover > p:nth-child(1) {
    transform: translateY(-35px);
    transition: ease-in-out 200ms;
}

.kapcsolat > p:nth-child(1) {
    transition: ease-in-out 200ms;

}

.kapcsolat > p:nth-child(2) {
    text-align: center;
    color: darkslategrey;
    font-family: Consolas, serif;
    position: relative;
    bottom: 50px;
    margin-left: 15px;
    margin-right: 15px;
    font-size: 14px;
    opacity: 0;
    transition: ease-in-out 200ms;
}

.kapcsolat:hover > p:nth-child(2) {
    opacity: 1;
    transition: ease-in-out 200ms;
}

@keyframes animVon {
    from {
        transform: translateX(0%);
    }
    to {
        transform: translateX(80vw);
    }
}

.weblink1 {
    position: absolute;
    display: none;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    opacity: 0;
}

.utvonal:hover .weblink1 {
    display: block;
    top: 0;
}

.weblink2 {
    position: absolute;
    display: none;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    opacity: 0;
}

.galeria:hover .weblink2 {
    display: block;
    top: 0;
}

.weblink3 {
    position: absolute;
    display: none;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    opacity: 0;
}

.hirek:hover .weblink3 {
    display: block;
    top: 0;
}

.weblink4 {
    position: absolute;
    display: none;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    opacity: 0;
}

.velemeny:hover .weblink4 {
    display: block;
    top: 0;
}

.weblink5 {
    position: absolute;
    display: none;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    opacity: 0;
}

.kapcsolat:hover .weblink5 {
    display: block;
    top: 0;
}

@media screen and (max-width: 820px) {
    .box {
        width: 400px;
    }

    h1 {
        font-size: 30px;
    }

    .kezdo {
        display: block;
    }

    .utvonal > p:nth-child(2) {
        top: -30px;
    }
    .utvonal > p:nth-child(1) {
        padding-top: 60px;
    }

    .galeria > p:nth-child(2) {
        top: -40px;
    }
    .galeria > p:nth-child(1) {
        padding-top: 40px;
    }

    .hirek > p:nth-child(2) {
        top: -60px;
    }
    .hirek > p:nth-child(1) {
        padding-top: 60px;
    }

    .velemeny > p:nth-child(2) {
        top: -40px;
    }
    .velemeny > p:nth-child(1) {
        padding-top: 40px;
    }

    .kapcsolat > p:nth-child(2) {
        top: -50px;
    }
    .kapcsolat > p:nth-child(1) {
        padding-top: 60px;
    }
}

@media screen and (max-width: 820px){
    .vonal {
        display: none;
    }

    .vonat1 {
        display: none;
    }
    .vonat2 {
        display: none;
    }
    .vonat3 {
        display: none;
    }
    .vonat4 {
        display: none;
    }

}