html, body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    background-color: rgb(30, 30, 32);
    font-family: Open Sans;
    user-select: none;
}

img {
  -webkit-user-drag: none; /* Chrome, Edge, Safari */
}

.navbar {
    background-color: #203138;

    border-bottom: #4C7484 8px solid;

    .dropdown-menu {
        background-color: #203138;
        border: 0.5px solid white;
        border-radius: 1px;

        .dropdown-item:hover {
            background-color: white;
            color: #203138;
        }
    }


}


.tantargy_valaszto {
    margin-top: 70px;
    padding-top: 10px;
    text-align: center;
    
    min-height: calc(100vh - 70px);
    width: 50%;

    margin-right: auto;
    margin-left: auto;

    div {
        margin-top: 2%;
        margin-bottom: 2%;
    }
    a {
        text-decoration: none;
        color: white;
        text-shadow: 2px 2px 2px rgba(0,0,0,1);
        transition-duration: 0.1s;
    }
    img {
        width: 90%;
        transition-duration: 0.1s;
    }

    a:hover {
        
        img {
            transform: scale(1.05);
        }
        transition-duration: 0.1s;
    }


}

.top_section {
    background-image: url(img/background.png);
    background-position: bottom;
}

.bottom_section {
    background-color: #203138;
    min-height: 100vh;
}

.tananyag {
    img {
        width: 5%;
        min-width: 80px;
        margin-right: 5px;
    }


    .tantargy {
        margin-top: 50px;
        margin-left: 10%;
        background-color: #7c8487;
        
        color: black;
        
        padding: 20px;
        border-radius: 10px;

        width: calc(90% - 20px);
        max-width: 1000px;
        
        

        .cim {
            font-weight: bold;
            text-shadow: 2px 2px 2px rgba(0,0,0,0.3);
            font-size: 160%;
            margin-bottom: 10px;
        }

        a {
            margin-left: 10%;
            margin-bottom: 10px;
            text-decoration: none;
            color: white;
            background-color: #296F79;
            display: block;
            width: fit-content;
            padding: 5px;
            border-radius: 5px;
            box-shadow: 2px 2px 2px rgba(0,0,0,0.3);
            
            
        }

        a:hover {
            filter: brightness(0.85);
            
        }

    }
}

.irodalom {
    .tantargy > a {
        background-color: #9F1D21;
    }
}

.fizika {
    .tantargy > a {
        background-color: #4495D1;
    }
}

.ital {
    .tantargy > a {
        background-color: #368066;
    }
}

.programozasi_alapok {
    .tantargy > a {
        background-color: #741D5A;
    }
}

#backToTop {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;           /* négyzet alak a körhöz */
  height: 50px;
  border-radius: 50%;     /* kör */
  opacity: 0.7;           /* félátlátszó */
  z-index: 1000;
  display: none;          /* alapból rejtett */
  font-size: 24px;
  text-align: center;
  line-height: 50px;      /* középre a nyíl */
  padding: 0;

  border: 0px;
  background-color: rgba(0, 0, 0, 0.637);
  
  box-shadow: 0 4px 8px rgba(0,0,0,0.4);

  transition-duration: 0.1s;

}

#backToTop:hover {
    transform: scale(1.1);
    transition-duration: 0.1s;
}







@media only screen and (max-width: 1400px) {
    .tantargy_valaszto {
        width: 90%;

    }
}


/* NAPTÁR */
.naptar-iframe {
    width: 100%;
    height: calc(100vh - 80px);
    margin-top: 70px;
}

/* ÓRAREND */

/* NAPTÁR */
.orarend-wrapper {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
}

.orarend {
    display: block;
    margin-right: auto;
    margin-left: auto;
    display: block;
    height: calc(100vh - 80px);
    margin-top: 70px;
    cursor: pointer;
}


#overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#overlay img {
  max-width: 95%;
  max-height: 95%;
}