body {
    direction: rtl;
    margin-right: auto;
    margin-left: auto;
    font-family: 'Arimo', sans-serif !important;
}

p {
    display: block;
    font-size: 22px;
    direction: rtl;
    text-align: right;
}

p.p_center {
    text-align: center;
}

li {
    font-size: 22px;
    direction: rtl;
    text-align: right;
}


ol.letters-ordered-list {
    list-style-type: upper-alpha;
}



#very_small_ydf {
    height: 40px;
    width: auto;
}



.Top_New {
    background-color: black;
    background-image: url("./background.gif");
    background-repeat: no-repeat;
    background-size: 100% 100%;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    padding: 10px 5px 10px 5px;
}

.Top_New #E10_Logo {
    max-width: 90%;
    height: auto;
}

.Top_New h1 {
    font-size: 38px;
    text-decoration: none;
    text-align: center;
    color: #00d7fe;
}

.Top_New h2 {
    font-size: 24px;
    text-decoration: none;
    text-align: center;
    color: #00d7fe;
}


@media only screen and (max-width: 500px) {
    .Top_New h1 {
        font-size: 22px;
    }

    .Top_New h2 {
        font-size: 18px;
    }
}

.Top_New .Top_Flag {
    background-color: white;
    border-radius: 0px 0px 5px 5px;
    width: 80px;
    height: 60px;
    padding: 3px;
    position: absolute;
    top: 0px;
}

.Top_New .Top_Flag#Top_Flag_1 {
    right: 100px;
}

.Top_New .Top_Flag#Top_Flag_2 {
    right: 200px;
}

.Top_New .Top_Flag#Top_Flag_3 {
    left: 100px;
}

.Top_New .Top_Flag img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
}


.Top_New div.Top_New_Exhibition_Details {
    color: #00d7fe;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.Top_New_Bottom {
    background-color: #d6dbe1;
    color: black;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    padding: 15px;
    font-size: 18px;
}


div.Main_Container {
    max-width: 1100px;
    margin-right: auto;
    margin-left: auto;
    padding: 20px;
}


div.Footer_Top {
    margin-right: auto;
    margin-left: auto;
    background-color: black;
    color: white;
    padding: 10px;
}

div.Footer_Top p {
    font-size: 13px;
}

div.Footer_Top div.Footer_Top_YDF_Logo {
    max-width: 100px;
    float: left;
    margin: 30px auto auto 40px;
    background-color: #d6dbe1;
    border: 1px solid black;
    border-radius: 25px;
    color: black;
    padding: 15px;
}

div.Footer_Top div.Footer_Top_YDF_Logo img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 3px auto 3px auto;
}


div.Footer_Bottom {
    margin-right: auto;
    margin-left: auto;
    background-color: #0c4eb2;
    color: white;
    padding: 10px;
}

div.Footer_Bottom a,
div.Footer_Bottom a:hover {
    background-color: #0c4eb2;
    color: white;
}

div.Footer_Bottom p {
    font-size: 13px;
}




h1,
h2,
h3 {
    text-decoration: underline;
    font-weight: bold;
}



a:hover,
a:visited {
    color: blue;
}

a.small_size_link {
    color: blue;
    font-size: 15px;
}




/* Butons for hyper-links at the bottom*/
div.buttons_for_links {
    max-width: 700px;
    margin-right: auto;
    margin-left: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

div.buttons_for_links a:hover,
div.buttons_for_links a {
    color: black;
    text-decoration: none;
}

div.buttons_for_links div {
    width: 300px;
    border: 1px black solid;
    color: black;
    padding: 10px;
}

div.buttons_for_links div h3 {
    color: blue;
    text-decoration: underline;
    text-align: center;
}

div.buttons_for_links div p {
    text-align: center;
}

div.ydf_buttons {
    text-align: center;
}



/* Domains table*/
table {
    width: 90%;
    max-width: 1100px;
    border-collapse: collapse;
    direction: ltr;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #cbd1d9;
    /* soft pastel yellow */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-right: auto;
    margin-left: auto;
}

thead {
    background-color: #1c3c5e;
    color: #cbd1d9;
}

thead th {
    padding: 12px;
    font-size: 22px;
    border: 1px solid #1c3c5e;
    font-weight: bold;
    /* soft orange border */
}

thead th.small_text {
    font-size: 16px;
}

tbody td {
    padding: 10px;
    border: 1px solid black;
    /* light peach */
    font-size: 20px;
    color: black;
    /* warm brown for contrast */
    direction: rtl;
}

tbody td.td_align_left {
    text-align: left;
    direction: ltr;
}

tbody td.td_align_left_rtl {
    text-align: left;
    direction: rtl;
}

tbody td.td_align_center {
    text-align: center;
}

tbody td.td_align_right {
    text-align: right;
    direction: rtl;
}


tbody tr:nth-child(even) {
    background-color: #d6dbe1;
}

tbody tr:hover {
    background-color: #b8bcc4;
}

@media only screen and (max-width: 500px) {
    table {
        width: unset;
        max-width: 100%;
    }

    tbody td {
        padding: 3px;
        font-size: 17px;
    }

    thead th {
        font-size: 17px;
    }

    tbody td.td_align_left {
        /* Make webstieslinks smaller in small screens - to free space for description text */
        font-size: 15px;
    }
}


/**************************************
*** Design permanent side links box ***
***************************************/
div.permanent_side_links_box {
    position: fixed;
    top: 100px;
    left: 0px;
    background-color: #ebe9e9;
    padding: 2px;
    border-radius: 0px 10px 10px 0px;
}

div.permanent_link_box img {
    width: 40px;
    height: 40px;
    border-radius: 10px 10px 10px 10px;
    display: block;
    padding: 3px;

}



#e10_logo {
    margin-right: auto;
    margin-left: auto;
    max-width: 200px;
    height: auto;
}

#e10_logo_small {
    float: right;
    margin-left: 20px;
    max-width: 100px;
    height: auto;
}




/* Logos preview */
#logos_prev {
    margin: 8px auto 15px auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

#logos_prev img {
    width: auto;
    max-height: 200px;
}


/* Websites grid */
.grid-container {
    overflow: visible;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.grid-item {
    text-align: center;
    border: 1px solid black;
    border-radius: 25px;
    padding: 0px;
    width: 340px;
    background-color: #d6dbe1;
    color: black;
    overflow: hidden;
    /* Apply radius effect on internal elements */
    transition: transform 0.5s ease;
    /* smooth animation */
}

.grid-item:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.grid-item-top-dns {
    background-color: #1c3c5e;
    color: white;
    font-weight: bold;
    padding: 4px;
}

.grid-item-top-title {
    background-color: #344f6e;
    color: white;
    font-size: 22px;
    font-weight: bold;
    height: 70px;
}

.grid-item-img {
    height: 220px;
    padding: 10px;
    color: black;
    text-align: center;
}

.grid-item-img span {
    display: block;
    margin: auto;
}

.grid-item-img span.red_text {
    font-weight: bold;
    color: red;
}

.grid-item-img a,
.grid-item-img a:hover {
    color: #344f6e;
}

.grid-item-img img {
    max-width: 100%;
    height: auto;
    max-height: 200px;
    display: block;
    margin: auto;
}

.grid-item-bottom {
    color: #344f6e;
    font-size: 22px;
    font-weight: bold;
    ;
}

.grid-item a,
.grid-item a:hover {
    color: white
}

.grid-item a {
    text-decoration: none;
}



/* Kaftorim shel lemaala vehadpasa. */
.Help_Buttons {
    text-align: left;
}

.Help_Buttons a {
    color: blue;
}