#grid
{
    display: grid;
    grid-template-areas:
    "header header header"
    "leftside content rightside"
    "leftside footer footer";
    grid-template-columns: max-content minmax(max-content, 300) max-content;
}

#masthead {grid-area: header;}
#sidebar {grid-area: leftside;}
#main {grid-area: content;
    color: black;
    background-color: white;
    margin-top: 15px;
    margin-left: 15px;
    margin-bottom: 15px;
    margin-right: 15px;
    padding: 15px;
    width: 90vw;}
#navbar {grid-area: rightside;}
#footer {grid-area: footer;
    color: white;}

#ttl2
{
    display: flex;
    justify-content: center;
    background-color: green;
}

#ttl
{
    display: flex;
    background-color: green;
    width: max-content;
    margin-top: 10px;
    margin-bottom: 10px;
}

.mainmenu1
{
    display: flex;
    list-style-type: none;
    background-color: green;
    font-size: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.mainmenu1 ul
{
    position: absolute;
    display: block;
    list-style-type: none;
    visibility: hidden;
    z-index: 2;
    background-color: green;
    color: white;
}

.mainmenu1 ul li :hover
{
    color: green;
    background-color: yellow;
    
}
h1
{
    color: white;
    text-align: center;
}
.mainmenu1 li a
{
    color: #ffffff;
    margin-left: 5px;
}


#mainmenu2
{
    list-style-type: none;
    background-color: green;
    font-size: large;

}

#mainmenu2 li a
{
    color: #ffffff;
}


#footer a
{
    color: white;
}

#ftfl2
{
    display: flex;
    justify-content: center;
}
#ftfl
{
    display: flex;
    background-color: green;
}

#ftmn
{
    list-style-type: none;

}

#ftmn :hover
{
    list-style-type: none;
    background-color: yellow;
    color: green;

}

.cont
{
    display: flex;
    flex-wrap: wrap;
    background-color: #e0ffe0;
}

@keyframes cont2 
{
    0% {transform: scale(0.1) translateX(600px); opacity: 0;}
    50% {transform: scale(0.15) translateX(500px); opacity: 1;}
    90% {transform: scale(1.1) translateX(0)}
    100% {transform: scale(1) translateX(0)}
}

.contcard
{
    margin-top: 20px;
    margin-bottom: 20px;
    margin-left: 20px;
    margin-right: 20px;
    width: 300px;
    height: 350px;
    overflow: hidden;
    background-color: #ffffff;
    animation: cont2;
    animation-duration: 300ms;
    animation-direction: alternate;
    animation-timing-function: ease;
    animation-fill-mode: both;
    text-align: center;
    font-size: 16px;
}

.newscard
{
    background-color: #ffffff;
    text-align: center;
    font-size: 16px;
}

.newscard a
{
    color: green;
}
.contcard h5 {font-size: 16px;}

.contcard:nth-child(2)
{
    animation-delay: 0.15s;
}

.contcard:nth-child(3)
{
    animation-delay: 0.3s;
}

.contcard:nth-child(4)
{
    animation-delay: 0.45s;
}

.contcard:nth-child(5)
{
    animation-delay: 0.6s;
}

.contcard:nth-child(6)
{
    animation-delay: 0.75s;
}

.contcard:nth-child(7)
{
    animation-delay: 0.9s;
}

.contcard:nth-child(8)
{
    animation-delay: 1.05s;
}

.contcard:nth-child(9)
{
    animation-delay: 1.2s;
}

.contcard:nth-child(10)
{
    animation-delay: 1.35s;
}

.contcard:nth-child(11)
{
    animation-delay: 1.5s;
}

.contcard:nth-child(12)
{
    animation-delay: 1.65s;
}

.contcard:nth-child(13)
{
    animation-delay: 1.8s;
}

.contcard:nth-child(14)
{
    animation-delay: 1.95s;
}

.contcard:nth-child(15)
{
    animation-delay: 2.1s;
}

.contcard:nth-child(16)
{
    animation-delay: 2.25s;
}

.contcard:nth-child(17)
{
    animation-delay: 2.4s;
}

.contcard:nth-child(18)
{
    animation-delay: 2.55s;
}

.contcard:nth-child(19)
{
    animation-delay: 2.7s;
}

.contcard:nth-child(20)
{
    animation-delay: 2.85s;
}

.contcard:nth-child(21)
{
    animation-delay: 3s;
}

.contcard:nth-child(22)
{
    animation-delay: 3.15s;
}

.contcard:nth-child(23)
{
    animation-delay: 3.3s;
}

.contcard:nth-child(24)
{
    animation-delay: 3.45s;
}

.contcard:nth-child(25)
{
    animation-delay: 3.6s;
}

@keyframes cont1
{
    0% {transform: scale(1);}
    30% {transform: scale(1.2)}
    100% {transform: scale(1.15);}
}
.contcard :hover
{
    animation: cont1;
    animation-duration: 200ms;
    animation-direction: alternate;
    animation-timing-function: ease;
    animation-fill-mode: forwards;
}

.contcard a
{
    color: green;

}

.dol
{
    grid-area: dol;
}

.pht
{
    grid-area: pht;
}

.fullname
{
    grid-area: fullname;
    font-size: 20px;
    font-weight: bold;

}

.phn
{
    grid-area: phn;
}

.otd
{
    grid-area: otd;
    height: 0px;
}

.otd :hover
{
    grid-area: otd;
    height: 50px;
}
