@font-face {
    font-family: 'BBH';
    src: url("../assets/fonts/BBHHegarty-Regular.ttf") format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'Playfair Display';
    src: url("../assets/fonts/PlayfairDisplay-VariableFont_wght.ttf") format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'DMSerie';
    src: url("../assets/fonts/DMSerie.ttf") format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'BitCount';
    src: url("../assets/fonts/BitCount.ttf") format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'Fjalla One';
    src: url("../assets/fonts/FjallaOne.ttf") format('truetype');
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    text-decoration: none;
    color: inherit;
}   

body {
    font-family: 'Playfair Display', Verdana, serif;
    background: url("../assets/images/gary\ backg.jpg") center/cover;
    min-height: 100vh;
}

h1 {
    text-transform: uppercase;
    letter-spacing: 3px;
    text-align: center;
    font-size: 3rem;
    text-shadow: 3px 10px 9px #00000066;
    color: rgb(238, 242, 182);
    font-family: 'BBH', sans-serif;

}

h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: rgb(177, 161, 90);
    text-shadow: 2px 4px 6px #00000066;
    font-family: 'Fjalla One', sans-serif;
    margin-top: 10px;
}

nav {
    height: 60px;
    background-color: rgba(199, 199, 199, 0.664);
    width: 100%;
    margin: 0;
    border-radius: 0 0 30px 30px;
    font-family: 'Fjalla One', sans-serif;
    font-size: larger;
}

main {
    background-color: rgba(147, 147, 147, 0.2);
    margin-top: 30px;
    margin-right: 20px;
    margin-left: 30px;
    margin-bottom: 30px;
    border: 2px solid rgb(0, 0, 0);
    border-radius: 20px 20px 20px 20px;
    box-shadow: 0 0 15px 15px #000000;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 20px;
}

.raccourcis {
    display: flex;
    justify-content: left;
    align-items: center;
    height: 100%;
    gap: 30px;
    margin-left: 35px;
}

.absolute-right {
    color: rgb(209,209,209);
    margin-left: auto;
    font-size: 20px;
    font-weight: bold;
    padding-right: 25px;
    align-self: center;
}

.btn {
  padding: 10px 10px;
  color: white;
  border-radius: 10px;
  font-weight: 600;
  transition: 0.2s;
}

.btn:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(106, 106, 106, 0.8);
}

.flexbox ul {
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 18px;
}

main ul {
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 18px;
}

.flexbox li {
    list-style: none;
    min-height: 240px;
    width: calc(49% - 5px);
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    border-radius: 10px;
    overflow: hidden;
    font-weight: bold;
    font-size: 1.2rem;
    cursor: help;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.flexbox li img {
    width: 140px;
    height: 140px;
    object-fit: contain;
    margin-right: 10px;
    margin-left: 10px;
    flex-shrink: 0;
}

.flexbox li .box-text {
    padding: 15px;
    text-align: left;
    background-color: rgba(255, 255, 255, 0.9);
    flex: 1;
    font-size: 1.3rem;
    color: #333;
    border-radius: 5px;
    margin-left: 10px;
    transition: all 0.3s ease;
    font-family: 'BitCount', sans-serif;
    overflow-wrap: break-word;
    word-break: break-word;
}

.flexbox li:hover {
    background-color: #00cccc;
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.flexbox li.box-1 {
    background-color: #636262;  
}

.flexbox li.box-1 .box-text {
    background-color: #636262;
    color: #3498db;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.flexbox li.box-1:hover {
    background-color: #3498db;
}

.flexbox li.box-1:hover .box-text {
    background-color: #3498db;
    color: #636262;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}
    
.flexbox li.box-2 {
    background-color: #636262;
}

.flexbox li.box-2 .box-text {
    background-color: #636262;
    color: #ff4444;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.flexbox li.box-2:hover {
    background-color: #c0392b;
}

.flexbox li.box-2:hover .box-text {
    background-color: #c0392b;
    color: #636262;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.flexbox li.box-3 {
    background-color: #636262;
}

.flexbox li.box-3 .box-text {
    background-color: #636262;
    color: #27ae60;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.flexbox li.box-3:hover {
    background-color: #27ae60;
}

.flexbox li.box-3:hover .box-text {
    background-color: #27ae60;
    color: #636262;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.flexbox li.box-4 {
    background-color: #636262;
}

.flexbox li.box-4 .box-text {
    background-color: #636262;
    color: #ff8c00;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.flexbox li.box-4:hover {
    background-color: #ff8c00;
}

.flexbox li.box-4:hover .box-text {
    background-color: #ff8c00;
    color: #636262;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.flexbox li.box-5 {
    background-color: #636262;
}

.flexbox li.box-5 .box-text {
    background-color: #636262;
    color: #9b59b6;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.flexbox li.box-5:hover {
    background-color: #9b59b6;
}

.flexbox li.box-5:hover .box-text {
    background-color: #9b59b6;
    color: #636262;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.flexbox li.box-6 {
    background-color: #636262;
}

.flexbox li.box-6 .box-text {
    background-color: #636262;
    color: #ff4444;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.flexbox li.box-6:hover {
    background-color: #1abc9c;
}

.flexbox li.box-6:hover .box-text {
    background-color: #1abc9c;
    color: #636262;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

@media screen and (max-width: 1200px) {
    .raccourcis {
        flex-wrap: wrap;
        justify-content: flex-start;
        margin-left: 20px;
        gap: 16px;
    }

    .flexbox ul,
    main ul {
        gap: 14px;
    }

    .flexbox li {
        width: calc(50% - 12px);
        min-height: 280px;
    }

    .flexbox li img {
        width: 140px;
        height: 140px;
    }
}

@media screen and (max-width: 900px) {
    nav {
        padding: 0 18px;
    }

    .raccourcis {
        justify-content: center;
        margin-left: 0;
        gap: 12px;
    }

    .absolute-right {
        padding-right: 0;
        width: 100%;
        text-align: center;
        margin: 0 auto;
    }

    .flexbox li,
    main ul li {
        display: flex;
        width: 100%;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        min-height: auto;
    }

    .flexbox li img,
    main ul li img {
        width: 120px;
        height: 120px;
        margin: 0 0 10px 0;
    }

    .flexbox li .box-text,
    main ul li .box-text {
        width: 100%;
        margin-left: 0;
    }
}

@media screen and (max-width: 610px) {
    .flexbox ul,
    main ul {
        flex-direction: column;
        align-items: center;
    }
}

